Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Implement 'Include Children' in custom user macro

Good day, 

I need to create a macro that will show on separate tabs Child pages of the page, that is configured for this tab. Example:  

macro_configuration.png

After selection, this macro should show all the child pages (clickable links, not the content) of selected parent page. I.e. i need to implement standard Include Children macro in a custom user macro. 

 macro_view.png

I found this question https://community.atlassian.com/t5/Confluence-questions/can-you-include-all-child-pages-automatically/qaq-p/86946 but showing all pages content is inappropriate in my case due to the large number of child pages, so current page loads very slow.

Now the macro is configured as follows:

## Macro Name: tab_panel
## Visibility:
## Macro Title: Tabs Panel
## Description: on testing
## Categories: Navigation
## Macro Body Processing: No macro body
## @param Title:title=Title|type=string|required=true
## @param Tab1:title=Tab1|type=confluence-content|required=true|desc=Select a page to use
## @param Tab2:title=Tab2|type=confluence-content|required=true|desc=Select a page to use

<div class="aui-tabs horizontal-tabs">

<ul class="tabs-menu">
<li class="menu-item active-tab">
<a href="#tabs-example-first"><strong>Tab1</strong></a>
</li>

<li class="menu-item">
<a href="#tabs-example-second"><strong>Tab2</strong></a>
</li>

</ul>

</div><!-- // .aui-tabs -->

 

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Confluence

Lessons and Learnings: Six Months of Working Remote [Discussion]

Hey there, folks! For most of us, the past six months- yes, you read that right- have been a journey. More people than ever before have pivoted to working remotely, and navigating being on-scre...

8,601 views 7 7
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you