Reusable domain in links

How (if at all possible) can I create links with reusable (like "excerpt-include") domain? 

I'm writing technical documentation where in multiple pages there should be a link to an external resource. For every page the resource is different but the domain  part of the link is the same. The problem is that domain is a subject to change and in the case of change I don't want to go through hundreds of pages and edit the link.

I imagine it should look something like that: [{excerpt-include:_commonDomain|noframe=true}/some/resource]. This of course does not work for obvious reasons.

Am I missing something obvious or is this not possible to achieve atm?

1 answer

1 vote
Stephen Deutsch Community Champion Feb 12, 2015

I'm not sure it would work for you, but I wrote a user macro to do a global search and replace, so if you are changing domains then it would be able to update it on every single page.  Unfortunately, it would also show you as editing 100's of pages at a time, but maybe it would be easier than trying to extract a domain from somewhere else, as you could just use the standard Confluence functions.  You can find the user macro here:

Just embed it in a blank page and you will be all set to go.

Thank you for your suggestion. I've saved the script and will try it out when domain changes. It's a little bit sad that there is no simpler way though.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 24, 2018 in Confluence

Atlassian Research opportunity with Confluence templates

Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time!   We're looking for people to participate in a   remote 1-hr workshop...

1,065 views 16 14
Join discussion

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