portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cgaeking <christ...@gaeking.de>
Subject Re: Fwd: Re: Disabling the Minimize/ maximize portlet function based on roles
Date Wed, 28 Nov 2007 13:58:30 GMT



paksegu wrote:
> 
> 
> 
> Note: forwarded message attached.
>        
> ---------------------------------
> Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail,
> news, photos & more. 
> 
> On Jun 12, 2007, at 4:13 PM, paksegu wrote:
> 
>> Hi,
>>   How can I disable the minimize/maximize portlet functions based  
>> on roles?
>>   Thanks
>>
> Well I thought you could simply edit the jetspeed.properties and  
> comment out the window state support
> 
> # supported.windowstate = minimized
> 
> But it appears that does not work.
> 
> Here is a quick hack fix, although I'd prefer fixing the bug
> If you could formalize a bug report in JIRA that would help, as it  
> could be a useful feature
> 
> For now, edit jetspeed_macros.vm:
> 
> #macro(PortletActionBar $_decoration)
>   #set($_actions = $_decoration.actions)
> 
>   <div class="PActionBar">
>      #foreach ($_action in $_actions)
>     #if (${_action.Name} == "Minimize" || ${_action.Name} == "Maximize")
>      #else
>        ${_action.Action}  $request.contextPath/$ 
{_action.link}  
>        #end
>      #end
>   </div>
> #end
> 
> Restart of server is required as we cache this file
> 

I am using the ${_action.Name} variable as well. It's somehow strange that
${_action.Name} changed to "normal", "maximized" and "Minimize" for me!

-- 
View this message in context: http://www.nabble.com/Fwd%3A-Re%3A-Disabling-the-Minimize--maximize-portlet-function-based-on-roles-tf3961300.html#a13992977
Sent from the Jetspeed - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message