Where can I change the general template used for News?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
mannerv
Forum Members
Forum Members
Posts: 49
Joined: Wed May 28, 2008 1:02 pm

Where can I change the general template used for News?

Post by mannerv »

Where can I change the general layout that the News are using? Is it done from the Admin panel. I have made a new template for the pages that I would like to use.

I have added the news for my homepage. When I click on a news item, it opens up a new page with title "News" and one of the default templates.

Where is the template or layout used by the news defined?

I have tried to look in admin panel under "Content - News - Summary templates, detail templates... etc. but these seem to change only the behaviour of the news ie. which variables are printed out and how. I would like to change the whole look of the news page.
Loopy
Forum Members
Forum Members
Posts: 38
Joined: Sat Jun 10, 2006 5:34 pm

Re: Where can I change the general template used for News?

Post by Loopy »

You can style the look of the News by editing the stylesheet. Look in Layout/Stylesheets/Module: News. I would recommend making a duplicate of this so you have something to fall back on if things go wrong. All the selectors/elements are there to change the look of the News.

To get the News module to show up in the template have a look at this:

http://forum.cmsmadesimple.org/index.ph ... 764.0.html


Hope this is of use.
mannerv
Forum Members
Forum Members
Posts: 49
Joined: Wed May 28, 2008 1:02 pm

Re: Where can I change the general template used for News?

Post by mannerv »

I am not looking for styling but how to bound the News to a template.

On the forum post you linked to, it said: "normally, when clicking on the [more] news summary link, the detailed news page opens with the same page template the news summary page is bound to."

I am looking for how to "bind" the [more] news summary link into a page template. Currently it is bound to the default template and I would like to bind it to my own template.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Where can I change the general template used for News?

Post by RonnyK »

In the help of News are the parameters shown that could be passed to the calling of {News}, detailpage= is one of them. That parameter should hold the pagealias of the page to be opened, showing the entry, that page could be attached to a different template....

Ronny
mannerv
Forum Members
Forum Members
Posts: 49
Joined: Wed May 28, 2008 1:02 pm

Re: Where can I change the general template used for News?

Post by mannerv »

Alright, thanks. I will try that tomorrow. How does the system decide which template to use by default? Hardcoded in somewhere, apparently? I changed the default template but that did not seem to affect it. I called {News} without parameters.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Where can I change the general template used for News?

Post by Dr.CSS »

When you click a link in News, title link or more link, it defaults to show in the page it's on, default install templates have it in the side bar, when the link is clicked it takes over/ is shown in the page where you have the {content} tag if you add the detailpage= to the tag it will replace the {content} on that page...
Post Reply

Return to “CMSMS Core”