News Module: Link from nav to page that shows most current news detailed temp

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
new2thiscms
Forum Members
Forum Members
Posts: 47
Joined: Thu Nov 09, 2006 7:33 pm

News Module: Link from nav to page that shows most current news detailed temp

Post by new2thiscms »

I have been trying to find an answer to this for a while and didn't see it in any other threads.

Is it possible to have the page that loads the {news} show just the news detailed template information as if you click the more button instead of showing the summary and show just the most current article. I tried using {news category='newsletter' detailedtemplate='detailedtemplate.tpl' number'1'} with now luck.

Thanks for any help,
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: News Module: Link from nav to page that shows most current news detailed tem

Post by calguy1000 »

no, that functionality isn't in there at this time. 
this would work, if you know the article id:

Code: Select all

{news action='detail' articleid='22'}
but as far as getting the latest, non expired article, or the latest 'non expired article in a specific category' no, there's nothing in there yet for this.

However.... all of the article information is available in the summary view so you could try

Code: Select all

{news number='1' summarytemplate='abc'} 
where 'abc' is your summary template that is customized to display everything the way you want it to, similar to what your detailtemplate does.
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.
Post Reply

Return to “CMSMS Core”