Thanks again Alby
Hmmm, this thread is getting longer than I expected, I'm sorry, but I think we're almost there. The thing is, that you mis-interpreted a small thing in my question. I do understand how to change the News template.
However, with detailpage I mean the physical location where the detailpage is shown after you click on the summarized item. I want to point to a page alias, in case of category 1 to "page 1" and in case of category 2 to "page 2´, but I don't know the proper way to add this to the template.
My summary template looks like this, the unclearity is at the end of the template:
Code: Select all
<!-- Start News Display Template -->
<div class="titel">Nieuwe berichten</div>
{foreach from=$items item=entry}
<div class="NewsSummary">
{if $entry->formatpostdate}
<div class="NewsSummaryPostdate">
{$entry->postdate|date_format:"%d %b. '%y"} | 
</div>
{/if}
<div class="NewsSummaryCategory">
{$entry->category}
</div>
<div class="NewsSummaryLink">
{$entry->titlelink}
</div>
{if $entry->category eq "1"}
detailpage.......page 1 <!-- What exactly do I type here? -->
{elseif $entry->category eq "2"}
detailpage.......page 2 <!-- and here? -->
{/if}
{else}
Acc... Wrong!
</div>
{/foreach}
<!-- End News Display Template -->