Explorertype

(Difference between revisions)
Jump to: navigation, search
(Assingn your resource types to the subsection)
(Define a subsection in "new"-dialogue for your resourcetypes)
Line 1: Line 1:
 
=Explorertypes=
 
=Explorertypes=
  
==Define a subsection in "new"-dialogue for your resourcetypes==
+
==Define a custom subsection in "new"-dialogue for your resourcetypes==
  
 
Insert the following definition in the explorertypes-section of your module in opencms-modules.xml:
 
Insert the following definition in the explorertypes-section of your module in opencms-modules.xml:

Revision as of 17:42, 20 March 2010

Explorertypes

Define a custom subsection in "new"-dialogue for your resourcetypes

Insert the following definition in the explorertypes-section of your module in opencms-modules.xml:

 <explorertype name "xmlmygroup" key="fileicon.xmlmygroup" icon="mygroupicon.gif" reference="xmlcontent">
   <newresource uri="newresource.jsp?page=xmlmygroup" order="5" autosetnavigation="false" autosettitle="false"/>
 </explorertype>

Assign your resource types to the subsection

Assign the resource types to be grouped in "xmlmygroup" to this section by setting the page attribute of your resource type:

 <explorertype name="mycontent" key="fileicon.mycontent" icon="mycontenttypeicon.gif" reference="xmlcontent">
   <newresource page="xmlmygroup" uri="newresource_xmlcontent.jsp?newresourcetype=mycontent order="50" autosetnavigation="false" autosettitle=false"/>
 </explorertype>

Don't forget to define your resource type "mycontent" in the resource type section of your module in opencms-modules.xml. Now upload the icons (i.e. "mycontenttypeicon.gif" and "mygroupicon.gif") to the /system/workplace/resources/filetypes/ folder and don't forget to assign this resource(s) to your module. Make the appropriate definitions for your resource types in the workplace.properties file in the /classes folder of your module and restart Tomcat afterwards.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox