Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Reusable domain in links

lelininkas
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 12, 2015

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
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 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:

https://streamline.atlassian.net/wiki/display/STRMLN/Search+and+Replace+User+Macro

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

lelininkas
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 13, 2015

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
TAGS
AUG Leaders

Atlassian Community Events