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

How could you create a cross-reference to images and tables

I used the macro here: http://webapps.stackexchange.com/questions/25783/how-to-create-automatically-numbered-figure-captions-in-atlassian-confluence to create captions for my tables and images, but now I'm trying to create a Word like cross-reference to the caption. The cross reference macro works, but only if the cross reference macro comes after the already processed caption macro. Is there a way to force the caption macros to be processed first? This is what I have so far:

## Macro title: Cross Reference 
## Macro has a body: N 
## 
## Developed by: Dave Humeniuk
## Date created: 8/Jul/2013 
## Installed by: Dave Humeniuk 
## This is an example macro 
## @param AnchorName:title=Anchor Name|type=string|required=true|desc=Anchor name of the table or figure caption 
## @param Label:title=Label|type=string|required=false|desc=Label to add to the link 

#set ($fullLabel = $req.getAttribute("xrefMap").get($paramAnchorName))

<![CDATA[$fullLabel]]>

1 answer

Have you been able to find an answer to your question? If yes, could you share that answer, please?

Thanks

Unfortunately not really. I was able to get something working on a per page basis, but not over multiple pages that would be exported to PDF. I have basically scraped the idea for now.

Unfortunately not really. I was able to get something working on a per page basis, but not over multiple pages that would be exported to PDF. I have basically scraped the idea for now.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published Thursday in Confluence

Confluence CVEs and common questions

Two vulnerabilities have been published for Confluence Server and Data Center recently: March 20, 2019 CVE-2019-3395 / CVE-2019-3396 April 17, 2019 CVE-2019-3398 The goal of this article is...

252 views 0 12
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you