Page 1 of 1

Formatting the news summary

Posted: Tue Apr 07, 2009 5:47 pm
by Fraserm
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:

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}
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.

Re: Formatting the news summary

Posted: Mon May 25, 2009 8:36 am
by twan
What you did was right. But when you entered the summary you probably used a WYSIWYG edtor (FCK editor?). This editor automatically puts your text in a paragraph. That's why your 'more' link is on a new line. You could manually remove the paragraph-tags from the summary, then it should work.

Please visit http://forum.cmsmadesimple.org/index.php/topic,12929.0.html for more info.

Twan