Hi,

--- sbelt <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to