Hi Aurélien,
I have been able to get the skin name from the PSML and JR.prop with the following.

#if ($!{data.profile.document.portlets.skin.name} != "null")
#set ($skinName = "$!{data.profile.document.portlets.skin.name}")
#else
#set ($skinName = $config.getString("services.PortalToolkit.default.skin"))
#end

I then use the skinName reference a CSS ("css/$skinName/default.css"). You can modify the default.css for your needs. This was our approach, but I would be interested in hearing of something different.

Glen


Aurelien Pernoud wrote:
Hi,

I'm currently extending skins capabilities, and I'd like to access skin from
layout\default.vm, but there the skin object is null, it is not yet
instanciated.

The aim is to set a class style for the body of the page (<BODY class=...>)
so that changing skin can change background too...
I thought it could take the skin from the current pane / controller... So
that changing pane will change background dynamically.
Any idea on how to do this, does it need many changes ?

Thanks,
Aurélien Pernoud


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

Reply via email to