detailtemplate and summarytemplate news parameters
Posted: Tue Oct 03, 2006 2:03 pm
Hi,
I'm trying to insert some news items in two different parts of a site, and I need each sets of news to display differently.Therefore I want to define a different detailtemplate and summarytemplate for each section. I am using the following tag:
I have placed the foto-news-summary.tpl file in modules/News/templates and it looks like this, it's basically just the default one with author and category removed:
I have followed the thread here: http://forum.cmsmadesimple.org/index.ph ... 557.0.html and have tried:
Thanks in advance,
Chris
I'm trying to insert some news items in two different parts of a site, and I need each sets of news to display differently.Therefore I want to define a different detailtemplate and summarytemplate for each section. I am using the following tag:
Code: Select all
{news number="1" category="general" moretext="Read more..." detailpage="News" summarypage="foto-news-summary.tpl"}Code: Select all
<!-- Start News Display Template -->
{foreach from=$items item=entry}
<div class="NewsSummary">f000000000
{if $entry->formatpostdate}
<div class="NewsSummaryPostdate">
{$entry->formatpostdate}
</div>
{/if}
<div class="NewsSummaryLink">
{$entry->titlelink}
</div>
{if $entry->summary}
<div class="NewsSummarySummary">
{eval var=$entry->summary}
</div>
<div class="NewsSummaryMorelink">
{$entry->morelink}
</div>
{else if $entry->content}
<div class="NewsSummaryContent">
{eval var=$entry->content}
</div>
{/if}
</div>
{/foreach}
<!-- End News Display Template -->- Removing one of them, so I only have detailtemplate="" OR summarytemplate="", not both
- Turning off pretty URLs
Thanks in advance,
Chris