You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Massimiliano Dessi <ma...@gruppoatlantis.it> on 2002/11/13 10:48:08 UTC

image in a skin?

How can put an image or a icon in a skin
and use a different skin for a each portlet ?
(in a normal visualization)

thanks in advanced

Massimiliano Dessì



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: image in a skin?

Posted by Luc Dewavrin <lu...@yahoo.com>.
 --- Massimiliano Dessi
<ma...@gruppoatlantis.it> a écrit : > How
can put an image or a icon in a skin
> and use a different skin for a each portlet ?
> (in a normal visualization)
> 
> thanks in advanced

- Define your skin in skins.xreg,
- add a property in your skin declaration.
Ex:
<property name="backgroundimg"
value="images/myimage.gif" hidden="false"/>

- Modifiy the jetspeed.vm (portlet default control)
velocity template file to
take your "backgroundimg" property into account:
Ex:
<table
background="$clink.setURI("${skin.backgroundimg}").Absolute"
...>

- In PSML file, add a skin entry to your portlet
declaration:

<entry id="P-efd78aec5d-10003"
parent="CategoryViewer">
        <security-ref parent="user-view_admin-all"/>
        <skin name="MYSKIN"/>
        <layout position="-1" size="-1">
        <property name="column" value="2"/>
        <property name="row" value="0"/>
       </layout>
 
   </entry>

Hope this helps,
Luc



___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>