How to tell CMSMS to post whole news articles?
Posted: Wed May 02, 2007 4:32 pm
Hey there,
(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: I found this code here, but it didn't do anything I could notice (and what would the 30 represent anyway?)
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
(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