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 David Just <da...@visionsolutions.com> on 2010/04/19 23:48:22 UTC
Is it possible to change the decorator.properties on a folder by folder case?
Sometimes, I want users to be able to edit portlet preferences, but not
allow them to add/remove reorganize portlets on a page/folder, but other
times I want them to be able to do so. This is on a folder by folder
case. Since it appears the only way to enable portlet edit without also
enabling folder / page edit is to disable them in the decorator, I would
like to be able to change just those layout properties on a folder by
folder case. Is this possible or do I have to create and manage two
separate decorators?
Thanks.
David Just l Senior Software Engineer l Vision Solutions l +1 (507) 529-5939 l david.just@visionsolutions.com
The contents of this e-mail (and any attachments) are privileged and confidential. Unauthorized use is strictly prohibited.
Re: Is it possible to change the decorator.properties on a folder by folder case?
Posted by Woonsan Ko <wo...@yahoo.com>.
Hi David,
I think you need to customize the layout templates for the purpose.
For example, you can find the following in /jetspeed/WEB-INF/templates/layout/html/columns/layout.vm:
#getBoolProperty($allowAddPortlet $rootDecorator "allow.add.portlet" true)
You could set the above property to false to not display "Add portlet" button in some cases:
#set ($allowAddPortlet = false)
You could play with some objects at the top of the velocity template file: $request, $jetspeed, $theme, $myPage, $decorator, etc.
Regards,
Woonsan
----- Original Message ----
> From: David Just <da...@visionsolutions.com>
> To: Jetspeed Users List <je...@portals.apache.org>
> Sent: Mon, April 19, 2010 11:48:22 PM
> Subject: Is it possible to change the decorator.properties on a folder by folder case?
>
> Sometimes, I want users to be able to edit portlet preferences, but not
allow
> them to add/remove reorganize portlets on a page/folder, but other
times I
> want them to be able to do so. This is on a folder by
> folder
case. Since it appears the only way to enable portlet edit
> without also
enabling folder / page edit is to disable them in the decorator,
> I would
like to be able to change just those layout properties on a folder
> by
folder case. Is this possible or do I have to create and manage
> two
separate decorators?
Thanks.
David Just l
> Senior Software Engineer l Vision Solutions l +1 (507) 529-5939 l
> ymailto="mailto:david.just@visionsolutions.com"
> href="mailto:david.just@visionsolutions.com">david.just@visionsolutions.com
The
> contents of this e-mail (and any attachments) are privileged and confidential.
> Unauthorized use is strictly prohibited.
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org