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

The tab behind the "Go to files" link doesn't work

    XMLWordPrintable

    Details

      Description

      In file nuxeo-social-workspace/nuxeo-social-workspace-web/src/main/resources/OSGI-INF/social-workspace-layout-contrib.xml, the layout file_listing references the missing widget listing_social_document_consultation. This results in the "View files" tab of any Social Workspace not to work at all.

          <layout name="file_listing">
            <templates>
              <template mode="any">/layouts/layout_listing_ajax_template.xhtml
              </template>
            </templates>
            <columns>
              <column name="title_link">
                <properties mode="any">
                  <property name="useFirstWidgetLabelAsColumnHeader">true</property>
                  <property name="sortPropertyName">dc:title</property>
                  <property name="label">label.selection.column.title_link</property>
                </properties>
                <properties mode="edit_sort_infos">
                  <property name="showInSortInfoSelection">true</property>
                </properties>
                <widget>listing_social_document_consultation</widget> <!-- !!! -->
              </column>
            </columns>
          </layout>
      

      Suggested patch = make a listing_file_consultation with the same code as listing_article_consultation:

      
          <widget name="listing_file_consultation" type="listing_social_document_consultation">
            <labels>
              <label mode="any"></label>
            </labels>
            <translated>false</translated>
            <fields>
              <field>data</field>
            </fields>
            <widgetModes>
              <mode value="any">view</mode>
            </widgetModes>
            <properties mode="any">
              <property name="displayActions">true</property>
            </properties>
          </widget>
      

      While I'm at it, a small related improvement would be to edit the article_listing_view and file_listing_view content views to display the more recent documents first (<sort column="dc:created" ascending="true"/> => <sort column="dc:created" ascending="false"/>). See file social-workspace-contentview-contrib.xml of the same project.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 30 minutes
                30m
                Remaining:
                Remaining Estimate - 30 minutes
                30m
                Logged:
                Time Spent - Not Specified
                Not Specified