[opencms-dev] Customizing menus content in workspace

Alexander Kandzior alex at opencms.org
Tue Apr 12 09:38:27 CEST 2005


> Using the <contextmenu> tag it seems like I can control the 
> menu content. But this is not controlled by the current user 
> is it? I would like to only remove some menu entries if you 
> are a specific user. It would be bad, if for instance my 
> Admin user was missing them too.
> 
> Is this possible?

No, currently the context menus are the same for all users. What you _can_
do is restrict access to certain resource types on a user base. This means
the user won't be able to see any context menu at all. E.g. that way JSPs
are "non-editable" for users other then "Admins". Check out the
configuration of the resource type JSP in the workplace.xml on how to do
that.

Another option would be to remove the entries for all users, but create some
special tool (e.g. a JSP) accessable only for Admins that reproduces the
removed functions from the context menu(s).

Best Regards,
Alex.

Alexander Kandzior
Alkacon Software - The OpenCms Experts
http://www.alkacon.com




More information about the opencms-dev mailing list