(using PHP 5.2.1, Apache 2.2.4, MySql 5.0.22)
I have a question, I would like to shorten the length of the news summary (news module version 2.2) to a lenth I would like to set. I found this old topic but I think the news module has changes since then...
I tried something like this in the news summery template:
Code: Select all
{if $entry->summary}
<div class="NewsSummarySummary">
{eval var=$entry->summary}
{$entry->summary|truncate:30:"...":false}
</div>
<div class="NewsSummaryMorelink">
[{$entry->morelink}]
</div>
{else if $entry->content}
<div class="NewsSummaryContent">
{eval var=$entry->content}
</div>
{/if}So I would appreciate it if someone could tell how to do this,
Oh and btw, just to be on the safe side, how do tell the news module it is the summery I want and not the whole article?
Thanks in advance,
Andrew
