[opencms-dev] menu groups when create new resource in 10.5 version

Georg Westenberger g.westenberger at alkacon.com
Fri Feb 17 12:49:16 CET 2017


Hello,

If your content types are XML content types to be used as container 
elements, the easiest way to do what you want is to create a new element 
view
(see 
http://documentation.opencms.org/opencms-documentation/creating-a-website/ade-configuration/resource-type-configuration/configuration-of-element-views/ 
)
and then assign your content types to that element view in your sitemap 
or module .config file. You can select a parent view in the "Parent 
View" option of the element
view file, to prevent these types from using a separate "edit point 
layer" in the page editor.


If your content types are not container elements, there is another way 
using the explorertype configuration:

  Create a new explorer type representing the new option in your module 
and set the "isview" attribute to "true":

<explorertype name="myspecialview" key="fileicon.myspecialview" 
isview="true" >
                 <newresource uri="" page="none" order="0" />
</explorertype>


Then reference that explorer type in the explorer types which you want 
to assign to that view:

<explorertype name="mytype" elementview="myspecialview" ... >
...
</explorertype>

Kind Regards,

Georg
--

Georg Westenberger

Alkacon Software GmbH & Co. KG - The OpenCms Experts
http://www.alkacon.com - http://www.opencms.org




More information about the opencms-dev mailing list