Details
Description
When adding an XPage in the Experience Manager, the entries in the "Page layout" dropdown are not sorted. Expected behavior by a client is that the Page Layout names are sorted.
The XHR call of the form /_rp/<pageuuid>./item/<sitemapitem-uuid> returns the layouts in random order:
"states": { "channel": { "xPageLayouts": { "hst:xpages/guide-format": "Guide", "hst:xpages/complex-content-article": "Complex Article", "hst:xpages/standard-content-article": "Standard Article", "hst:xpages/brand-page": "Brand Page", } },
No sorting is applied in the back end, neither in org.hippoecm.hst.pagecomposer.jaxrs.services.ChannelServiceImpl#getXPageLayouts nor in org.hippoecm.hst.pagecomposer.jaxrs.services.component.HstStateProvider#getStates
states.put(HstState.CHANNEL_XPAGE_LAYOUTS, channelContext.getXPageLayouts().stream() .collect(toMap(XPageLayout::getKey, XPageLayout::getLabel)));
Attachments
Issue Links
- is backported by
-
CMS-15293 Backport 15088 to 15.2.1 - Apply natural sorting to XPage Layouts
- Closed