sort page trees by date?

Page trees in Confluence seem to be sorted alphabetically by default; it's also possible to create a custom order.

Is there anyway to specify that page lists should be sorted by creation date or by modification date. Or better yet, provide tabs to allow the user to change the sort order?

2 answers

1 accepted

Hi Bob,

Yes you could sort Page tree macro. You could arrange the position of the page tree macro by alphabetically, time of creation, time of modification, or postion. For more information please refer to the following documentation.
* https://confluence.atlassian.com/display/DOC/Page+Tree+Macro

Hope this information helps. Cheers!

We use the documentation theme so I over rode it in the theme configuration with the WIKI markup

Pagetree supports several options:

Specify the order to display the pages in the tree. This sort order is for display purposes only. It does not permanently re-arrange the page order. The value may be one of the following:

  • bitwise — sort alphabetically, for example: title1, title10, title2.
  • creation — sort by date of creation.
  • modified — sort by order of date last modified.
  • natural — sort in 'natural' alphabetical order, for example: title1, title2, title10.
  • position — sort by the default Confluence sorting rules. If your pages have been ordered manually, this sort will respect the defined order. Otherwise the pages will be displayed in the 'natural' alphabetical order, such as: title1, title2, title10.

https://confluence.atlassian.com/display/CONF40/Page+Tree+Macro

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

912 views 23 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you