Comments

3 comments

  • Avatar
    Nils Bier

    Hi there,

    Thanks for reaching out and your interest in Scroll Documents.

    Would using a Children Display Macro on the root page of the document work for you to achieve the desired behavior? Using the children macro you can define to display all page titles of a defined depth (depending how deep the structure of your doc is), which could work as a TOC.

    Or would you also need to have the headings of each child page to be displayed?

    It would be great if you could further elaborate on your exact requirements here, so we can check how this can be achieved with Scroll Documents.

    Best,
    Nils

    0
    Comment actions Permalink
  • Avatar
    f spark

    That works! Thanks Nils.

    0
    Comment actions Permalink
  • Avatar
    Ryan

    Tip: by default, the Children Display macro only displays the titles of child pages, which leaves the table of contents incomplete if the child pages have headings that you want to include. Here is how to include headings and subheadings from child pages in the table of contents.

    In the Children Display macro, under Excerpt Display, choose rich content.

    In the child pages, add the Excerpt macro and then a Table of Contents macro inside the excerptChoose the desired options for for Excerpt and Table of Contents macros. When using Scroll Documents, you probably don't need a table of contents on every child page, so I would suggest hiding the excerpt. You may also want to put the Excerpt macro in a Scroll Ignore macro to exclude it from exports.

    The main table of contents created by the Children Display macro on your parent page will now display not only titles, but also the headings of the child pages. You can only have one Excerpt macro per page, so if you want to use excerpts in the traditional way, you will need a second excerpt app, such as Multi-excerpt, for instance.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk