display custom image in pagelayout

Author Message

udaya suriya

Friday 02 June 2006 11:19:16 pm

Can anyone pls help me out....
im new to ez-publish....

well my prb is, i wants to display my top_bg.gif image in my pagelayout.tpl file in the header part as a background image...

pls tell me where i can save this image in ez publish and how?
and then how can i have to call this image in my pagelayout header part.

coz i dont understand this how ezpublish manage the paths.

its very urgent too...

Thanx for your concern.

Christian Johansen

Monday 05 June 2006 10:36:29 pm

Store your images in design/yourdesign/images/ and retrieve it using the ezdesign operator as such:

<body style="background: url('images/top_bg.gif'|ezdesign);">
...
</body>

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 11:20:43
Script start
Timing: Jan 18 2025 11:20:43
Module start 'layout'
Timing: Jan 18 2025 11:20:43
Module start 'content'
Timing: Jan 18 2025 11:20:44
Module end 'content'
Timing: Jan 18 2025 11:20:44
Script end

Main resources:

Total runtime0.9452 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.0069 588.0156152.6250
Module start 'layout' 0.00690.0028 740.640639.4453
Module start 'content' 0.00970.9335 780.0859458.7031
Module end 'content' 0.94310.0020 1,238.78918.1563
Script end 0.9452  1,246.9453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3474160.0002
Check MTime0.00140.1448160.0001
Mysql Total
Database connection0.00080.084810.0008
Mysqli_queries0.890694.2265540.0165
Looping result0.00060.0631520.0000
Template Total0.905195.820.4525
Template load0.00250.260720.0012
Template processing0.902695.494120.4513
Template load and register function0.00020.022610.0002
states
state_id_array0.00110.117910.0011
state_identifier_array0.00440.467120.0022
Override
Cache load0.00210.2170140.0001
Sytem overhead
Fetch class attribute can translate value0.00110.113420.0005
Fetch class attribute name0.00370.386820.0018
XML
Image XML parsing0.00030.027920.0001
class_abstraction
Instantiating content class attribute0.00000.001220.0000
General
dbfile0.00140.1529100.0001
String conversion0.00000.001340.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
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0004 secs