Recherche
...
nuxeo-dm-5.4.1-tomcat/templates/custom/config/actions-config.xml
| Bloc de code |
|---|
<?xml version="1.0" encoding="UTF-8"?>
<component name="org.nuxeo.ecm.platform.actionsContrib">
<!-- ON SUPPRIME LE LIEN VERS LE TABLE DE BORD -->
<extension target="org.nuxeo.ecm.platform.actions.ActionService"
point="actions">
<action id="user_dashboard" link="user_dashboard"
label="command.user_dashboard" order="10">
<category>USER_SERVICES</category>
<filter id="user_dashboard_enabled">
<rule grant="true">
<condition>#{userServicesContext.dashboardEnabled}</condition>
</rule>
</filter>
<filter-id>not_anonymous</filter-id>
</action>
<!-- ON RESERVE LA RECHERCHE D'UTILISATEURS AUX ADMINS -->
<action id="user_manager" link="#{userManagerActions.viewUsers}"
label="command.manageMembers" order="20">
<category>USER_SERVICES</category>
<filter id="user_manager">
<rule grant="true">
<condition>#{userServicesContext.userManagerEnabled}</condition>
</rule>
</filter>
<filter-id>only_for_manager</filter-id>
</action>
<!-- ON SUPPRIME LE LIEN RECHERCHE AVANCE -->
<action id="advanced_search" link="search_form"
label="command.advancedSearch" order="10">
<category>SEARCH_ACTIONS</category>
<filter-id>not_anonymous</filter-id>
</action>
<!-- ON SUPPRIME LES ACTIONS DE CREATION DE DOCUMENT POUR ANONYME -->
<action id="newDocument"
link="javascript:Richfaces.showModalPanel('selectDocTypePanel');"
label="action.new.document" icon="/icons/action_add.gif">
<category>SUBVIEW_UPPER_LIST_HREF</category>
<filter-id>create</filter-id>
<filter-id>not_anonymous</filter-id>
</action>
<action id="newFile"
link="javascript:Richfaces.showModalPanel('importFile');"
label="action.new.file" icon="/icons/action_add_file.gif">
<category>SUBVIEW_UPPER_LIST_HREF</category>
<filter-id>importFile</filter-id>
<filter-id>not_anonymous</filter-id>
</action>
<!-- ON SUPPRIME LES LIENS VERS L'ESPACE PERSONNEL ET LE REPOSITORY -->
<action id="SHOW_REPOSITORY"
link="#{userWorkspaceManagerActions.navigateToOverallWorkspace}"
enabled="true" label="command.user.return.to.repository"
icon="/icons/go_to_repository.gif" order="10">
<category>USER_SERVICES</category>
<filter-id>isInsidePersonalWorkspace</filter-id>
<filter-id>not_anonymous</filter-id>
</action>
<action id="SHOW_PERSONAL_WORKSPACE"
link="#{userWorkspaceManagerActions.navigateToCurrentUserPersonalWorkspace}"
enabled="true" label="command.user.personal.workspace"
icon="/icons/show_personal_workspace.gif" order="11">
<category>USER_SERVICES</category>
<filter-id>not_anonymous</filter-id>
<filter-id>canAccessPersonalWorkspace</filter-id>
</action>
</extension>
</component>
|
...
nuxeo-dm-5.4.1-tomcat/templates/custom/config/treemanager-contribution-config.xml
| Bloc de code |
|---|
<?xml version="1.0"?> <component name="org.nuxeo.ecm.virtualtree.config"> <require>org.nuxeo.ecm.virtualnavigation.directory.DirectoryTreeService.contrib</require> <extension target="org.nuxeo.ecm.webapp.directory.DirectoryTreeService" point="trees"> <directoryTree name="bySubjectsNavigation" enabled="false" /> <directoryTree name="byCoverageNavigation" enabled="false" /> </extension> </component> |
Pour supprimer ou conditionner l'affichage d'un onglet, par exemple, l'onglet Historique :
| Bloc de code | ||||
|---|---|---|---|---|
| ||||
<action id="TAB_CONTENT_HISTORY" link="/incl/tabs/document_history.xhtml" enabled="true" label="action.view.history" icon="/icons/file.gif" order="100"> <category>VIEW_ACTION_LIST</category> <filter id="view_content_history"> <rule grant="false"> <type>WorkspaceRoot</type> <type>SectionRoot</type> <type>Server</type> </rule> </filter> <filter id="TAB_CONTENT_HISTORY_has_subtabs"> <rule grant="false"> <condition> #{webActions.getActionsList('TAB_CONTENT_HISTORY_sub_tab').isEmpty()} </condition> </rule> </filter> </action> |
| Bloc de code | ||||
|---|---|---|---|---|
| ||||
<action id="TAB_CONTENT_HISTORY" link="/incl/tabs/document_history.xhtml"
enabled="true" label="action.view.history" icon="/icons/file.gif"
order="100">
<category>VIEW_ACTION_LIST</category>
<filter-id>only_for_manager</filter-id>
</action>
|
...
view: obtenir des infos sur un document
perms: les droits sur un documentdocumentf