force news to show just detailed content

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
mox
Forum Members
Forum Members
Posts: 113
Joined: Wed Feb 08, 2006 2:32 pm

force news to show just detailed content

Post by mox »

Hi,
I search for this question and I find myself a solution...
The question:
I need to view, in some part of a page, the latest news of a particolar category, directly in details, without summary.

The answer:
you need two templates: one is your template for details and the other is the custom summary template; the two are the same but teh summary one start with {foreach from=$items item=entry} and end with {/forech}; inside this cicle there is the content of the detail template.
In the content page or in the template you must declare the templete you want use:
{cms_module module="news" category="yuorcategory" moretext="..." summarytemplate="customsummary.tpl" detailtemplate="yourdetail.tpl" number="1"}
number="1" is because I need only the last news to display

That's all
Byz
MoX
Post Reply

Return to “CMSMS Core”