image in a skin?

2002-11-13 Thread Massimiliano Dessi
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:   mailto:jetspeed-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:jetspeed-user-help;jakarta.apache.org




Re: image in a skin?

2002-11-13 Thread Luc Dewavrin
 --- Massimiliano Dessi
[EMAIL PROTECTED] 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:   mailto:jetspeed-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:jetspeed-user-help;jakarta.apache.org