-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 10.10, 11.1-SNAPSHOT
-
Fix Version/s: 10.10-HF10, 11.1, 2021.0
-
Component/s: Web UI
Add this code to your -bundle.html file
<nuxeo-slot-content name="CustomItem" slot="DOCUMENT_VIEWS_ITEMS" order="30"> <template> <nuxeo-filter document="[[document]]" type="Workspace"> <template> <nuxeo-page-item label="Custom" name="custom"></nuxeo-page-item> </template> </nuxeo-filter> </template> </nuxeo-slot-content> <!-- Contribution of element 'nuxeo-results-view' for slot 'DOCUMENT_VIEWS_PAGES' --> <nuxeo-slot-content name="CustomPage" slot="DOCUMENT_VIEWS_PAGES"> <template> <nuxeo-results-view provider="advanced_document_content" schemas="dublincore" search-name="default" auto="true" name="custom" params='{"ecm_parentId": "[[document.uid]]"}' show-filters> </nuxeo-results-view> </template> </nuxeo-slot-content>
It will add a tab which display the current document children for Workspaces.
- Create a Workspace and a workspace in it.
- Display the Custom tab for the first Workspace and observe the content
- Navigate to the second Workspace and display the Custom tab
- Observe that the tab still displays the content of the first Workspace
Expected behavior: the Custom tab should be refreshed and display the content of the current document.
- Is referenced in