This question is in reference to Atlassian Documentation: Table of Contents Macro
I have 2 table of content zones and a main table of content, I dont want the 2 zones to show in the main. I tried using 2 words to exclude but since it is looking at both as one word neither get excluded. I cant make a 3rd zone because what I am trying to exclude is in the middle of the page.
I tried mimicking your setup and was able to exclude the Table of Content Zones using the *Exclude Headings* function in the Table of Contents macro. This part may be a bit confusing as the parameter takes regular expressions to find matches and exclude them.
One useful tool to make sure the regular expression you created catches the sections you want is the following: http://www.regexpal.com/ This should let you test your regular expressions to make sure they are valid.
As an example, I created some Table of Content Zones with the names ZONE and SECTION respectively. I then created a simple regular expression to capture both of the words and added it to the Exclude parameter:
This should exclude any words in the regex statement above from the Table of Contents macro and you should be able to add more complex filters to the expression to come up with any patterns you like. The site I provided above has some cheat sheets on how to come up with valid regular expressions and should help if the simple command above does not work for you (in your case you should be able to edit the command above to fit your zone names).
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs