[ZPT] ZPT and Paths
Amy Schmidt
schmidtamylee@yahoo.com
Thu, 11 Oct 2001 12:53:22 -0700 (PDT)
I'm fairly new to both Zope and ZPT and I've run
across what should be a very simple problem, but as of
yet haven't been able to solve it!? Here goes...
I'd like to call an image using it's Zope id in a Page
Template without hardcoding the path, but I can't seem
to find any documentation on that. Note that the Page
Template and image reside in different directories in
Zope. If there's no way to reference the image without
hardcoding the path, I can't see any reason why using
TAL in ZPT is better than straight HTML for image
references. See example below. Am I missing
something???
HTML only
<img src="../images/subdir/myimage.gif">
HTML/TAL
<img tal:replace="here/images/subdir/myimage.gif">
amy schmidt
interactive programmer
arnoldworldwide
__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com