Explorer Views
eXo introduces the concept of ECM views which allows to provide for a membership in a group a set of dedicated sorted icons and a rendering template to display the children of the current selected folder.Overview
The ECM admin can create any new views for a given profile from the ECMAdmin portlet. It is also possible from that control panel to create new templates for displaying the current node children as well as templates to be used by the Browse Content portlet. eXo ECM provides three view templates by default:- Thumbnails view: displays children folders and documents as a site of icons
- Mac view: displays the folder hierarchy in three columns
- List view: diplays the children in a list, that view contains the more information but may be too complex for simple users
- Give a name to the view
- Select a membership in a group. That select component is a reusable one that is used in many places. It allows you to browse the group hierarchy and select a membership from a popup list.
- Add several tabs (provide a name and a set of icons for each)
- Select a view template
Service Configuration
Manage view service allow administrator can customize many views can affect with user when exploring workspaces. Permissions, template and actions tabs are the view foundations.<component>
<key>org.exoplatform.services.cms.views.ManageViewService</key>
<type>org.exoplatform.services.cms.views.impl.ManageViewServiceImpl</type>
.......
</component><component-plugins>
<component-plugin>
<name>manage.view.plugin</name>
<set-method>setManageViewPlugin</set-method>
<type>org.exoplatform.services.cms.views.impl.ManageViewPlugin</type>
<description>this plugin manage user view</description>
.........
</component-plugin>
</component-plugins><init-params>
<object-param>
....
</object-param>
......
</init-params><object-param>
<name>Admin-View</name>
<description>View configuration of Admin</description>
<object type="org.exoplatform.services.cms.views.ViewConfig">
<field name="name"><string>admin-view</string></field>
<field name="permissions"><string>member:/admin</string></field>
<field name="template"><string>/jcr:system/exo:ecm/views/templates/ecm-explorer/ListView</string></field>
<field name="tabList">
<collection type="java.util.ArrayList">
<value>
<object type="org.exoplatform.services.cms.views.ViewConfig$Tab">
<field name="tabName"><string>Admin</string></field>
<field name="buttons">
<string>
manageVersions; manageCategories; manageRelations; manageActions; exportNode; importNode
</string>
</field>
</object>
</value>
<value>
<object type="org.exoplatform.services.cms.views.ViewConfig$Tab">
<field name="tabName"><string>Info</string></field>
<field name="buttons">
<string>
viewReferences; viewNodeType; viewPermissions; viewProperties; viewRelations
</string>
</field>
</object>
</value>
<value>
<object type="org.exoplatform.services.cms.views.ViewConfig$Tab">
<field name="tabName"><string>Actions</string></field>
<field name="buttons">
<string>
addFolder; addDocument; upload; createTicket; paste; search
</string>
</field>
</object>
</value>
</collection>
</field>
</object>
</object-param><field name="tabList"> <collection type="java.util.ArrayList"> <value> <object type="org.exoplatform.services.cms.views.ViewConfig$Tab"> <field name="tabName"><string>Admin</string></field> <field name="buttons"> <string> manageVersions; manageCategories; manageRelations; manageActions; exportNode; importNode </string> </field> </object> </value> ....... </field> </collection>
<object-param>
<name>List Template</name>
<description>Template for display documents in list style</description>
<object type="org.exoplatform.services.cms.views.TemplateConfig">
<field name="type"><string>ecmExplorerTemplate</string></field>
<field name="name"><string>ListView</string></field>
<field name="warPath"><string>/ecm-explorer/ListView.gtmpl</string></field>
</object>
</object-param>
..........<init-params>
<value-param>
<name>buttons</name>
<value>
addFolder; addDocument; upload; createTicket; paste; search; viewReferences; viewNodeType;
viewPermissions; viewProperties; manageVersions; manageCategories; manageRelations;
manageActions; exportNode; importNode; viewRelations
</value>
</value-param>
</init-params>
on 28/05/2008 at 14:39