Forums

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

Using variables in short cut links

John Paliotta
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!
March 1, 2018

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
ilja Rajewitz
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!
December 15, 2021

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
James Richards
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 27, 2018

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

Atlassian Community Events