I'd like to add a Composition Setup for Deck of Cards to the header or footer so it's on every page, but I can't figure it out. This page https://community.atlassian.com/t5/Confluence-questions/Hot-to-add-macros-to-a-header-footer-or-sidebar/qaq-p/623306 said to do:
{livesearch:spaceKey=bqc}
but i'm not figuring out how to do it for Composition Setup.
Here's what I want to add for my tabs:
deck.card.border = 1px solid #eeeff0 deck.tab.active.border= #eeeff0 deck.tab.active.background = #ffffff deck.tab.inactive.border = 1px solid #eeeff0 deck.tab.inactive.background = #eeeff0 deck.tab.spacer = 10px deck.memory.duration = 0 |
Hi Frank,
Since you want to use macros in the header or footer, you'd need to know the wiki markup tags for Composition Setup. That happens to be {composition-setup}.
So to perform what you intend to do, you need to wrap your code around with the tags like this:
{composition-setup}deck.card.border = 1px solid #eeeff0
deck.tab.active.border= #eeeff0
deck.tab.active.background = #ffffff
deck.tab.inactive.border = 1px solid #eeeff0
deck.tab.inactive.background = #eeeff0
deck.tab.spacer = 10px
deck.memory.duration = 0{composition-setup}
Unfortunately, using Composition Setup in the sidebar doesn't really work (at least not in my quick tests).
If you wanted to do it for every page, you're likelier to get better results if you use a space template or a Live Template macro from the Scaffolding app.
Ah ok. Thank you. That makes sense. I did this earlier, but obviously that didn't work.
{compositionsetup: deck.card.border = 1px solid #eeeff0
deck.tab.active.border= #eeeff0
deck.tab.active.background = #ffffff
deck.tab.inactive.border = 1px solid #eeeff0
deck.tab.inactive.background = #eeeff0
deck.tab.spacer = 10px
deck.memory.duration = 0}
I haven't done any wiki markup. I'll have to find out tomorrow if we have access to those. We're on the cloud (strike that, no we're not), and I don't have admin, so hopefully it works. Right now i've just got the composition setup on each page with the tabs... About 15 pages. Not real fun having to go back and edit those.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ah, you're on Cloud! Well, Composition Cloud (which is still in beta) does not support the Composition Setup macro yet so that definitely won't work in your case.
Sorry about having to edit 15 pages. I've had to manually edit a huge batch of pages before and that definitely wasn't fun at all.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Wait.. i'm an idiot. We're not on the cloud. Sorry.. i'm dumb. No idea why I said that. Too many tabs open, too many beers. Ugh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Tried this today and, like you said, it didn't work. Thanks anyway.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.