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

#includeTopic does not work properly when including document in 2.0 syntax

    XMLWordPrintable

Details

    Description

      Included document "InclusionTest1" is:

      {{velocity}}
      doc=$doc
      PR=$xwiki.hasProgrammingRights()
      {{/velocity}}
      

      Inclusion is done either from an 1.0 document with:#includeTopic("XWikiBugs.InclusionTest1")

      or from a 2.0 document with:

      {{velocity}}
      {{html}}
      #includeTopic("XWikiBugs.InclusionTest1")
      {{/html}}
      {{/velocity}}
      

      In both case, $doc does not equals to XWikiBugs.InclusionTest1, it stay equals to the including document which is the behaviour of #IncludeInContext.

      Live sample available from http://sandbox.softec.lu/site/XWikiBugs/InclusionTest10 and http://sandbox.softec.lu/site/XWikiBugs/XWiki5019

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: