How do I put images in my site design layouts?

Author Message

Jorge estévez

Thursday 20 May 2004 7:13:13 pm

I have installed ezp 3.4 beta 1

How can I put images to my pagelayouts so I can modify the design

Where do I have to put the images (wich directory) and can someone tell me what code inserts those images in the pagelayout so all pages based in that layout can display them?

thanks

Diseño Web Cuba
Web Design Cuba
www.elfosdesign.com

Alex Jones

Friday 21 May 2004 6:26:35 am

Joe, create a new directory in /design/<i>your_site</i>/ with the name of images or the like and place all of the images there. Then you can access the images in your template by using <i>|ezdesign</i> which automatically creates the path to your design folder. So, for example, on one of my sites I have placed the image 'add_to_cart.gif' in /design/plain/images/ and use the following line to call it in my templates:

<img src={"images/add_to_cart.gif"|ezdesign} alt="Add to Cart" width="71" height="14" />

Note that the quotes for the src attribute are around the image path, not around the curly brackets.

This will send the following line to the browser for rendering:

<img src=/design/plain/images/add_to_cart.gif" alt="Add to Cart" width="71" height="14" />

Does this help?

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Jorge estévez

Saturday 22 May 2004 6:28:25 am

Yes It worked just fine...
Thanks again Alex...

Diseño Web Cuba
Web Design Cuba
www.elfosdesign.com

Alex Jones

Monday 24 May 2004 8:16:51 am

Happy to help. :)

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

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 31 2025 04:32:59
Script start
Timing: Jan 31 2025 04:32:59
Module start 'layout'
Timing: Jan 31 2025 04:32:59
Module start 'content'
Timing: Jan 31 2025 04:32:59
Module end 'content'
Timing: Jan 31 2025 04:32:59
Script end

Main resources:

Total runtime0.0220 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.0046 588.2656151.2266
Module start 'layout' 0.00460.0026 739.492236.6797
Module start 'content' 0.00720.0130 776.171994.3125
Module end 'content' 0.02020.0018 870.484433.9922
Script end 0.0219  904.4766 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002511.1481140.0002
Check MTime0.00115.0046140.0001
Mysql Total
Database connection0.00062.834210.0006
Mysqli_queries0.002310.673030.0008
Looping result0.00000.055310.0000
Template Total0.00135.810.0013
Template load0.00104.386410.0010
Template processing0.00031.392710.0003
Override
Cache load0.00072.985010.0007
General
dbfile0.002210.036380.0003
String conversion0.00000.031540.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