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>
|