[Zope] - Importing images from subfolders in lowerfolders fails
Brad Clements
bkc@murkworks.com
Fri, 15 Jan 1999 11:35:13 -0500
I have a folder heirarchy like this
/
Air
Links
index_html
I have an image in /Air called PlaneImage
In /Air/Links/index_html I have
<!--#var PlaneImage-->
The resulting output HTML is
<IMG SRC="PlaneImage" ALT="Small Airplane Image">
However, since PlaneImage is defined in /Air, shouldn't this really be
<IMG SRC="Air/PlaneImage" ALT="Small Airplane Image">
I'm wondering if I'm using the #var wrong, or if this is a "bug".
I'll have to hand-code all of my images if I can't get this to work.
What is the var for "path to myself", is in, in index_html above I want to
get "Air/Links" as the path, and "index_html" as the document name.
To work around this problem, I've defined a property in /Air called
"baseref" and set it to http://myhost.com:9673/Air"
Then all of my URLS are constructed using <!--#var baseref-->, but it's
rather labor intensive..
Brad Clements, bkc@murkworks.com (315)268-1000
http://www.murkworks.com (315)268-9812 Fax
netmeeting: ils://ils.murkworks.com ICQ: 14856937
We must come down from our heights, and leave our straight
paths, for the byways and low places of life, if we would
learn truths by strong contrasts; and in hovels, in forecastles,
and among our own outcasts in foreign lands, see what has been
wrought upon our fellow-creatures by accident, hardship, or vice.
- Richard Henry Dana, Jr. 1836