Details
-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
None
-
None
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
- duplicates
-
XWIKI-5278 Velocity Macros are considered global and not isolated in XWiki Syntax 2.0
- Closed