Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,298,527
Community Members
 
Community Events
165
Community Groups

Button / link to parent page / one level up?

Hi guys,

I searched some articles in here, but no exact answer.

Is there a out of box way, how to implement "level up" / "go to parent" page button / link into the Confluence Server / DC without any external plugin? 

Customer is 15k users, there is almost no possibility to purchase any plugin in schedule less then 2-3 years of planning :) 

Thanks for hints.

T.

2 answers

1 accepted

2 votes
Answer accepted

Like @Bill Bailey said, you'll need an user macro for that.

Here is it (h/t @Thomas Schlegel):

## @noparams
#
if (!$content.getParent()) <b>No parent page found</b>
#
else
#contentLink2($content.getParent() false false)
#end

To use it globally or space-wide you could place the macro in the footer (Look and Feel → Sidebar, header and footer).

Thanks for the hint, will follow up with admins! :-) 

Like Nicolai Sibler likes this

Is it possible to add the url of the parent page in i a link <a>?

@frithjof falck Please elaborate on what you actually want to achieve. Your requirement seems to be different from the one above.

This user macro shows the page name of the parent page as a clickable link. Would it be possible to make a user macro that has an <a> tag so that i can change the name of the link to for example "x"?

<a url="link to parent page">LINK NAME</a>

I'm not sure if this is possible as I'm not a coder.

1 vote
Bill Bailey Community Leader Aug 04, 2021

My suggestion is to write a user macro to do what you want. You will need cooperation from your admins to install the macro. AND you will have to install the macro each time you want to use it.

You may also be able to do it for every page using javascript, but I will assume that your admin team would view that as needing 2 to 3 years of planning.

Suggest an answer

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

An update on Confluence Cloud customer feedback – June 2022

Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...

202 views 1 4
Read article

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