Vote #79988
未完了Macro child_pages should support reverse order
0%
説明
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) }}
journals
+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.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------