portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gonzalo Aguilar Delgado <gagui...@aguilardelgado.com>
Subject Re: about portlet-icon
Date Sun, 17 Jan 2010 12:24:36 GMT
Nice...

I will try it.


El sáb, 16-01-2010 a las 12:16 -0800, David Sean Taylor escribió:

> On Sat, Jan 16, 2010 at 5:00 AM, Gonzalo Aguilar Delgado <
> gaguilar@aguilardelgado.com> wrote:
> 
> > Hi David,
> >
> > This is unimportant but I don't find any examples on how to do it.
> >
> > ¿Can you point me where can I look, please?
> >
> >
> toolbox.jsp has this bit:
> 
>             if (def.portletIcon) {
>                 imgNode.set("src", "${portalContextPath}/images/portlets/" +
> def.portletIcon);
>             } else {
>                 imgNode.set("src",
> "${portalContextPath}/images/portlets/applications-other.png");
>             }
> 
> So its retrieving the icon from def.portletIcon and create a link that is
> based on the ${portlContextPath}/images/
> 
> 
> You will need to change this code to make your link relative to your own
> application
> 
> Maybe its best to always provide the images from the portlet application
> instead of directly from the Jetspeed application, as this makes it easier
> to add images as a part of the deployment

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message