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.
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! :-)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is it possible to add the url of the parent page in i a link <a>?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@frithjof falck Please elaborate on what you actually want to achieve. Your requirement seems to be different from the one above.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm not sure if this is possible as I'm not a coder.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Why is such simple thing not available as a built in macro? Yes I understand you can just insert a link. However we are trying to automate page building with templates and this is one less thing to add.
I've tried the code above and it's not working.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Andrew Pascarella code is fully working, using every day, in many templates and pages.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Not sure, I'm not a coder or programmer. Trying to fix a broken macro from another user that got placed in 400+ pages.
I copy pasted this code to replace the original link to parent code and it doesn’t work for me. We are on Data Server 7.19.
From what I'm reading that code should work, so I'm not really understanding why it won't.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I'm using such a user macro.
Since the last update (to 7.19.16) it shows this linktext
$htmlUtil.htmlEncode($content.displayTitle)
instead of the parent page's title.
The link itself works.
Any tips?
Best regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have the same error too.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Stefanos @Kevin Bishop Please check CONFSERVER-82741
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Moving to Confluence Data Center 9.2.0 the suggested User Macro, which is in use, got broken.
Any suggestions?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The "Link to Location" macro will also work here.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
--- deleted a bad HTML code that would not do what you wanted
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.