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.

eZ debug

Timing: Jan 18 2025 10:25:12
Script start
Timing: Jan 18 2025 10:25:12
Module start 'layout'
Timing: Jan 18 2025 10:25:12
Module start 'content'
Timing: Jan 18 2025 10:25:12
Module end 'content'
Timing: Jan 18 2025 10:25:12
Script end

Main resources:

Total runtime0.0134 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 587.9375152.6250
Module start 'layout' 0.00470.0023 740.562539.4453
Module start 'content' 0.00700.0047 780.007893.3359
Module end 'content' 0.01170.0017 873.343834.3047
Script end 0.0134  907.6484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002417.9128140.0002
Check MTime0.00118.0089140.0001
Mysql Total
Database connection0.00074.971510.0007
Mysqli_queries0.001813.434230.0006
Looping result0.00000.090710.0000
Template Total0.001410.310.0014
Template load0.00096.396810.0009
Template processing0.00053.822110.0005
Override
Cache load0.00074.864810.0007
General
dbfile0.00021.750980.0000
String conversion0.00000.037440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs