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

Implement 'Include Children' in custom user macro

Saida March 5, 2020

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
AUG Leaders

Atlassian Community Events