Formatting the news summary

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
Fraserm
Forum Members
Forum Members
Posts: 107
Joined: Wed Mar 04, 2009 2:27 pm

Formatting the news summary

Post 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.
twan
Forum Members
Forum Members
Posts: 19
Joined: Sat Sep 22, 2007 8:59 pm

Re: Formatting the news summary

Post 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
Post Reply

Return to “Layout and Design (CSS & HTML)”