Feature #31215

Macro child_pages should support reverse order

Added by Miodrag Milic over 2 years ago. Updated about 1 month ago.

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

0%

Category:Text formatting
Target version:-
Resolution:

Description

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

Example:

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

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

History

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

+1

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 about 1 year ago

  • Category set to Text formatting

#3 Updated by F. P. about 1 month 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