How to order the menu of a website (5.6)
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2013 11:03 AM
How is the webview menu ordered in a webpage ? In the Document Management interface items are ordered alphabetically, but not in the web menu where it seams to be aleatory (?). Is it possible to set a specific order ?
Thanks for your answers,
Patrice
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2013 10:16 AM
The code in org.nuxeo.webengine.sites.fragments.AllWebpageFragment
returns the list, in "default" order (which is mostly unpredictable). I agree that it should be sorted differently.
You can provide a new fragment with new code using:
<extension target="org.nuxeo.theme.services.ThemeService" point="fragments">
<fragment name="all webpages fragment">
<class>your.class.subclassing.AllWebpageFragment</class>
<model-type>webpage</model-type>
<dynamic>true</dynamic>
</fragment>
</extension>
