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

Make possible to access macro descriptor when the macro is not saved with programming rights

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Duplicate
    • Major
    • None
    • 2.2.3
    • None
    • Unknown

    Description

      For personal macros for example to test before an admin save it to provide it to all users.

      To support it in velocity (less needed in other languages since they need programming right to work anyway) DefaultWikiMacro#execute needs to put the Map<String, Object> macroContext in the VelocityContext (as well as the context).

      To be more clear, having:

      $macro == $context.macro
      

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              tmortagne Thomas Mortagne
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: