The toc macro seams to use the saved version of a page, so if you edit a page and preview it, the table of contents is not updated.

      1. Create a page with a table of contents
      2. Edit the page and add new toc elements
      3. Preview the page, the toc is not updated
      4. Save the page, the toc IS updated

            [CONFSERVER-10619] toc macro doesn't work properly in preview mode

            QA is a pass for this item.

            Glenn Martin (Inactive) added a comment - QA is a pass for this item.

            I ran into this bug, and being new to Confluence, assumed I was doing something wrong.

            So, I think it would be handy is this was mentioned in the "Full Notation Guide", to save people wasting their time, as I wasted mine.

            Brock Henry added a comment - I ran into this bug, and being new to Confluence, assumed I was doing something wrong. So, I think it would be handy is this was mentioned in the "Full Notation Guide", to save people wasting their time, as I wasted mine.

            I haven't thoroughly tested this yet, but I presume this issue relates to the

            {toc-zone}

            macro also.

            Giles Gaskell [Atlassian] added a comment - I haven't thoroughly tested this yet, but I presume this issue relates to the {toc-zone} macro also.

            I've discovered another issue which probably relates to this TOC Macro issue -

            Users will soon be able to use Confluence 3.0's Macro Browser to add TOC macros to their page. The Macro Browser contains a generic Preview button for each macro, allowing a user to modify a macro's parameter values to see how these affect the output (once they click the Preview button).

            Unfortunately, the TOC macro doesn't respect this Preview feature (i.e. clicking the Preview button does nothing) and I suspect this behaviour relates to this bug.

            Hence, I'm adding my vote.

            Giles Gaskell [Atlassian] added a comment - - edited I've discovered another issue which probably relates to this TOC Macro issue - Users will soon be able to use Confluence 3.0's Macro Browser to add TOC macros to their page. The Macro Browser contains a generic Preview button for each macro, allowing a user to modify a macro's parameter values to see how these affect the output (once they click the Preview button). Unfortunately, the TOC macro doesn't respect this Preview feature (i.e. clicking the Preview button does nothing) and I suspect this behaviour relates to this bug. Hence, I'm adding my vote.

            I think there's a question here: Is this a bug in {toc} or in the Preview mode? It's long been known that many macros don't work in Preview mode because of rendering at least partially in the context of its own last saved version, but {toc}, I believe, uses the search index to find its headings.

            Other things don't work in Preview mode, such as some Javascript invocations, because Preview doesn't load the necessary Javascript files or even the same CSS - at least not in our heavily-modified version...

            Brian M. Thomas added a comment - I think there's a question here: Is this a bug in { toc } or in the Preview mode? It's long been known that many macros don't work in Preview mode because of rendering at least partially in the context of its own last saved version, but { toc }, I believe, uses the search index to find its headings. Other things don't work in Preview mode, such as some Javascript invocations, because Preview doesn't load the necessary Javascript files or even the same CSS - at least not in our heavily-modified version...

            The issue was also there with 2.3.1 already.

            Normand Brousseau added a comment - The issue was also there with 2.3.1 already.

            This is reproducible with Confluence 2.7.1 already, so I am changing the affects-version.

            Per Fragemann [Atlassian] added a comment - This is reproducible with Confluence 2.7.1 already, so I am changing the affects-version.

            Definitely not a 2.8 only bug as I suspect its been around for ever.
            It was reported on EAC by Sarh Nguyen.
            I don't believe its a high priority issue and I have set complexity and value accordingly.

            m@ (Inactive) added a comment - Definitely not a 2.8 only bug as I suspect its been around for ever. It was reported on EAC by Sarh Nguyen. I don't believe its a high priority issue and I have set complexity and value accordingly.

            is this a 2.8 related bug? no version and no components attached...?

            Per Fragemann [Atlassian] added a comment - is this a 2.8 related bug? no version and no components attached...?

            Could be related to CONF-4297

            m@ (Inactive) added a comment - Could be related to CONF-4297

              jali Joshua Ali (Inactive)
              mjensen m@ (Inactive)
              Affected customers:
              12 This affects my team
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: