News Module - Simple Question

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
jclanin
New Member
New Member
Posts: 5
Joined: Wed Aug 08, 2007 8:55 pm

News Module - Simple Question

Post 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
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: News Module - Simple Question

Post 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
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
jclanin
New Member
New Member
Posts: 5
Joined: Wed Aug 08, 2007 8:55 pm

Re: News Module - Simple Question

Post 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
jclanin
New Member
New Member
Posts: 5
Joined: Wed Aug 08, 2007 8:55 pm

Re: News Module - Simple Question

Post by jclanin »

I figured it out...!  Thanks for pointing me in the right direction calguy...


-JC
Post Reply

Return to “CMSMS Core”