Hi Community!
I have a problem with the table of contents (toc) in combination with the Excerpt-Include feature.
I cannot exclude headers of an excerpt-include from a toc.
The structure of my pages is as following.
Structure of page 1:
{
{excerpt}
<h1>P1-Header 1</h1>
<h2>P1-Header 1.1</h2>
<h2>P1-Header 1.2</h2>
{/excerpt}
}
Structure of page 2:
{
{toc}
<h1>P2-Header 1</h1>
<h2>P2-Header 1.1</h2>
{excerpt-include of page 1 /}
<h2>P2-Header 1.2</h2>
}
Result toc of page 2 now looks like:
* P2-Header 1
** P2-Header 1.1
* P1-Header 1
** P1-Header 1.1
** P1-Header 1.2
** P2-Header 1.2
Now I couldn"t find a way to exclude the headers of the Excerpt-Include (page 1) within the toc of page 2.
The result toc which I try to get is:
* P2-Header 1
** P2-Header 1.1
** P2-Header 1.2
Can anyone help me out to find a solution?
We are using Confluence 6.5.1.
The only way I can think to do this would be to change the headings on your include page to something higher ... like h3 and h4 and then tell you TOC macro to ignore h3 and h4.
Hi Davin,
Thank you for your fast reply.
I was afraid that something like this would be the way.
Then I will try to do it like your proposal or 'excerpt' multiple parts without the heading tags.
Thank you again!
Best regards,
Daniel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I just tried to use multiple excerpts but it does not work.
It seems not to be a bug because the documentation also says:
"You can only define one excerpt per page. In other words, you can only add the Excerpt macro once to a page."
See https://confluence.atlassian.com/conf65/excerpt-macro-939701208.html
For now I do not use the Excerpt macro anymore. I just linked the parts of the other pages. Maybe they will improve the feature for the future.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There are a couple add-ons in the mareket place that allow for multi excerpt includes.
Multi Excerpt (paid)
Include Content (free)
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.
I still have the same problem. To put the headings to a higher level is no solution for me, it takes to much of the flexibility.
Is it not possible to exclude the ToC numbering for excerpt include?
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.