Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-27699

Fix auto-refresh for nuxeo-results-view

    XMLWordPrintable

    Details

    • 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
    • Release Notes Summary:
      Auto-refresh on nuxeo-results-view works.
    • Backlog priority:
      600
    • Sprint:
      nxGang Sprint 11.1.12, nxGang Sprint 11.1.13
    • Story Points:
      3

      Description

      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.

      1. Create a Workspace and a workspace in it.
      2. Display the Custom tab for the first Workspace and observe the content
      3. Navigate to the second Workspace and display the Custom tab
      4. 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.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours
                2h