-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Duplicate
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Page Providers, Studio Designer
-
Tags:
-
Backlog priority:1,500
-
Browser:
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
- depends on
-
NXDOC-1731 Document how to add labels for aggregates in WebUI
- Resolved
- duplicates
-
NXS-5096 Page providers - Use the range label when no translation is defined for it
- Resolved
- is related to
-
NXS-5096 Page providers - Use the range label when no translation is defined for it
- Resolved