Page 1 of 1
Where can I change the general template used for News?
Posted: Wed May 28, 2008 3:05 pm
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.
Re: Where can I change the general template used for News?
Posted: Wed May 28, 2008 3:31 pm
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.
Re: Where can I change the general template used for News?
Posted: Wed May 28, 2008 5:01 pm
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.
Re: Where can I change the general template used for News?
Posted: Wed May 28, 2008 6:40 pm
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
Re: Where can I change the general template used for News?
Posted: Wed May 28, 2008 8:46 pm
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.
Re: Where can I change the general template used for News?
Posted: Thu May 29, 2008 3:17 am
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...