[PHPTAL] PHPTAL: image href
Joshua Paine
lists at fairsky.us
Wed May 10 15:40:10 CEST 2006
dutz dutz wrote:
> Every piece of image slice using tal:attributes
That was one I thought of but hadn't written yet. Or you could just
arrange your folders differently. Or (what I do) always test/code/design
with a webserver (even a local one) and use absolute paths
"/tpl/images/pic.jpg".
Or (perhaps best for you) using your current directory structure, stick
<base href="../" tal:replace="" />
in the head of the page (before any stylesheets or scripts or whatever)
and refer to your images as
<img src="tpl/images/pic.jpg" />
--
Joshua Paine
Chief Tower Builder
LetterBlock Software
http://letterblock.com/
More information about the PHPTAL
mailing list