Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×I have content that I need to mirror from a public space to an internal space with the Excerpt and Excerpt Include macros. But any links contained within those macros are absolute, i.e. they target the space with the Excerpt macro and not the space using the Excerpt Include macro, even if both spaces have pages with the same names. Is it possible to create relative links, so that links in an excerpt always target the current space?
Import doesn't help, because I don't want to have to update content in two places after I import. But I was able to figure out a workaround using the Multiexcerpt macro, by using anchors instead of absolute links. As long as both spaces have the same page names and anchors, an anchor will target the page/anchor in its own space even if the anchor is part of an "Include" macro from another space.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Erica,
the issue is that the standard macros from Atlassian work with the exporting space. So "include" and "excerpt-include" first evaluate the macros, then import the resulting content into the targetpage.
A "toc" macro will give you the table of contents from the exporting page.
You might be able to use "multi-excerpt" addon or the "Theme-Builder" Addon. The later has a macro "import", which does things differently.
"Import" does import the content incl. not-executed-macros first, THEN executes the macros. Thus, a "toc" macro will give you the table of the importing page, not the referenced page.
Let us know what worked :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Erica,
the issue is that the standard macros from Atlassian work with the exporting space. So "include" and "excerpt-include" first evaluate the macros, then import the resulting content into the targetpage.
A "toc" macro will give you the table of contents from the exporting page.
You might be able to use "multi-excerpt" addon or the "Theme-Builder" Addon. The later has a macro "import", which does things differently.
"Import" does import the content incl. not-executed-macros first, THEN executes the macros. Thus, a "toc" macro will give you the table of the importing page, not the referenced page.
Let us know what worked :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.