Customized children display macro
Asked by Dan:

Hi guys,

I am using Confluence-server v7.0 and I would like to have on a page a customized children display with the childrens pages name in the order that I would like to have. Children display macro has just three options to sort(creation, title and modified), but I would like to order them manually.

Is any way to use children display macro or any plugin that can do this?

Thanks,

Dan


Answers:
author: Ivan Lima
body: [@Dan](/t5/user/viewprofilepage/user-id/3774843) , you can set up your sidebar with your own page tree using wiki markup. You can try this:

1. Space tools \> Configure sidebar \> Hide navigation display option
2. Under Space tools \> Look and Feel \> Sidebar, header and footer, you can add the page tree wiki markup to the sidebar (*you can play with the parameters as you wish*)

    {pagetree:root=Page Name|sort=natural|excerpt=true|reverse=false|startDepth=3|expandCollapseAll=true|searchBox=true}

You can check the syntax on the [Page Tree Macro](https://confluence.atlassian.com/doc/page-tree-macro-163414255.html) documentation.

Cheers,

IL

comments: author: Dan
body: Hi [@Ivan Lima](/t5/user/viewprofilepage/user-id/1351762) ,

I need both: configure side bar, but also content classification inside of the desired root page. With your solution, I can have just one of them, not both simultaneous.

Any other idea how I can accomplish it? I've posted in one of [@Majken Longlade](https://community.atlassian.com/t5/user/viewprofilepage/user-id/2848464) replies a detailed explanation.

Thanks,

Dan


author: Majken Longlade
body: [@Dan](/t5/user/viewprofilepage/user-id/3774843)I think [@Ivan Lima](/t5/user/viewprofilepage/user-id/1351762) has the right idea. Order the pages in the page tree in the way you want them to show up in the page. Then for the sidebar, use the page tree macro where the pages are sorted alphabetically.


author: Dan
body: [@Majken Longlade](/t5/user/viewprofilepage/user-id/2848464) [@Ivan Lima](/t5/user/viewprofilepage/user-id/1351762) ,

You were right, that's the way of doing it, exactly like Ivan was describing in the previous comment. Thanks a lot for your help :)


author: Majken Longlade
body: Are the pages sorted in the page tree the way you'd like and the children display macro is reordering them?

If so, try the page tree macro instead.

comments: author: Dan
body: Hi [@Majken Longlade](/t5/user/viewprofilepage/user-id/2848464) ,

Looks good, but I would prefer keeping the pages on the left side in an alphabetical order.

The idea is to have an alphabetical order on the left side and on the elected root page to have titles sorted as I would like - like a book, for example.

Any idea if is any way to accomplish this?

Thanks,

Dan


author: Majken Longlade
body: hmm, well you could just manually enter the links. I can see how a macro would be better because when you're doing it by hand you might miss something.

It's an interesting problem. As you've seen it's easy enough to create a page that lists the pages in alphabetical order. If it were me, I would probably create a top level page called something like pages A - Z and use the space index macro. Path of least resistance and all that.

Oh! How about using a hidden page properties macro where the only property is the page order, then use the page properties report to list the pages ordered by number?


author: Dan
body: Hi [@Majken Longlade](/t5/user/viewprofilepage/user-id/2848464) ,

Thanks for your reply. Manually is not an option as I will forget for sure one of the chapters.

How it looks my space:

![myspace.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/89941i170206530EDF0C18/image-size/large?v=v2&px=999 "myspace.PNG")

I would need just book1 to be on the side bar in alphabetical order. In the content space of book1 page, I would need a different order: B, A, C, for example.

For the first solution, the space index macro takes all space pages, not just the ones from book1. Maybe I am doing something wrong...

For the second solution, I am getting "No content found" on the book1 page if I am trying something as you said. But again, maybe I am doing something wrong...

Do you have some time to explain me step by step how I can do it? Maybe it works as you said and I was executing it wrongly...

Thanks a lot,

Dan


Tags: confluence-server

macro

server