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

Cannot use templates in a wiki macro

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Major
    • None
    • 9.11.2, 10.0
    • Template API
    • None
    • Unknown

    Description

      Create a wiki macro, with that content:

      {{template name="locationPicker_macros.vm" /}}
      
      {{velocity}}
      #documentTree({
                      'class': 'location-tree',
                      'finder': true,
                      'showAttachments': false,
                      'showRoot': false,
                      'showTerminalDocuments': true,
                      'showTranslations': false,
                      'showWikis': true
                    })
      {{/velocity}}
      

      The documentTree macro is not included in the velocity context. It prevents me to use a document tree inside a wiki macro, which is a shame...

      Attachments

        Activity

          People

            gdelhumeau Guillaume Delhumeau
            gdelhumeau Guillaume Delhumeau
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: