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

nuxeo-dropdown-aggregation ignoring labels defined in Studio

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Designer, Page Providers

      Description

      Steps to reproduce:

      • Create a Page Provider which includes and Date range aggregate in a date field, e.g. dc:modified
        Label From To
        label.ui.aggregate.last24h now-24H now
        label.ui.aggregate.lastWeek now-7d now-24H
        label.ui.aggregate.lastMonth now-1M now-7d
        label.ui.aggregate.lastYear now-1y now-1M
        label.ui.aggregate.priorToLastYear   now-1y
      • Use this page provider in a view
                  <nuxeo-data-table-column name="[[i18n('documentContentView.datatable.header.modified')]]"
                                           field="dc:modified" sort-by="[[_displaySort(document, 'dc:modified')]]"
                                           filter-by="dublincore_modified_agg"
                                           flex="50">
                    <template is="header">
                      <nuxeo-dropdown-aggregation
                        placeholder="[[i18n('documentContentView.datatable.header.modified')]]"
                        data="[[aggregations.dublincore_modified_agg]]"
                        value="{{column.filterValue}}" multiple>
                      </nuxeo-dropdown-aggregation>
                    </template>
                    <template>
                      <nuxeo-date datetime="[[item.properties.dc:modified]]" on-tap="_navigate"></nuxeo-date>
                    </template>
                  </nuxeo-data-table-column>
        
      • Add the translations for the labels used in your messages.json file:
          "label.ui.aggregate.last24h": "Last 24h",
          "label.ui.aggregate.lastMonth": "Last month",
          "label.ui.aggregate.lastWeek": "Last week",
          "label.ui.aggregate.lastYear": "Last year",
          
          "from_now-24H_to_now": "Last 24h",
          "from_now-7d_to_now-24H": "Last week",
          "from_now-1M_to_now-7d": "Last month",
          "from_now-1y_to_now-1M": "Last year",
          "from__to_now-1y": "More than 1 year ago"  
        
      • Depploy your changes
      • Click on the filter of the date column

      The labels defined for each range are ignored. The system is showing an autogenerated label

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  PagerDuty

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.