maincontent height

Author Message

Anthony Kress

Wednesday 30 March 2005 8:06:28 pm

I want to dynamically create a border (gif) around the $module_result.content. Is there a way to determine the height of the content in order to set the height of the border gif???

Sebastiaan van der Vliet

Wednesday 30 March 2005 11:58:32 pm

Hi,

Why don't you create a border using css, e.g.:

border: 1px solid #4783a0;

If using css is not an option, take a look at the following links:

http://www.sitepoint.com/article/exploring-limits-css-layout/
http://cross-browser.com/x/examples/layout2.html

We use the script above to match the heights of three columns on a homepage without setting a fixed height for all three.

Certified eZ publish developer with over 9 years of eZ publish experience. Available for challenging eZ publish projects as a technical consultant, project manager, trouble shooter or strategic advisor.

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 19 2025 07:06:17
Script start
Timing: Jan 19 2025 07:06:17
Module start 'layout'
Timing: Jan 19 2025 07:06:17
Module start 'content'
Timing: Jan 19 2025 07:06:18
Module end 'content'
Timing: Jan 19 2025 07:06:18
Script end

Main resources:

Total runtime1.5345 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0073 590.1563152.6094
Module start 'layout' 0.00730.0039 742.765639.4297
Module start 'content' 0.01121.5216 782.1953523.5781
Module end 'content' 1.53270.0017 1,305.77348.1875
Script end 1.5344  1,313.9609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.2326160.0002
Check MTime0.00140.0915160.0001
Mysql Total
Database connection0.00120.076010.0012
Mysqli_queries1.479396.4036540.0274
Looping result0.00070.0449520.0000
Template Total1.481996.620.7410
Template load0.00290.187120.0014
Template processing1.479096.387520.7395
Template load and register function0.00050.032710.0005
states
state_id_array0.00090.059610.0009
state_identifier_array0.00470.309020.0024
Override
Cache load0.00240.1584130.0002
Sytem overhead
Fetch class attribute can translate value0.00060.040720.0003
Fetch class attribute name0.00180.120530.0006
XML
Image XML parsing0.00080.051720.0004
class_abstraction
Instantiating content class attribute0.00000.000530.0000
General
dbfile0.00600.3892170.0004
String conversion0.00000.000840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs