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

Target syntax is not set on the transformation context when the document content is executed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • 17.0.0-rc-1
    • 15.10.15
    • Display
    • None
    • Unknown

    Description

      This can be seen by implementing a wiki macro with this code:

      {{velocity}}
      $wikimacro.context.transformationContext.targetSyntax
      {{/velocity}}
      

      Insert this macro in the content of a wiki page and see the result in view mode: the target syntax is not set. This prevents the macro from producing different output depending on the target syntax, see https://www.xwiki.org/xwiki/bin/view/FAQ/How%20to%20write%20Macro%20code%20for%20the%20edit%20mode .

      Attachments

        Activity

          People

            mflorea Marius Dumitru Florea
            mflorea Marius Dumitru Florea
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: