portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "curro" <franciscojavier.ros...@avarmar.com>
Subject RE: Lock a page portlet actions into a page
Date Thu, 10 Feb 2011 08:41:02 GMT
Thank you David!!!

Soon open a jira with this topic.

If anyone could be interested, I mention my solution:
At the moment I solved by putting a fragment preference into psml:

<fragment id="personal-10" type="portlet" name="xxx-pa::xxx"
decorator="xxx">
	<preference name="lock" readOnly="true">
		<value>true</value>
	</preference>
      <property name="column" value="1"></property>
	<property name="row" value="0"></property>
</fragment>

and consulting in the layout.vm the existence of preference, and if it is
locked, do not see the portlet management controls in the page. 

...
#if($editing)
				
	#set($allowAdmPortlet=true)
						
	#set($_preferencias = $f.getPreferences())
						
	#foreach ($_preferencia in $_preferencias)
		#if($_preferencia.getName() == "lock")
			#set($allowAdmPortlet=false)
		#end
	#end
				
	#if($allowAdmPortlet)
		<div class="portlet-edit-bar">
...

Regards

-----Original Message-----
From: David Taylor [mailto:davidseantaylor@gmail.com] 
Sent: jueves, 10 de febrero de 2011 3:26
To: Jetspeed Developers List
Subject: Re: Lock a page portlet actions into a page

THere is a check in layout.vm for "#if($f.isLocked() == false)" and it
nicely skips over all the move and delete decorations, however I don't
see a method of setting the locked flag on a PSML fragment. Would be
nice if there was a property on fragment named "locked", but I don't
see that in the XML mappings. From what I can tell, the locked flag is
only used for nested layouts. You could create a JIRA issue asking for
an enhancement...

On Wed, Feb 9, 2011 at 10:02 AM, Francisco Javier Rosado
<curro@selered.com> wrote:
> Hello All,
>
>
>
> I am using Jetspeed 2.2.0 on portal mode, not desktop.
>
>
>
> Is there any way to lock a portlet within a user's private page? I need to
> have a portlet within the page, and that the user can not reposition or
> remove. In short, when the user releases the page controls appear not to
> move or delete the portlet.
>
>
>
> I found a solution, but would not have to modify the file layout.vm.
>
>
>
> Thank you and Regards
>
> Curro Rosado
>
>



-- 
David

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


---------------------------------------------------------------------
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