[Zope] Newbie question: graphics in subdirs

Andrew Kenneth Milton akm@mail.theinternet.com.au
Thu, 8 Jun 2000 01:46:28 +1000 (EST)


+----[ Randy Edwards ]---------------------------------------------
| I'm going to rewrite my web site in dtml and am using the latest stable
| Zope.  Well, I should say I'll rewrite it after I get over this infuriating
| newbie problem I have. :-)
| `
| I'm trying to get Zope to display an image from a subdir.  I've whipped up a
| simple dtml document called "test".  Test contains this:
| 
| <dtml-var standard_html_header>
| <h2><dtml-var title_or_id></h2>
| <p>This is the <dtml-var id> Document.</p>
| <p>Now show a graphic: <br>
| <dtml-var logo.jpg>
| </p>
| <dtml-var standard_html_footer>

There's more than one way to skin the cat, however:-

You have a '.' in your id which means doing stuff like:-
<dtml-var "images.logo_jpg"> are out in any clean way.

You can <img src="/images/logo.jpg"> which will also work.

You can say;

<dtml-with images>
<dtml-var logo.jpg>
</dtml-with>

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd          |  F:+61 7 3870 4477   | 
ACN: 082 081 472                     |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068    |akm@theinternet.com.au|