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 Lionel Siau <ma...@siau.per.sg> on 2001/08/07 04:46:55 UTC
VM or JSP and state of docs for 1.3a2
Hi All,
I have been poking around Fran's blueoxygen site and found a cache of docs in progress. However, they are quite helpful given the large changes since 1.3a1 although incomplete.
There is kinda of a contradiction of jsp and vm in the notes for customisation. I would like to know what the current customisation tool should be and its future direction for a 1.3a2 release.
Lionel
Re: Remove display options from portlets
Posted by ra...@networks.groupvu.com.
Paul Spencer wrote:
> 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?
>
Default implementation provided by VelocityPortletControl is to check permissions
against the PortletState interface, it may be more versatile to use declarative
security based on registry settings.
To implement this, subclass VelocityPortletControl, rewrite the business
logic for building of action list and change the controls.xreg definitions to use
your subclass...
--
Raphaƫl Luta - raphael.luta@networks.groupvu.com
Vivendi Universal Networks - Paris
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
Re: Remove display options from portlets
Posted by Chris Kimpton <ki...@yahoo.com>.
Hi,
--- sbelt <sb...@velos.com> wrote:
>
> 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.
If you want to do it solely in the templates, my first suggestion
would be to use a parameter - that if specified, turned on the
controls (for all portlets) and if not, then hid them.
To do this, you would put an if check around the existing for each
loop.
#if ( $data.getParameters().getString("controlson","no") = "yes" )
...existing foreach loop
#end
This would default the controls to be hidden - unless the parameter
controlson was supplied and had a value of "yes"
Thus on your page you would have a link like this
/portal/controlson/yes or like this portal?controlson=yes
If they clicked on that link, the portal would re-display itself,
with the controls shown - but only for the next page.... which might
be a problem - in which case you might want to make it a session
variable and store in to/from there in the template... an exercise
left to the reader ;-)
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: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
Re: Remove display options from portlets
Posted by sbelt <sb...@velos.com>.
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" <pa...@mikon.com>
To: <je...@jakarta.apache.org>
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" <ki...@yahoo.com>
> > To: <je...@jakarta.apache.org>
> > Sent: Tuesday, August 07, 2001 10:07 AM
> > Subject: Re: Remove display options from portlets
> >
> > > Hi,
> > >
> > > --- Sony Joseph <so...@eself.com> 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: jetspeed-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
Re: Remove display options from portlets
Posted by Paul Spencer <pa...@mikon.com>.
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" <ki...@yahoo.com>
> To: <je...@jakarta.apache.org>
> Sent: Tuesday, August 07, 2001 10:07 AM
> Subject: Re: Remove display options from portlets
>
> > Hi,
> >
> > --- Sony Joseph <so...@eself.com> 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: jetspeed-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
Re: Remove display options from portlets
Posted by sbelt <sb...@velos.com>.
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" <ki...@yahoo.com>
To: <je...@jakarta.apache.org>
Sent: Tuesday, August 07, 2001 10:07 AM
Subject: Re: Remove display options from portlets
> Hi,
>
> --- Sony Joseph <so...@eself.com> 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: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
Re: Remove display options from portlets
Posted by Chris Kimpton <ki...@yahoo.com>.
Hi,
--- Sony Joseph <so...@eself.com> 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: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
Remove display options from portlets
Posted by Sony Joseph <so...@eself.com>.
Hi All,
How do we remove the display (mimize/Maximaize etc ) options from portlets
?
Thanks,
Sony
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org