I mean something that would help in such situation:
I have a page with links to some development environment apps, that looks like this:
And that is repeated many times for different environments, and the IPs sometimes change. So I would like to do sth lik this
$qaIP = 184.108.40.206
So that I change one place and when page is displayed, all addresses are correct and updated. Oviously should work also for links.
Is there such functionality?
Sort of. I use include, excerpt, multi-excerpt and user macros to do stuff like this:
Ah, I think I've misread the requirement - I've assumed you wanted variables where you can change them in one place, and have them automatically shown correctly in other places.
But what you want is "put X on several pages, and have it display differently according to some other stuff, such as the space the page is in"? If that's right, then my first three won't help you, but user macros can do that. (macro X with would contain decision logic on what to actually display)
What I want is much easier: I maintain a page, where some IP number appears many times, and I would like to be sure, that when it changes, all its occurences change. So intstead directly writing it everywhere, I would like to put there a constant instead, and define this constant value at the beginning, once.
Sure, I could kinda achive that by "replace all" in text editor, but would like to do it more "pro"
Yes, that makes sense. I suppose you could do something with page properties (I'm not sure, I've only ever used them for doing stuff with other pages), and I suspect, again, a user macro might be able to help. You need something that allows you to put some form of metadata on the page and then expose it whereever you want in the page.
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
An efficient enterprise content management system, or ECM, is a must-have for companies that create work online (cough cough, all companies). If content calendars, marketing plans, and bu...
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!
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