How do I put images in my site design layouts?

How do I put images in my site design layouts?

Thursday 20 May 2004 7:13:13 pm - 3 replies

Author Message

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>

You must be logged in to post messages in this topic!

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