Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

Recognition

  • Give kudos
  • My kudos

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Using jump links in Table of Contents macro to navigate Children Display macro Edited

I have a space containing several hundred pages, and I'm attempting to create a catalog of these pages and some of their content excerpted using a the Children Display macro, Excerpt Include macro and the Table of Contents macro.

When rendering the Children Display macro for a parent page I get the following structure:

<Parent 1 title>

  • Child 1
    <Child 1 excerpt>
  • Child 2
    <Child 2 excerpt>
  • Child 3
    <Child 3 excerpt>
  • .....

<Parent 2 title>

  • Child 1
  • ....

where all children consist of <h3> elements linking to the specific page, along with a pre-defined excerpt. In addition, I have a header denoting which parent page these children belong to.

Now, with hundreds of pages, I want to be able to navigate the catalog using the Table of Contents macro. The macro renders fine, but I am only able to use the jump links for my parent titles. This seems to be because the child links do not get assigned an id:

<a href="#" class="toc-link">Child jump link</a>

Whereas the parent titles do:

<a href="#Parent-title" class="toc-link">Parent title</a>

 Is there any way of forcing the Children Display macro to assign IDs to its children links? If not, are there any other workarounds for achieving a catalog such as this?

Any help is greatly appreciated.

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence Cloud

Share your Confluence Cloud experience for a chance to win $500!

Take our 5-minute survey to win a $500 Visa gift card! Are you currently using Confluence Cloud? We want to hear from you! Fill out this quick survey about your Confluence Cloud experience so we ...

248 views 5 13
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you