NOVELL FORUMS

 
 
LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 14-Jul-2008, 11:35 PM
Junior Member
 
Join Date: Mar 2008
Posts: 9
dbligh is on a distinguished road
Default Locking Portlets to a Layout

Hi All, just thought I would share a little hack I've come across.

We have a client that requires users to have locked-in portlets within their Teaming experience. Meaning, portlets that they cannot delete.

Within the following file..

ROOT/html/themes/<THEME NAME HERE>/templates/portlet.vm

You'll come across

$theme.iconClose()

simply replace that with:

#if ( $portlet_id != "<PORTLET ID HERE>" )
$theme.iconClose()
#end

Where <PORTLET ID HERE> is the ID of the portal you wish to lock in. Do this within all the themes you plan on using.

This will prevent the average user from closing the portlet of the ID you insert here, of course you can add more ID's with the use of an OR in your condition.

Hope this helps.


Dbligh
Directory Concepts Pty Ltd.
Reply With Quote
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -6. The time now is 10:42 PM.


© 2007 Novell, Inc. All Rights Reserved.

SEO by vBSEO 3.1.0