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

Show column 'Publication date' instead of 'Last modification' on home dashboard widget

    XMLWordPrintable

    Details

      Description

      It makes more sense to show the publication date.

      i18n

      add key label.content.header.issued

      New widget

      
      
      <extension point="widgets" target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager">
          <widget name="listing_issued_date" type="datetime">
            <labels>
              <label mode="any">label.content.header.issued</label>
            </labels>
            <translated>true</translated>
            <fields>
              <field>data.dc.issued</field>
            </fields>
            <properties widgetMode="any">
              <property name="pattern">#{nxu:basicDateFormatter()}</property>
            </properties>
            <properties mode="csv">
              <property name="csv_formatMask">#{nxu:basicDateFormatter()}</property>
              <property name="csv_forceType">date</property>
            </properties>
          </widget>
      </extension>
      

      New layout

        <extension target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager"
          point="layouts">
      
          <layout name="dashboard_published_documents_listing">
            <templates>
              <template mode="any">
                /layouts/layout_listing_ajax_template.xhtml
              </template>
            </templates>
            <properties mode="any">
              <property name="showListingHeader">true</property>
              <property name="showRowEvenOddClass">true</property>
            </properties>
            <columns>
              <column>
                <properties mode="any">
                  <property name="useFirstWidgetLabelAsColumnHeader">false</property>
                  <property name="columnStyleClass">iconColumn</property>
                </properties>
                <widget>listing_icon_type</widget>
              </column>
              <column>
                <properties mode="any">
                  <property name="useFirstWidgetLabelAsColumnHeader">true</property>
                </properties>
                <widget>listing_title_link</widget>
              </column>
              <column>
                <properties mode="any">
                  <property name="columnStyleClass">iconColumn</property>
                </properties>
                <widget>listing_lock_icon</widget>
              </column>
              <column>
                <properties mode="any">
                  <property name="useFirstWidgetLabelAsColumnHeader">true</property>
                </properties>
                <widget>listing_issued_date</widget>
              </column>
              <column>
                <properties mode="any">
                  <property name="useFirstWidgetLabelAsColumnHeader">true</property>
                </properties>
                <widget>listing_modification_date</widget>
              </column>
              <column>
                <properties mode="any">
                  <property name="useFirstWidgetLabelAsColumnHeader">true</property>
                </properties>
                <widget>listing_last_contributor</widget>
              </column>
              <column>
                <properties mode="any">
                  <property name="columnStyleClass">iconColumn</property>
                </properties>
                <widget>listing_livedit_link</widget>
              </column>
            </columns>
          </layout>
      
        </extension>
      

      Content view

        <extension target="org.nuxeo.ecm.platform.ui.web.ContentViewService"
          point="contentViews">
      
          <contentView name="domain_published_documents">
            <resultLayouts>
              <layout name="dashboard_published_documents_listing" showCSVExport="false" showPDFExport="false" showSyndicationLinks="false"/>
            </resultLayouts>
          </contentView>
      
        </extension>
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: