Page 1 of 1
News Module - Simple Question
Posted: Fri Aug 10, 2007 4:27 pm
by jclanin
Hi all,
I only want to display the single most recent news summary entry on the news summary block that shows on the side bar of the site... I want the main news summary page to show all the news listings with "more" to go to the details page(s) - like it does by default. Is that possible? If so, how?
thanks!
Jim Clanin
Re: News Module - Simple Question
Posted: Fri Aug 10, 2007 4:46 pm
by calguy1000
Yes, it's possible to do.... you just need to
a) Create different summary templates for each section you want to use News summary in
b) Call news multiple times, with different parameters
i.e for your news summary block on the side bar:
{news number='1' summarytemplate='sidebar'}
** sidebar is a new template that you create that is NOT the default template
** This will only display one article
and in your news page
{news}
** this will display all of the summary articles, with the default summary template
Re: News Module - Simple Question
Posted: Fri Aug 10, 2007 5:47 pm
by jclanin
Hi and Thanks!
Still need clarification though as I'm very new to CMSMS. I want the main news listing page and detail pages to work as they do now. I only want the sidebar module to show the single most recent listing.
That being said, based on your instruction what would be in the actual code for the new "sidebar" template I create if I only want the most recent news summary listed?
--JC
Re: News Module - Simple Question
Posted: Fri Aug 10, 2007 5:55 pm
by jclanin
I figured it out...! Thanks for pointing me in the right direction calguy...
-JC