I have information organized by cards (deck-card macro) and I would like to add links to specific cards from other pages. Is that possible or should I use a different macro to organize the information.
With a bit of JavaScript on the source and target pages this could be achieved. Likely the most user friendly way to do this would be to wrap the links in a user macro that appends ?targetTabText=Click+Me to the target page URL. The target page would have a user macro containing some JavaScript that grabs the request parameter, searches for tabs containing that text -- "Click Me" -- and performs a click event on the tab thus revealing the content. I'd do it now if I wasn't using a mobile device ;-)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello
Is there any solution? I am a beginner so it would be very helpful if you can share the code
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Here is a workaround:
then, inside the HTML macro, make your link like this:
<a href="PAGE URL#mydeck-anchor2">LINK NAME</a>
Have a nice day
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I've tried this from a direct URL entry e.g.
https://<page-url>#mydeck-anchor2
with no luck
Details:
Chrome: Version 64.0.3282.186 (Official Build) (64-bit)
Windows 10
Is there actual official reference documentation from Atlassian somewhere on how to use the card id as an anchor in a deck of cards?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Colin,
I just tested it on Confluence 6.5.2 / Chrome 65.0.3325.162 / Windows 7, and it's functionnal for me.
There is no official doc. I found it by inspecting a classical anchor url.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well - thanks for the quick response.
I tripled checked the mydeck ID and the card ID and formed the URL with
<mydeckID>-<cardID> as you suggest but when I bring the page up the first card is the one on display.
I'll keep having a look
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just to make sure, the url to "yourspacekey" with "more than one word" page title should be:
...confluence/display/yourspacekey/more+than+one+word#mydeckID-cardID
Make sure that your page doesn't have any special characters because it'll turn your url name in page id.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks again. Yup I dumbed down the tags since they had an _ and a . but still no luck.
Essentially looks like:
.../confluence.company.com/display/space1/Release+Notices+Bulletin+List#releaseNotices-r13
where
Deck of Cards id = releaseNotices
Card Id - r13
There must be something else messing up on the page, as it defaults to the r1 (first) card tab each time for me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Maybe you should try on test page with simple page title, simple anchors name and 2-3 tabs without content.
Sorry for this newb error check, but make sure that you don't mix up card label and card id ;)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Laurent,
I created a test page as you suggested. Everything works perfectly with the new page.
Even to the point where when you select the new tab, the URL in chrome is automatically updating when the you traverse between the cards:
.../confluence.company.com/display/myspace/Deck+of+Card+indexing+test#deck1-card1id
click on card 2 and the broswer URL automagically becomes:
..../confluence.company.com/display/myspace/Deck+of+Card+indexing+test#deck1-card2id
So I'm speculating it might be a "legacy" issue with pages with Deck of Cards created before a certain point because I can't get it to work on that page. I might try creating a new page and migrating content over from the one that is not working to see if I can get it to work ... thanks for all the interaction on this one Laurent.
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.
Hi Laurent,
Questions for you:
<a href="PAGE URL#mydeck-anchor2">LINK NAME</a>
I have tried it out making sure that the page doesn't have any special characters like your example
confluence/display/yourspacekey/more+than+one+word#mydeckID-cardID
But I still cannot create the link so that I can use to access to a specific card in the Card macro.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, I found my answers.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Was there any resolution to this? The link is broken.
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.
Thanks david that is the one I am using.
I enter an anchor on the body of card and then a link to that anchor but it is not working.... I will test it again.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried adding an #anchor on each card, in the first line of the card box.
then I created links to that anchor, the address bar is changing as I click on each of the links but the tab is not opening. When I click on the link that is for the active card/tab the body of the moves up having the top of the screen where the anchor is. This works only with the tab that is open in that moment
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.