I want 'Read more' at the end of the intro text

I want 'Read more' at the end of the intro text

Wednesday 27 August 2003 3:02:36 am - 3 replies

Modified on Wednesday 27 August 2003 3:04:31 am by Mark Overduin

Author Message

bisk

Wednesday 27 August 2003 4:21:28 am

I understand what you're trying to do. I don't know how to remove the p tag.

But I have another suggestion if you have just one paragraph in the intro(s). If you have, you can move the read more link code in the template into the intro div. And after that you can use css to set the <p> of the intro <div> to inline instead of block. That way the other inline element the a tag of the 'read more' will flow behind it instead of under it.

Something like this:
.intro p {display: inline;}

Also if you don't want the p's maybe you can change the intro field from a XML Text field to a Text Field (which I assume doesn't generate the p tag).

-------------------------------
http://www.kookfijn.nl & http://www.magento.be

Mark Overduin

Wednesday 27 August 2003 4:35:53 am

Thanx!

".intro p {display:inline;}" does the trick. Now it looks exactly the way I want it to look :D

-- Mark

Bjørn Kaarstein

Wednesday 27 August 2003 11:15:07 am

Hi Mark.

Probably your intro is an XML textfield, and then EZpublish automatically uses a bunch of different templates (ezxmltext & ezxmltags) from the standard design folder.

If you turn on
[TemplateSettings]
Debug=enabled

- you'll see which ones are used. Then you also have the possibility to remove paragraphs from these templates.
You can also override these templates, just by placing them in the right folder in the yourdesign/override/ folder.
Regards Bjørn

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.