The use of paragraph breaks in code

Author Message

Alexei Pechekhonov

Monday 31 March 2003 8:35:43 pm

Could somebody please explain how we can change the paragraph spacing used through out ezpublish. For example it seems to be used after article titles, after the article body and again after "Read more...". I would like to reduce these gaps but I am unable to find where thier location as they are not found in the templates.

In eZ publish 2.2.x I had a similar problem but was able to locate them in one of the classes.

Thanks

Jan Borsodi

Thursday 03 April 2003 3:04:57 am

Have you looked at the templates in design/standard/templates/content/datatype/view/ezxmltags?
They should give you the possibility to adjust the spacing between various elements, also changing the stylesheets might help.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Brendan Pike

Friday 16 May 2003 5:05:00 am

I am struggeling with a similar problem. I have tried everything but it seems the parser keeps throwing paragraph breaks in. Although removing the <p> from paragraph.tpl does remove the spaces between title and intro it also removes the paragraph breaks within the content itself.

Can you please tell me where I should be looking?

www.dbinformatics.com.au

We are always interested in hearing from experienced eZ PHP programmers and eZ template designers interested in contract work.

Paul Forsyth

Friday 16 May 2003 5:26:25 am

Look at the stylesheet you are using. If using the standard core.css you will see lines like:

/* REGULAR PARAGRAPHS */

p
{
padding-top: 0.5ex;
padding-bottom: 0.5ex;
margin: 0px;
}

Adjusting or overriding these may help. From what i remember the html the ezxmltags insert will use the css from core.css

Also look at the html source being produced. This will help to show exactly what html code and css tags (or lack of) are being applied, then look through the css file.

Hope this helps

Paul

Brendan Pike

Friday 16 May 2003 6:25:26 am

Thank Paul

That had been pissing me off for awhile. It was the missing paragraph info within the css I'm using.

Cheers

www.dbinformatics.com.au

We are always interested in hearing from experienced eZ PHP programmers and eZ template designers interested in contract work.

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