Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-56489

Tables generated by macros and have two <thead> HTML tags are not sortable when they are added to Expand Macro

    XMLWordPrintable

Details

    Description

      Summary

      Tables that are generated by macros and have <thead> HTML tag are not sortable when they are added to to Expand macro.

      This issue seems to be related to CONFSERVER-55253 where tables generated by the Page Property Report macro are not sortable when added to the expand macro. However, it seems that this issue is more common and happens to other tables that are generated by macro.

      Another example of this is Content Report Table. A table that is generated by this macro and placed inside the Expand macro will not be sortable.

      A common characteristic of both of the above tables are that they

      • Have two <thead> tags where the first is wrapped around the header and the second <thead> tag is wrapped around the first element of the table from <tbody>.
      • The table macros above when not added to an expand macro will only have one <thead> tag and it is wrapped around the header of the table only

      Steps to Reproduce

      1. Create a new Confluence page
      2. Add a PPR macro or Content Report Table.
      3. Place these macros inside the Expand macro
      4. Attempt to sort the table

      Expected Results

      The tables are sortable

      Actual Results

      The tables are not sortable

      Possible Workaround

      workaround was tested in 7.13.12

      1. Go to     > General Configuration > User Macros
      2. Choose Create a User Macro
      3. Enter the details
        • Macro Name (e.g. collapse-workaround)
        • Macro Title (e.g. Collapse Workaround)
      4. Set the Definition of User Macro to Rendered
      5. In the template section enter the following:
        ## This is an example macro
        ## @param Name:title=Name|type=string|required=true|desc=Your name
        ## @param Colour:title=Favourite Colour|type=enum|enumValues=red,green,blue|default=red|desc=Choose your favourite colour<details>
          <summary style="color:blue;"><a style="pointer-events: none; cursor: default;" href=""><u>$!param Name &raquo;</a></summary>
          $body
        </details> 

         This is just a sample

      6. Go to a page and add the newly created macro (The macro can be found in the Macro list +)
      7. Save the page and verify if it works

      Attachments

        1. screenshot-1.png
          screenshot-1.png
          74 kB
        2. screenshot-2.png
          screenshot-2.png
          84 kB
        3. screenshot-3.png
          screenshot-3.png
          63 kB

        Issue Links

          Activity

            People

              nhoxuan Nam Ho
              afaridi Ahmad Faridi
              Votes:
              51 Vote for this issue
              Watchers:
              50 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: