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

Unable to use inside document content the velocity macros defined in skin templates

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 6.3-milestone-2
    • Fix Version/s: None
    • Component/s: Old Core
    • Labels:
      None
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      Steps to reproduce:
      1. Define a variable and a macro in skins/flamingo/view.vm
      2. Call that macro and variable in a document
      3. The macro will not be visible, but the variable will be

      Restarting the wiki does not help either, the macro defined in the template will just no be visible at all from a document.

      The currently failing test for this is: http://ci.xwiki.org/job/xwiki-enterprise-test-selenium/lastBuild/org.xwiki.enterprise$xwiki-enterprise-test-selenium/testReport/org.xwiki.test.selenium/VelocityMacrosTest/testUsingMacroInGetRenderedContent/ (macro defined in a skin object's property)

      Note that this test was added for fixing XWIKI-2340 (Macros declared before a call to $doc.getRenderedContent() in custom XWiki.XWikiSkins skin object are not taken into account).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tmortagne Thomas Mortagne
                Reporter:
                enygma Eduard Moraru
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

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