Hello,
I would like to insert TOC from OtherPage to some CurrentPage. (The CurrentPage could contains TOC from several OtherPages). The OtherPage contains five paragraph with headings (level 1).
I’ve tried it with macros:
include macro
{{include context="NEW" reference="OtherPage.WebHome" section="HToc"/}}
- The OtherPage has heading called Toc and the TOC macro is placed in the paragraph.
- The include macro is place at the CurrentPage and gives only one bullet list (first heading). The other headings are ignored.
context macro
{{context document="OthePage.WebHome" transformationContext="DOCUMENT"}}
{{toc/}}
{{/context}}
- It works better, it gives the whole content of the TOC from the OtherPage, but the links doesn’ t aim to the OtherPage. The links aims to the CurrentPage (where is the context macro placed). The user see the TOC, but it doesn’t redirect him to the OtherPage.
How can I display TOC from other page with proper links to the OtherPage?