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]
