Permissions for resource types

From OpenCms Wiki
(Difference between revisions)
Jump to: navigation, search
 
m (Disable structured content moved to Permissions for resource types: The process described is not limited to structured content but works for all resource types.)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
I found this at: [http://www.opencms-forum.de/opencms-forum/viewthread;jsessionid=57500209E13B69A15ACA07F39F13A295?thread=2293 opencms-forum.de]
 
I found this at: [http://www.opencms-forum.de/opencms-forum/viewthread;jsessionid=57500209E13B69A15ACA07F39F13A295?thread=2293 opencms-forum.de]
  
==How to disable the structured content window from showing up in the explorer==
+
==How to disable the resource type item (explorertype) from showing up (or being chosen) in the explorer==
  
 +
You have to modify the file opencms-modules.xml, add your content type (in this case Author), then remove the permissions (changing GROUP.Users permissions to -r-v-w-c.
 +
<source lang="xml">
 
<explorertype name="Author" key="fileicon.Author" icon="xmlcontent.gif" reference="xmlcontent">
 
<explorertype name="Author" key="fileicon.Author" icon="xmlcontent.gif" reference="xmlcontent">
                    <newresource page="structurecontent" uri="newresource_xmlcontent.jsp?newresourcetype=Author" order="225" autosetnavigation="false" autosettitle="false"/>
+
  <newresource page="structurecontent" uri="newresource_xmlcontent.jsp?newresourcetype=Author" order="225" autosetnavigation="false" autosettitle="false"/>
                    <accesscontrol>
+
  <accesscontrol>
                    <accessentry principal="GROUP.Administrators" permissions="-r-v-w-c"/>
+
    <accessentry principal="GROUP.Administrators" permissions="-r-v-w-c"/>
                        <accessentry principal="GROUP.Projectmanagers" permissions="-r-v-w-c"/>
+
    <accessentry principal="GROUP.Projectmanagers" permissions="-r-v-w-c"/>
                        <accessentry principal="GROUP.Users" permissions="-r-v-w-c"/>                                           
+
    <accessentry principal="GROUP.Users" permissions="-r-v-w-c"/>                                           
                    </accesscontrol>
+
  </accesscontrol>
                    <editoptions>
+
  <editoptions>
                        <defaultproperties enabled="false" shownavigation="false"/>
+
    <defaultproperties enabled="false" shownavigation="false"/>
                        <contextmenu/>
+
    <contextmenu/>
                    </editoptions>
+
  </editoptions>
                </explorertype>
+
</explorertype>
 +
</source>
 +
or use the default behaviour
 +
<source lang="xml">
 +
<accesscontrol>
 +
  <accessentry principal="DEFAULT" permissions="-r-v-w-c"/>
 +
</accesscontrol>
 +
</source >

Latest revision as of 11:57, 23 June 2009

I found this at: opencms-forum.de

How to disable the resource type item (explorertype) from showing up (or being chosen) in the explorer

You have to modify the file opencms-modules.xml, add your content type (in this case Author), then remove the permissions (changing GROUP.Users permissions to -r-v-w-c.

<explorertype name="Author" key="fileicon.Author" icon="xmlcontent.gif" reference="xmlcontent">
  <newresource page="structurecontent" uri="newresource_xmlcontent.jsp?newresourcetype=Author" order="225" autosetnavigation="false" autosettitle="false"/>
  <accesscontrol>
    <accessentry principal="GROUP.Administrators" permissions="-r-v-w-c"/>
    <accessentry principal="GROUP.Projectmanagers" permissions="-r-v-w-c"/>
    <accessentry principal="GROUP.Users" permissions="-r-v-w-c"/>                                          
  </accesscontrol>
  <editoptions>
    <defaultproperties enabled="false" shownavigation="false"/>
    <contextmenu/>
  </editoptions>
</explorertype>

or use the default behaviour

<accesscontrol>
  <accessentry principal="DEFAULT" permissions="-r-v-w-c"/>
</accesscontrol>
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox