While I see the value of portlet-level control, it exceeds my current
*needs* - not to mention my technical abilities to fix it myself ;) If I
could change the control's template, it would be sufficient.
The default layout seemed a bit "busy" to me - especially when the
action-icons will only rarely be used once a user has configured their
screen. By getting rid of the foreach-action-loop in the template, the look
of the screen immediately improved. Now I am hoping to dynamically bring
back the "actions" just for the rare ocassions when they are needed.
Steve B.
----- Original Message -----
From: "Paul Spencer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 08, 2001 1:18 PM
Subject: Re: Remove display options from portlets
> Steve,
> I think the real questions are:
> How can an "action" be set/unset on portlet?
> Can this be on based on the user?
> Are Roles and Permissions used?
>
> I base this on the following in
> [jetspeed-home]\webapp\WEB-INF\templates\vm\controls\html\jetspeed.vm
> > > #foreach ( $action in $actions )
> > > <a href="${action.Link}"><img src="images/${action.Name}.gif"
> > > border="0"></a>
> Thus, if the only actions are set will he their icons displayed.
>
> Paul Spencer
>
>
> sbelt wrote:
> >
> > This is awesome - allows me to really jazz-up my portlets!
> >
> > Is it possible to dynamically change the template I use? My thought was
to
> > provide a link
> > called "edit mode" which shows the portlets with resize/config buttons,
and
> > another called "run mode" which hides the config buttons. (I do not need
to
> > save the setting as I figure I will always use the "run mode" when a
user
> > logs in.
> >
> > TIA,
> >
> > Steve B.
> >
> > ----- Original Message -----
> > From: "Chris Kimpton" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, August 07, 2001 10:07 AM
> > Subject: Re: Remove display options from portlets
> >
> > > Hi,
> > >
> > > --- Sony Joseph <[EMAIL PROTECTED]> wrote:
> > > > Hi All,
> > > >
> > > > How do we remove the display (mimize/Maximaize etc ) options from
> > > > portlets
> > > > ?
> > > >
> > >
> > > One option is to have your own version of the velocity template file
> > > jetspeed.vm ( found in
> > > [jetspeed-home]\webapp\WEB-INF\templates\vm\controls\html ).
> > >
> > > There is the following code in there;
> > >
> > > #foreach ( $action in $actions )
> > > <a href="${action.Link}"><img src="images/${action.Name}.gif"
> > > border="0"></a>
> > > #end
> > >
> > > This adds the buttons you are referring to.
> > >
> > > Thus, your custom version of this file could remove that bit of code.
> > >
> > > You might also be able to do it with configuration entries in your
> > > .xreg file for your portlets... but I can't see where at the moment.
> > >
> > > HTH,
> > > Chris
> > >
> > > =====
> > > Need somewhere to Live in London - http://freeflats.com
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Make international calls for as low as $.04/minute with Yahoo!
Messenger
> > > http://phonecard.yahoo.com/
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]