[opencms-dev] How can define dynamic urls for images in body templates
Farnaz Fotrousi
f_fotrousi at yahoo.com
Tue May 3 13:09:20 CEST 2005
Hi,
How is it possible to define iamges in body templates?
I have defined some body templates which contains images. I tried to define images as follwing:
<img src="]]><method name="getServletPath"/><![CDATA[system/modules/Test/resources/images/test.gif" width="12" height="13">
When I create new pages with these body templates, no problem exists and iamges are displayed correctely but as soon as I tried to edit these pages, images in body templates can not be found.
page's path is added to first of my image's path.
As the context can be different, I can not set static url for images. How can I define dynamic urls for images in body templates?
Regards,
Farnaz
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20050503/01571966/attachment.htm>
More information about the opencms-dev
mailing list