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

Show another page contents on current page Edited

There are 2 pages

1.Current Account (Current Account page contains 2 tabs Tariff and Procedure.)

Current Account.PNG

2.Tariff.

Tariff1.PNG
If I clicked tariff tab on Current Account Page I need indicate Tariff page contents.

I used macro but I need help for modify this:

## Macro title: My Macro
## Macro has a body: Y or N
## Body processing: Selected body processing option
## Output: Selected output option
##
## Developed by: My Name
## Date created: dd/mm/yyyy
## Installed by: My Name

## This is an example macro
## @Param Name:title=Name|type=string|required=true|desc=Your name
## @Param Colour:title=Favourite Colour|type=enum|enumValues=red,green,blue|default=red|desc=Choose your favourite colour
<div class="aui-tabs horizontal-tabs">
<ul class="tabs-menu">
<li class="menu-item active-tab">
<a href="#tabs-example-first"><strong>Tariff</strong></a>
</li>
<li class="menu-item">
<a href="#tabs-example-second"><strong>Procedure</strong></a>
</li>
</ul>
<div class="tabs-pane active-pane" id="tabs-example-first">
<h2>This is Tariff Tab</h2>
<p>Current account tariff</p>
</div>
<div class="tabs-pane" id="tabs-example-second">
<h2>This is Procedure tab</h2>
<p>Current account procedure</p>
</div>
</div><!-- // .aui-tabs -->

1 answer

1 accepted

1 vote
Answer accepted
Dominic_Lagger Community Leader Nov 26, 2019

Hi @Jamil_Rahimov 

If I understand you correctly, you want to show content from "Tab A" in "Tab B"? 

There are 2 macros out of the box from confluence:

Can you use one of them to fullfill your need? 

If not, please try to explain your need in more detail, so I can help you out.

Regards, Dominic

@Dominic_Lagger 
No.
I want show another page contents on current page.
For ex:
Let suppose current page is A
If user clicked to TAB B, I need show page B contents on current page A.
If user clicked to TAB C, I need show page C contents on current page A.

Dominic_Lagger Community Leader Nov 26, 2019

Okay, so the "Tab thing" is your own user macro?

Then, the Include Page Macro should work for you. In your user macro with the tabs, you could just paste the "storage format" code from the "Include Page Macro". Something like this:

 

## Macro title: My Macro
## Macro has a body: Y or N
## Body processing: Selected body processing option
## Output: Selected output option
##
## Developed by: My Name
## Date created: dd/mm/yyyy
## Installed by: My Name

## This is an example macro
## @Param Name:title=Name|type=string|required=true|desc=Your name
## @Param Colour:title=Favourite Colour|type=enum|enumValues=red,green,blue|default=red|desc=Choose your favourite colour
<div class="aui-tabs horizontal-tabs">
<ul class="tabs-menu">
<li class="menu-item active-tab">
<a href="#tabs-example-first"><strong>Tariff</strong></a>
</li>
<li class="menu-item">
<a href="#tabs-example-second"><strong>Procedure</strong></a>
</li>
</ul>

<div class="tabs-pane active-pane" id="tabs-example-first">
<h2>This is Tariff Tab</h2>
<p>Current account tariff</p>
// ADD THE INCLUDE PAGE MACRO HERE
</div>
<div class="tabs-pane" id="tabs-example-second">
<h2>This is Procedure tab</h2>
<p>Current account procedure</p>
// ADD THE INCLUDE PAGE MACRO HERE
</div>
</div><!-- // .aui-tabs -->

The page macro in storage view format looks like this:

<ac:structured-macro ac:name="include" ac:schema-version="1" ac:macro-id="ee16c82d-0228-4acd-b62a-cd1045ee544e"><ac:parameter ac:name=""><ac:link><ri:page ri:content-title="PAGE TITLE" /></ac:link></ac:parameter></ac:structured-macro>

Perhaps this helps. Let me know, if this was your request. 

Like Jamil_Rahimov likes this

@Dominic_Lagger 
Thanks a lot!
It worked!

Like Dominic_Lagger likes this

Suggest an answer

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

How is your team having fun and bonding, remotely, utilizing Confluence?

Thanks everyone for answering last week’s question. The winner of the random drawing from those who commented is: @LarryBrock I’ll contact you separately with your prize details. This wee...

283 views 9 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