> > Is there a way of doing something like
> >
> > <img src="$getRoot("images/bar.jpg")">
> >
> > and have that expanded to
> >
> > <img src="/myapp/servlet/myapp/images/bar.jpg">
> >
> > so that, if I later move the application to a different
> > location, the templates will not have to be changed?
>
> Yipes! Ever heard of a RewriteRule?
No... which shows how much of a newbie I am...
My problem derives from the fact that, at least with
static sites, it is customary to refer to all resources
with relative links, so that the position of the pages
in the site is irrelevant. Since Turbine rewrites the
URL in a way that looses any relation with the physical
filesystem hierarchy, this is not possible anymore. So,
if I have a screen pointing to an image, the URL for the
screen could be something like
.../servlet/myapp/screen/myscreen
If that screen needs an image, it will have to know how
to address the root for the app. This doesn't seem good
to me...
Anyway, it seems this is not an issue for anyone else.
Daniel, just out of curiosity, do you use absolute paths
to reference to images and other static content? And also,
how do you use a rewrite rule?
Thanks,
--
Gonzalo A. Diethelm
[EMAIL PROTECTED]
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]