5.3.2.3.3. Other components

Working with other toolbars is quite similar to UIActionbar, except configurations and resources.

Sidebar


<object-param>
    <name>Example</name>
    <object type="org.exoplatform.webui.ext.UIExtension">
        <field name="type"><string>org.exoplatform.ecm.dms.UISideBar</string></field>
        <field name="name"><string>Example</string></field>
        <field name="rank"><int>110</int></field>
        <field name="component"><string>com.acme.ExampleActionComponent</string></field>
    </object>
</object-param>

Resources are located at $PLATFORM_TOMCAT-HOME/webapps/ecmexplorer/WEB-INF/classes/locale/portlet/explorer/JCRExplorerPortlet_en.xml (for English which is also the default language):


...
   <UISideBar>
  ...
 <label>
   <example>Example action</example>
  ...
 </label>
  ...
   </UISideBar>
  ...

Admin control panel


<object-param>
  <name>Example</name>
  <object type="org.exoplatform.webui.ext.UIExtension">
    <field name="type">
      <string>org.exoplatform.ecm.dms.UIECMAdminControlPanel</string>
    </field>
    <field name="rank">
      <int>110</int>
    </field>
    <field name="name">
      <string>Example</string>
    </field>
    <field name="category">
      <string>Templates</string>
    </field>
    <field name="component">
      <string>org.exoplatform.ecm.webui.component.admin.manager.UITemplatesManagerComponent</string>
    </field>
  </object>
</object-param>

The "category" field specifies the category where your extension action is performed. There are 4 options:

Resources are located at $PLATFORM_TOMCAT-HOME/webapps/ecmadmin/WEB-INF/classes/locale/portlet/administration/ECMAdminPortlet_en.xml (for English which is also the default language):


...
<UIECMAdminControlPanel>
    ...
<label>
    <example>Example panel</example>
    ...
</label>
    ...
</UIECMAdminControlPanel>
    ...

Context menu


<object-param>
   <name>Example</name>
   <object type="org.exoplatform.webui.ext.UIExtension">
     <field name="type"><string>org.exoplatform.ecm.dms.UIWorkingArea</string></field>
     <field name="rank"><int>105</int></field>
     <field name="name"><string>Example</string></field>
     <field name="category"><string>ItemContextMenu_SingleSelection</string></field>
     <field name="component"><string>com.acme.ExampleActionComponent</string></field>
   </object>
</object-param>

The "category" field specifies the category where your extension action is performed. There are many options:

Resources are located at $TOMCAT-HOME/webapps/ecmexplorer/WEB-INF/classes/locale/portlet/explorer/JCRExplorerPortlet_en.xml (for English which is also the default language):


<UIWorkingArea>
  ...
    <label>
        <example>Example action</example>
  ...
    </label>
  ...
</UIWorkingArea>
Copyright ©. All rights reserved. eXo Platform SAS
blog comments powered byDisqus