Page 1 of 1

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

Posted: Thu Oct 18, 2007 8:08 pm
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,

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

Posted: Thu Oct 18, 2007 10:26 pm
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.