Can I use new Cards macro to link to headings on same page?

John Bishop July 18, 2024

Is there any way to link a card to a heading further down on a page.  This would allow the ability to make visual tables of content at the top of a page.  When I try currently it opens another page - that isn't helpful.  This could also work with anchor links but the # command that works with other links in Confluence doesn't work in this macro.  Thanks!

3 answers

0 votes
Zoriana Bogutska_Adaptavist_
Atlassian Partner
September 20, 2024

Hi @John Bishop 

You can consider Cards by Content Formatting Macros for Confluence. They actually allow you to do what you ask. You just need to copy the header link and paste it into the Card's link field. Also, uncheck the box to make the link open in a same tab. Screenshot 2024-09-20 at 08.36.08.pngScreenshot 2024-09-20 at 08.36.39.pngBut, of course, this solution works for you if your team allow you to use apps from the Atlassian marketplace.  This app is created by my team, and if you have any questions - I will be happy to help.

 

0 votes
Barbara Szczesniak
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 19, 2024

@John Bishop Welcome to the community.

I'm apparently not up on this new Cards macro, but have you tried just inserting the Table of Contents macro at the top of the page? (https://support.atlassian.com/confluence-cloud/docs/insert-the-table-of-contents-macro/

I'm not sure if you can put it on the card, but you can place it in a layout section or 1-cell table at the top of the page.

John Bishop July 19, 2024

Hi, thanks.  Yes, I love the TOC feature but was hoping to create something more visual w this new macro. 

0 votes
Shawn Doyle - ReleaseTEAM
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 18, 2024

You can paste the link to the anchor in the card, but it currently doesn't work. 

If you save and then edit the card the anchor reference will be removed and it will just be the page url.

 

 

John Bishop July 19, 2024

Right, it just disappears. and if you grab the URL from a heading further down in the page it opens a new window when clicked.. no option to uncheck that in the macro.

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events