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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

What do you think is the most *delightful* Confluence feature? Comment for a prize!

- Create your own custom emoji 🔥 - "Shake for Feedback" on mobile 📱 - An endless supply of GIFs via GIPHY 🤩 Is there anything quite as nice as a pleasant surprise? Comment below with what...

335 views 23 8
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