Hmm seems to be related to groovy (and probably other non velocity
languages) actually, i will look at it.

On Fri, Aug 20, 2010 at 09:28, Thomas Mortagne
<[email protected]> wrote:
> Hi,
>
> On Fri, Aug 20, 2010 at 02:24, Abel Solórzano Astorga
> <[email protected]> wrote:
>> Hi,
>>
>> I want to know how to access the *com.xpn.xwiki.api.Document* of the page
>> where a "*Rendering Macro*" is included. I created a macro using the
>> documentation at
>> http://platform.xwiki.org/xwiki/bin/view/DevGuide/WikiMacroTutorial. The
>> problem is that when I try to access the *doc* object inside the Macro I am
>> getting the doc of the XWiki page where the Macro was defined. But I want
>> doc object of the XWiki page where the Macro is included. If you need more
>> details please let me know. I appreciate the help you can give me :).
>
> Well i can't reproduce your issue.
>
> I wrote a macro in http://tuska.myxwiki.org/xwiki/bin/view/view/MacrosToto 
> with
>
> {{velocity}}$doc{{/velocity}}
>
> as macro code and when i use it in
> http://tuska.myxwiki.org/xwiki/bin/view/view/MacrosTotoTest it print
> me
>
> view.MacrosTotoTest
>
> which seems to be what you want.
>
>>
>> Regards,
>>
>> Abel
>> _______________________________________________
>> users mailing list
>> [email protected]
>> http://lists.xwiki.org/mailman/listinfo/users
>>
>
>
>
> --
> Thomas Mortagne
>



-- 
Thomas Mortagne
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to