Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Customized children display macro

Dan April 7, 2020

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

2 answers

1 accepted

2 votes
Answer accepted
Ivan Lima
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 7, 2020

@Dan , 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 documentation. 

Cheers,

IL

Dan April 9, 2020

Hi @Ivan Lima ,

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 replies a detailed explanation. 

Thanks,

Dan

Majken Longlade
Community Champion
April 9, 2020

@DanI think @Ivan Lima 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.

Like Ivan Lima likes this
Dan April 10, 2020

@Majken Longlade @Ivan Lima ,

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 :) 

Like Ivan Lima likes this
0 votes
Majken Longlade
Community Champion
April 7, 2020

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.

Dan April 7, 2020

Hi @Majken Longlade ,

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

Majken Longlade
Community Champion
April 7, 2020

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?

Dan April 9, 2020

Hi @Majken Longlade ,

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

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events