I mean something that would help in such situation:
I have a page with links to some development environment apps, that looks like this:
GUI: 123.123.123.123:8080/gui
Admin: 123.123.123.123:9090/admin
sthOther: 123.123.123.123:9091/sthOther
sthOther2: 123.123.123.123:9092/sthOther2
And that is repeated many times for different environments, and the IPs sometimes change. So I would like to do sth lik this
$qaIP = 123.123.123.123
GUI: $qaIP:8080/gui
....
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:
Well, I don't think that's the solution unless excerpts take params (they don't)... Own macros looks like the only solution, but muuch to complex for my use case... thanks anyway for response Nic.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, thanks Nic for clarifications. Hope Confluence will get that kind of functionality someday
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.