Variables in confluence Text

Fabian Arndt January 18, 2018

Hello,

 

is there a easy way to define certain variables. like $comanyname=mycompany and use them confuence or space wide?

 

We wish to sync some pages between multiple company's and that would be a handy feature.

4 answers

0 votes
Bill Bailey
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.
January 22, 2018

Have you looked at the metadata plugins? You could set a bunch of custom metadata values on a page at root (so it doesn't appear in the left-hand navigation), which can be referenced anywhere in Confluence.

I use this plugin to pass values to documents with the k15t Scroll export utilities.

0 votes
EPS Software Engineering AG
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.
January 19, 2018

Hi Fabian,

Maybe our App Easy Space Variables could help. You find it on the Marketplace.

Regards,
Stephan (I am the CEO of EPS, the vendor of Easy Space Variables)

Fabian Arndt January 22, 2018

Thanks but we already try your plug-in. It seems do do exactly what we need.

 

:)

EPS Software Engineering AG
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.
January 22, 2018

Ok, great. Please let us know if you need any assistance.

0 votes
Robert Reiner _smartics_
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.
January 18, 2018
Davin Studer
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.
January 18, 2018

To add to this if you create a user macro to do the replacement you could put the macro in you page decorator so that is is automatically included on every page.

0 votes
Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 18, 2018

Hi Fabian,

I would recommend using Excerpt Include Macro for this. 

You can have a page with the main excerpts you'll be re-using, and then you can call them from other pages within Confluence. Keep in mind that a user will need to have view access to the source location if they are to see the excerpt on another page.

Let me know if you have any questions on how to use that.

Regards,

Shannon

Fabian Arndt January 18, 2018

Hello,

 

we already use that on some occasions. but that's not what we need.

 

What we need is a defined list of words which will be replaced by a set value.

$cname with mycompany

Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 18, 2018

Fabian,

There's no additional feature like that at the moment, but we do have a feature request for it:

Otherwise, you may be able to use an add-on such as Scripting for Confluence. It looks like you may be able to have set variables there.

Regards,

Shannon

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events