Skip to content

Enable optional custom nav menu page ordering

We would like to have the possibility to have a custom page order in the sidebar menu.

Currently, ordering is forced alphabetically by page title. The weight parameter is not taken into account.

To not break the existing order (and cause confusion), I propose the following:

  • Pages with weight == 100 or unset weight are ordered by title (as before)
  • Pages whose weight value is set otherwise are ordered by weight value
  • Pages with weight < 100 are placed at the beginning
  • Pages with weight > 100 are placed at the end
  • Pages sorted by title are placed in between the weight ordered pages

This enables to incrementally introduce a page ordering (wherever this seems necessary), while maintaining the current ordering.

Signed-off-by: Sietze van Buuren Sietze.vanBuuren@de.bosch.com

Edited by Sietze van Buuren

Merge request reports