Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-12723

XWiki#getCurrentContentSyntaxId() may return wrong value inside wiki macros

    Details

    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      When setting a default syntax other than XWiki 2.1, macros such as document tree cease to render.

      Setting it either through xwiki.pproperties

      #-# [Since 1.8RC2]
      #-# Specifies the default syntax to use when creating new documents.
      #-# Default value is xwiki/2.1.
      core.defaultDocumentSyntax = markdown/1.1

      or through Admin > XWiki.XWikiPreferences will cause {{documentTree/}} to render as:

      (% class='xtree ' data-responsive="true" data-url='/xwiki/bin/get/XWiki/DocumentTree?outputSyntax=plain&' data-dragAndDrop='false' data-contextMenu='false' data-icons='true' data-edges='true' data-checkboxes='false' data-openTo='' data-finder='false' %)((()))

      However, removing the default syntax and just setting the new page syntax to markdown/1.1 will not break the macro.

      This has been discussed in the users mailing list

        Attachments

          Activity

            People

            • Assignee:
              tmortagne Thomas Mortagne
              Reporter:
              jsotuyod Juan Martín Sotuyo Dodero
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: