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:
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.
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 -->
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.