Uploaded image for project: 'Nuxeo Studio'
  1. Nuxeo Studio
  2. NXS-5610

Scaffolding a Folderish leads to no data at runtime (missing results)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 3.21.1
    • Fix Version/s: None

      Description

      1. Create a Folderish document (no need to add fields etc., just a Folderish)
      2. In Designer, click the "Configure missing layouts"
      3. Hot reload
      4. Create such document, add a child or more
      5. Back to the view mode => no children displayted

      Probable cause: When looking at what was scaffolded at step #2, you can see that the hilt contains only a nuxeo-page-provider, no result layouts, no data-table etc.:

      <dom-module id="nuxeo-testfolderish-view-layout">
        <template>
          <style include="nuxeo-styles">
            . . .
          </style>
          <nuxeo-page-provider id="nxProvider" provider="advanced_document_content" page-size="40" aggregations="" enrichers="thumbnail, permissions" params="[[params]]" schemas="dublincore,common,uid,file" headers='{ "X-NXfetch.document": "properties", "X-NXtranslate.directoryEntry": "label" }' fetch-aggregates></nuxeo-page-provider>
      
        </template>
      . . .
      

      Workaround: replace the <nuxeo-page-provider...> line with <nuxeo-document-content document="[[document]]"></nuxeo-document-content>

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: