Variables in confluence Text

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 vote

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

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

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

Davin Studer Community Champion Jan 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.

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)

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

 

:)

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

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.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Tuesday in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

390 views 17 9
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