When creating pages with for example numerical names ( 1, 2, 3, 4, 5),
the challenge arises when they are sorted from low to high. How can one manage the ordering of the pages?
When creating pages with for example numerical names ( 1, 2, 3, 4, 5),
the challenge arises when they are sorted from low to high. How can one manage the ordering of the pages?
Hi, it’s not clear if you’re asking the question from the point of view of a developer that writes its own database query to retrieve the pages or from the point of view of an user that uses some standard XWiki UI element such as the Navigation Panel, breadcrumb tree, page index, etc.
In general, wiki pages are sorted by their raw title alphabetically. This can be changed if you control the query that retrieves the wiki pages or if the UI element that displays them exposes some configuration for this.
Hope this helps,
Marius
Hi,how can one make this happen?Can you be more specific?
If you control the query then you also control the sort:
order by
clause. Search for order by
on https://extensions.xwiki.org/xwiki/bin/view/Extension/Query+Modulesort
parameter https://extensions.xwiki.org/xwiki/bin/view/Extension/Solr%20Search%20Query%20API#HStandardSearchParameters