I have several pages that each have many Page Properties macros and I'm using a Page Properties Report macro to bring all of their relevant data together on a different page, we'll call it Main. The format of the child pages is a Page Properties macro followed by an Anchor macro followed by a Collapsible Block macro. None of these macros are embedded in one another, to be clear. Just that sequence of 3 macros following each other over and over again.
My goal is to embed a link to the Anchor in the table of the Page Properties macro such that when viewed as part of the Page Properties Report macro on Main, I can link back to the specific space for that specific item on its child page.
The issue I'm running into is this - Confluence is trying to be "smart" when I create my link. The proper format for the link should be 'child page name#anchor name'. However, since I'm already on 'child page name' when I'm creating the link, that part is automatically removed by Confluence such that when I edit the link afterwards the text is just '#anchor name'.
How do I force Confluence to stop trying to help me here and not strip the text it deems unnecessary (because the links that get pulled into the Page Properties Report macro don't work)? Or is there another way to go about accomplishing my goal with other macros?
Many thanks in advance!
Have you figured this out? I am looking to do something similar.
Just a hint: Try writing a user macro which creates the anchor link inside the page property macro. I did something similar listing page attachments as a simple unordered list inside a page property macro: the result is a page property report which list all pages with the attachments in one table. Try the Confluence Source Editor add on to get the idea of the code a macro creates. Your user macro should just be a link to the current page added with a #anchor link.
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.