Adding a Tab - disable this feature

0
No votes yet

Hello, all. We are thinking about the possibility of not letting our users add their own tabs. We ARE giving them one tab via their layout to "play" with.
How do we disable the "Add a tab" feature in the Manage Content/Layout screen (for users but not admins and layout owners)?
PS is this one of those permission things? ("Manage Permissions and Grants")? If so someone will hopefully have the time to walk me through it, as that is one complicated channel!!!

Thanks in advance.

- Carol

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Answer: remove ability to add a tab

I found the answer in the UDC center. :)

remove ability for user to add their own tabs.

From 1-ISPB7

What file needs to be modified in order to remove the 'Add New Tab' button from Manage Content/Layout screen?
The file you need to change is contained in the uPortal.jar file.  The uPortal.jar file can be found in:

$CP_ROOT/webapps/luminis/WEB-INF/lib/

-Copy the uPortal.jar to a temp directory.
-unjar it
-cd to org/jasig/portal/channels/CUserPreferences/tab-column
-edit default.xsl and find the xsl:choose section that has the addtab.gif and delete the entire section
-Go back to the temp directory and remove that original uPortal.jar you copied there.
-Run "jar cvf uPortal.jar *" to put the jar back together with your newly edited file
-Make sure you have a backup of the original uPortal.jar and then copy the newly created uPortal.jar file to the lib directory and restart the webserver.

Another question on "Add a tab" supression

Well, removing the ability for a user to add a tab works wonderfully with the change to default.xsl in uPortal.jar , but it works TOO much.... now as a layout owner or admin I can't even add a tab.
Does anyone know how to disable this feature, but only for particular roles? (or keep it enabled for particular users, like layout owners)?

Add a tab suppression

I think we did this instead of working through the JAR by commenting parts of the XSL out in $CP_ROOT/webapps/luminis/WEB-INF/uPortal/org/jasig/portal/channels/DLMUserPreferences/tab-column/default.xsl. Its been a long time since I looked at this so I wouldn't swear to it though.

RE: add a tab suppression

Thanks, I thought it would be in default.xsl, (that is where I know how to suppress for everyone )however, I wasn't sure what the code would be to suppress for some and not for others. I'll take a further look - it may be that I'm a beginner at xsl.