Feature #31215

Macro child_pages should support reverse order

Added by Miodrag Milic over 3 years ago. Updated about 1 year ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:


Category:Text formatting
Target version:-


This is more appropriate for some contexts, for example monthly reports which you want sorted chronologically in reversed order


`{{child_pages(reverse, depth=2) }}`

reverse.patch Magnifier (1.51 KB) F. P., 2021-06-29 11:36


#1 Updated by F. P. over 2 years ago


This is very helpful when storing documentation/protocols in a wiki. Atm one has to scroll down a lot when there are lots of entries. We tried Documents, but there is no changelog.

#2 Updated by Go MAEDA over 2 years ago

  • Category set to Text formatting

#3 Updated by F. P. about 1 year ago

First: I'm no ruby developer.

I tried to extend the child_pages macro with the suggested reverse argument.

I would be glad if someone could:

  • check if the code is sane
  • test this in a development setup

Patch is attached. If I can do something else please point me in the right direction.

Also available in: Atom PDF