Hi fellow Magnolians,

I'd like to move my style-related images (those used inside a CSS) from the
DMS to the static section of my webapp (i.e. the parent folder of WEB-INF).

The reason I'm trying to do this is because these resources should be
immutable and I expect them to be served faster, since no round-trip through
the DMS will be necessary.

Now in order to reference them from the style sheet, I've first changed its
type to "Processed CSS". I've then tried to access them like this:

 background: url('${ctx.contextPath}/docroot/style/img/background.gif')

This doesn't work, however, since the ctx object is not defined in my model.
I couldn't find any STK model class, which would allow me to access the
context.

Can someone show me how to access the current page context, so that I can
access the context path of my web app? Is there maybe another way I can
access my static resources in the webapp location?

I'm using Mgnl 4.1 and STK 1.1.

Thanks for your help
Andreas



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to