Brad Murphy wrote:
Hi everyone,

Lenya 1.2.4, using Tomcat.

Are there any absolute path variables to make use of in Lenya, or can I create
some?  I'm trying to customize the menu using menu.xsl in the
pub_dir/lenya/xslt/navigation/ directory, however I don't know how to reference
an image properly that is located in the resources directory (because I want a
background image).  I've tried:

<xsl:template name="item-root">
<div style="background-image:url(../shared/images/test.gif);">
<a href="[EMAIL PROTECTED]"><xsl:apply-templates select="nav:label"/></a></div>
</xsl:template>

Now this does work if I'm on a root page, however once I start going to sub
pages it breaks.  I'd need to do something like ../../ in that case.  Of course,
then the other levels break.  Is there a global absolute path I could use to
reference my "shared" directory within the resources?

Any help we be very appreciated.

P.S ... I looked in the documentation, and on the solprovider site, however I
can't seem to find how to do this.  Solprovider has some variable info,
therefore I may be misunderstanding something.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



I don't know. I'm not good at design, but perhaps you should be using a CSS file for this purpose. Then you would just apply the style from the CSS. Since the image would never move in relation to the CSS, you wouldn't have any problems. You could also try {$root}/images/test.gif, but that might be a 1.4 thing.

Richard

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to