[Zope] subpath in dtml?

Tino Wildenhain tino@wildenhain.de
Sun, 24 Nov 2002 21:50:41 +0100


Hi,

--On Sonntag, 24. November 2002 21:30 +0100 jonatan 
<jonatanpelikan@freemail.hu> wrote:

> On Sun, 2002-11-24 at 21:09, Tino Wildenhain wrote:
>> Hi Jonatan,
>>
>> just fix up your DTML :-) Use site-relative paths,
>> like /images/foo instead of just foo.
>
>
> yes, absolute_url() would be nice.
>
> how do i say header.jpg.absolute_url() ?

here/header.jpg/absolute_url :-)

ok, you want DTML, so you have to write

_['header.jpg'].absolute_url(), or _['header.jpg'].tag() which is probably 
nicer.


> zope says header does not exist .. yeah, it really doesnt. but i need
> header.jpg :)

You need .jpg? Why? Zope surely does not. Browsers also not.

Regards
Tino


>
> ARGH !!!
>
>
>
>
> 	- jonatan
>