Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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

Using variables in short cut links

Hi there,

I have 3-4 shortcut links (@name) configured in confluence to allow us to create dynamic links to web pages outside of Confluence.  I often create a table with a row that has several of these links, in different columns.

Right now I am typing the number and short cut link multiple times, and I am wondering if I could use a variable somehow to save some effort

For example, now I am typing

[123@mypage]   [123@yourpage]   [123@hispage]

Ideally I would like to do:

number=123    and then

[$number@mypage]   [$number@yourpage]   [$number@hispage]

 

Thanks in advance for any help,

 

John

 

 

2 answers

0 votes

Hello,

we create now for our department a new wiki-site with a lot of external link to our shares/folder structure. Thus, we have the same/similar case.

Example from our department share: //server1/company/plant/unit/department/internal/tool1/documentation

The first part should be in a variable

$department_share = //server1/company/plant/unit/department

Link to Tool documentation:

$department_share/internal/tool1/documentation

$department_share/internal/tool2/documentation

$department_share/internal/too2/documentation

With this structure we are save in the future when the department share are change in the company. We need only change the global variable $department_share and not aprox 200 Links on the wiki-site. For example they change the department share to //server2/company/plant/unit/department

 

Is is possible to create this kind of "variable" links with Confluence?

Thanks

Ilja

0 votes

Hi John,

 

Interesting post. I'm trying to get my head around how the [123@mypage] creates a page external to Confluence.

Is this an Add-On or plugin that you have, or some custom JavaScript running? 

Regards, James

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence Cloud

🏠 Say hello to the new Confluence Home!

Hi Atlassian Community, My name is DJ Chung, and I’m a Product Manager on the Confluence Cloud team. Today, I’m excited to share a new and improved version of Home. The new Home helps you ...

1,090 views 8 43
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you