Formatting the news summary
Posted: Tue Apr 07, 2009 5:47 pm
I'm trying to format the output of the news summary template.
The code i'm using is only slightly modified from default, but what i'm trying to achieve is to have the 'More' link right after the summary, on the same line. By default it's in a completely new paragraph, or at least several lines below it in a separate DIV. The code i'm using is:
You'll see from there that I initially thought all I had to do was put the morelink tag inline with the summary tag (sorry, i'm new), but that seems to be wrong.
Could someone please point me in the right direction?
Fraser.
The code i'm using is only slightly modified from default, but what i'm trying to achieve is to have the 'More' link right after the summary, on the same line. By default it's in a completely new paragraph, or at least several lines below it in a separate DIV. The code i'm using is:
Code: Select all
{if $entry->summary}
<div class="normal_text">
[color=red]{eval var=$entry->summary} {$entry->morelink}[/color]
</div>
{else if $entry->content}
<div class="NewsSummaryContent">
{eval var=$entry->content}
</div>
{/if}
Could someone please point me in the right direction?
Fraser.