• We collect Confluence feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      NOTE: This suggestion is for Confluence Server. Using Confluence Cloud? See the corresponding suggestion.

      The

      {children}

      macro is nice, showing all children. But as we create larger document structures, we now really need a way to manage the order of child pages.

      We do it now the 'old' way: to include a number as part of the page name. So page name is then something like "1. This page", and "2. That page". However that causes other problems to appear when using more then 9 child pages, as the in current version child pages are ordered using an ASCII sorting algorithme. Page "11. Another page" is listed besides "1. This page".

      May be a solution is to have an additional meta-data field on each page in which we can set a integer value, and that is used for sorting. If not filled in (e.g. hided) then fall back on current sorting.

            [CONFSERVER-2120] Need a way to determine the order of child pages

            Sara Kamen added a comment -

            I would like a parameter to change the bullet to number the list of children, so that the children appear like this:

            1. Child A
            2. Child B
            3. Child C

            Sara Kamen added a comment - I would like a parameter to change the bullet to number the list of children, so that the children appear like this: 1. Child A 2. Child B 3. Child C

            For those who have posted before. I think some of this functionality has been added, since there is a sort parameter that can sort by "creation", and "modified" dates. Also, it automatically sorts by the order of the pages in the space tree.

            On the other hand, I still need more sorting functionality. I am using the children macro in combination with the live-template scaffolding macro, so it will appear in many places. I can't go through and manually change every space's page order, and even if I did, making a change to this order would be a large hassle. I would like to have a more granular sorting option.

            For instance, maybe I could do something like this:

            {children:sort="First page in list", "Second page in list"}

            Derek Kniffin added a comment - For those who have posted before. I think some of this functionality has been added, since there is a sort parameter that can sort by "creation", and "modified" dates. Also, it automatically sorts by the order of the pages in the space tree. On the other hand, I still need more sorting functionality. I am using the children macro in combination with the live-template scaffolding macro, so it will appear in many places. I can't go through and manually change every space's page order, and even if I did, making a change to this order would be a large hassle. I would like to have a more granular sorting option. For instance, maybe I could do something like this: {children:sort="First page in list", "Second page in list"}

            Dan Mabee added a comment -

            Any word on this one? I need the children order on on the parent page to match a manual sort order of pages in the TOC.

            Dan Mabee added a comment - Any word on this one? I need the children order on on the parent page to match a manual sort order of pages in the TOC.

            Need to make sure that the children macro respects Confluence's page order (new in 2.8).

            Jonathan Nolen (Inactive) added a comment - Need to make sure that the children macro respects Confluence's page order (new in 2.8).

            I agree that adding an attribute would work, sort of. Ideally, users should not have to add and manage an artificial attribute just to get the order they want. I can't be as solution-oriented as David, but I imagine Confluence would have to generate and manage its own metadata for this option. Is there any fundamental reason that would not work?

            Peter Miller added a comment - I agree that adding an attribute would work, sort of. Ideally, users should not have to add and manage an artificial attribute just to get the order they want. I can't be as solution-oriented as David, but I imagine Confluence would have to generate and manage its own metadata for this option. Is there any fundamental reason that would not work?

            I would like to see a feature like that too.
            An option to specify the sorting by "last edit" date would be enough for me. I'm maintaining a FAQ (every question is a child of a category page) and with a growing number of questions, it is harder for the users to see which questions are new.
            (And don't forget the ascending/descending option

            Deleted Account (Inactive) added a comment - I would like to see a feature like that too. An option to specify the sorting by "last edit" date would be enough for me. I'm maintaining a FAQ (every question is a child of a category page) and with a growing number of questions, it is harder for the users to see which questions are new. (And don't forget the ascending/descending option

            I would second this. It would also be good for items which are sorted by date. While you can use the 'yyyy-mm-dd' format (eg. '2005-01-15' to have them sorted, it would be much nicer if we could call it 'January 15 2005', but still have it sorted correctly.

            And, intuiting the API docs, Page has a nice looking method called 'getNameForComparison()' which looks like a good suspect for adding a fairly simple bit of code to check for a specially-named property, which wouldn't be a lot of code either. Then, all you need is a

            {sort-with:XXXXX}

            macro which stores XXXXX into the pages properties, and you're done!

            Or, it could turn out to be horribly complicated. I have no idea what the performance hit is for accessing page properties, and I'm guessing that page name comparison is a pretty common activity. Perhaps you would have to add it to the database structure, which could get messy...

            David Peterson added a comment - I would second this. It would also be good for items which are sorted by date. While you can use the 'yyyy-mm-dd' format (eg. '2005-01-15' to have them sorted, it would be much nicer if we could call it 'January 15 2005', but still have it sorted correctly. And, intuiting the API docs, Page has a nice looking method called 'getNameForComparison()' which looks like a good suspect for adding a fairly simple bit of code to check for a specially-named property, which wouldn't be a lot of code either. Then, all you need is a {sort-with:XXXXX} macro which stores XXXXX into the pages properties, and you're done! Or, it could turn out to be horribly complicated. I have no idea what the performance hit is for accessing page properties, and I'm guessing that page name comparison is a pretty common activity. Perhaps you would have to add it to the database structure, which could get messy...

              Unassigned Unassigned
              17a11c1437f4 Selders
              Votes:
              32 Vote for this issue
              Watchers:
              19 Start watching this issue

                Created:
                Updated:
                Resolved: