cancel
Showing results for 
Search instead for 
Did you mean: 

How to order the menu of a website (5.6)

apx25_
Champ on-the-rise
Champ on-the-rise

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

Florent_Guillau
World-Class Innovator
World-Class Innovator

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>