Gaasch, Derek wrote:
Try
$ui.image("xxx")
$ui.getImage("xxx") doesn't work for me but "$ui.image" does
-d
-----Original Message-----
From: Xavier Ottolini [mailto:[EMAIL PROTECTED] Sent: Thursday, February 20, 2003 9:43 AM
To: Turbine Users List
Subject: Re: Path to resources and skin
Thanks Eric,
And if the user chooses to select a different skin, it is possible to get the name of the skin :
I discoved the class "UIManager" with the method getSkin(), getImage(), getStylecss($data)
In the template, it is used like that :
$ui.getImage("myimage.gif")
I tried it but the browser displays '$ui.getImage("myimage.gif")'. I think that the UIManager is disabled when services.VelocityService.default.layout is set to VelocityOnlyLayout in the TR.properties.
Xavier
Eric Emminger wrote:
Xavier
My images are in the folder : <webapp root>/resources/ui/skins/default/images/Try using the following in a Velocity template.
When I call getURI(java.lang.String pathToContent), it returns a URI pointing to the given content (where content is a path relative to the webapp root).
How can I find the skin folder ?
$content.getURI("resources/ui/skins/default/images/")
Eric
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
