-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Won't Fix
-
Affects Version/s: 5.6.0-HF13
-
Fix Version/s: None
-
Component/s: Social Collaboration (deprecated)
-
Tags:
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.