Page 1 of 1

Formatting News

Posted: Fri Dec 08, 2006 5:19 pm
by budgetastronomer
Hi all - before I get to the actual question I just want to say that CMSMS is way cool!
I am moving my old site (http://budgetastronomer.squarespace.com/) to a new site (http://www.budgetastronomer.ca) - still in progress. I have formatted the news to read only headlines on the main page, with the details going to a blank page not listed on the menu. I also have a "What's New" page where I want to list all news items in detail. My question is, how do i format that? I just put a {news} tag on the what's new page, but how do I tell it to use th edetail template rather than the summary template?

Thanks,
Ed
Climbing the CMSMS learning curve one template at a time...

Re: Formatting News

Posted: Sat Dec 09, 2006 1:20 am
by Dr.CSS
Go to Extensions ยป Modules click News or Help to get the parameters and other info...

# (optional) summarytemplate="sometemplate.tpl" - Use a separate template for displaying the article summary. It have to live in modules/News/templates.
# (optional) detailtemplate="sometemplate.tpl" - Use a separate template for displaying the article detail. It have to live in modules/News/templates.

Re: Formatting News

Posted: Sat Dec 09, 2006 2:32 am
by budgetastronomer
I may be thick here, but please pardon my noobishness.
If all I want to do is display all news items in detail on a page, I have to create a new details template, even though there is a perfectly good details template built in? Is there not just something like {news detailtemplate} that will do the job?
I tried setting the page as a News content type, but that too just gave me the summary, without an option for making the page display as details.

Thanks,
Ed ???

Re: Formatting News

Posted: Sat Dec 09, 2006 3:28 am
by Dr.CSS
The news defaults to the summary so to get it to show detail,,,

go to news click on the detail template copy/paste into a file, using notepad so you can save it as all file types with .tpl extension, upload this to the modules/news/templates folder then use the tag...

{news summarytemplate='TheNameofYourTemplate.tpl'}

Re: Formatting News

Posted: Sun Dec 10, 2006 4:52 pm
by budgetastronomer
So it IS a workaround - thank you! that worked beautifully!

Ed