Cart at Alfresco Share

I wonder if it is possible to add the basket button to the basket of the Alfresco header.

Share header

+3
source share
4 answers

Starting with version 4.2, trashcan is available to any user. This is a link in their profile. For example, to go to the basket directly through the URL, the link:

https://localhost:8080/share/page/user/[USER_NAME]/user-trashcan

Thus, to add a link to this, the Share header must have a trivial setting.

+4
source

But you need to know that at the moment trashcan is only an administrator. There is a JIRA, but it has not yet been fixed. Therefore, without any heavy configuration, you can bring up a button in the menu, but you need to be an administrator.

, : https://forums.alfresco.com/forum/developer-discussions/add-ons/personal-user-trash-can-07192013-1200

+2

, , . 4.2.x :

tomcat/webapps/share/WEB-INF/classes/alfresco/share-config.xml

:

<item type="link" id="trash" label="Trash">/user/{userid}/user-trashcan</item>

true:

<legacy-mode-enabled>true</legacy-mode-enabled>

:

  <!-- This indicates whether or not to use the configuration defined in this "header" element for rendering
          the header menu bar. If this is set to "false" or it not defined then the header bar will be rendered
          using the design implemented for 4.2 Enterprise. The header definition can be found in the associated
          WebScript controller.
     -->
     <legacy-mode-enabled>true</legacy-mode-enabled>

     <!-- This is the configuration that will be used to populate the header menu bar when "legacy-mode-enabled"
          has been set to true -->
     <app-items>
        <!-- defaults: icon="{id}.png" label="header.{id}.label" description="header.{id}.description" -->
        <item type="link" id="my-dashboard">{userdashboardpage}</item>
        <item type="js" id="sites">Alfresco.module.Sites</item>
        <item type="link" id="people">/people-finder</item>
        <item type="link" id="repository" condition="conditionRepositoryRootNode">/repository</item>
        <item type="link" id="trash" label="Trash">/user/{userid}/user-trashcan</item>

        <item type="container" id="more">
           <container-group id="my">
              <item type="link" id="my-tasks">/my-tasks#filter=workflows|active</item>
              <item type="link" id="my-workflows">/my-workflows#filter=workflows|active</item>
              <item type="link" id="my-content">/user/user-content</item>
              <item type="link" id="my-sites">/user/user-sites</item>
              <item type="link" id="my-profile">{userprofilepage}</item>
           </container-group>
           <container-group id="tools" permission="admin">
              <item type="link" id="application">/console/admin-console/application</item>
              <item type="link" id="groups">/console/admin-console/groups</item>
              <item type="link" id="replication-jobs" condition="!conditionEditionTeam">/console/admin-console/replication-jobs</item>
              <item type="link" id="repository">/console/admin-console/repository</item>
              <item type="link" id="trashcan">/console/admin-console/trashcan</item>
              <item type="link" id="users">/console/admin-console/users</item>
              <item type="link" id="more">/console/admin-console/</item>
           </container-group>
        </item>
     </app-items>

trashcan , , V4.2 . , .

+1

All Articles