Excerpt include macro showing excerpt TOC within preview but disappears when publishing?

Addie Hutchins
Contributor
March 23, 2022

I know I've done the excerpt portion correction, because when I go to the page I want the excerpt to be displayed, it's there in the preview but when I publish it, it's gone. 

I have a title page that I want to include Headings on. 

Example: 

  • Title page
    • page 1
      • description
      • description
    • page 2
      • description
    • page 3

I want the descriptions to be listed on the title page. I have created an excerpt of a TOC for each page and I want to display that on the title page. When I go to excerpt include, it's all there (all descriptions) but when I publish it, it's blank. 

 

My preview & results:

preview.pngresults.png

 

2 answers

1 accepted

2 votes
Answer accepted
Andy Gladstone
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 23, 2022

@Addie Hutchins to add to what @Katerina Kovriga _Stiltsoft_ said:

 

Let me first explain why Headings in an excerpt or include macro don't populate in the ToC on a page the macro is being used on.

 

Since the excerpt/include macros are mirroring the detail from the parent page, it is not bringing over the underlying formatting from that page - which means that the ToC cannot pick up the content as a heading that should be included in the child page's ToC.

Now that you know, you can vote for this existing feature request using this link.

Hope this helps.

Samuel Huber May 9, 2022

Hi

I think its more related to the reported bug: CONFCLOUD-72469 

As I understand @Addie Hutchins is using ToC within a Excerpt macro, not the other way round.
The feature you linked is complaining that included headings are missing / not shown in ToC....

Feel free to vote for the bug (report as affected customer)

2 votes
Katerina Kovriga _Stiltsoft_
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.
March 23, 2022

Hi @Addie Hutchins ,

I think that your case is not supposed to work - the result that you see in the preview is a static one, it's like a snapshot, plain text.

When you publish the page, you try to reuse the dynamic macro that pulls live headings from another page - so you just don't see anything at all.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events