This in part comes from my desire (like others) to generate tree-style
navigation for a website, and (personally) to improve generated
sitemaps. This might introduces more complication than the end-result
warrants, but I’ll toss it out there anyway.
What I’m thinking about (and unskillfully hacking at) is the ability
to manually sort the admin view via DnD and to have <r:children> use
this ordering. After some poking around, it looks like it would
require these changes:
- A new ‘position’ column in the pages table.
- upon creation, a page would be given a position of
parent.children.count - any virtual pages. This would put new pages
at the botom of the list (instead of placing them by title).
- upon page deletion, any siblings with greater position would need
that value decremented
- a reposition method
- tweaks to the page index view to allow the re-ordering, and some
kinda no-JS fallback up/down arrows.
There is quite likely more code it would touch… so I ask: does
anyone want this and would it be worth it?