what is #includeForm, #includeTopic?
what is difference between #includeForm, #includeTopic? And if possible, where can I find out other available commands? Thanks. Duke
The difference only applies for scripts #includeTopic wil include the content and execute any script in the context of the *included* document #includeForm will include the content and execute any script in the context of the *including *document For example is Test.WebHome include Test.Include which contains $doc.name then with includeTopic the result will be 'Include' while with includeForm it will be 'WebHome' There is also includeMacros which should be used if you declare velocity macros in your included files. It will insure the macros are parsed before being used in the including pages. Ludovic Duke Tantiprasut a écrit :
what is difference between #includeForm, #includeTopic? And if possible, where can I find out other available commands?
Thanks.
Duke
------------------------------------------------------------------------
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
-- Ludovic Dubost XPertNet: http://www.xpertnet.fr/ Blog: http://www.ludovic.org/blog/ XWiki: http://www.xwiki.com Skype: ldubost AIM: nvludo Yahoo: ludovic
Thanks Ludovic.
-----Original Message----- From: Ludovic Dubost [mailto:[email protected]] Sent: Monday, July 04, 2005 5:44 AM To: [email protected] Subject: Re: [xwiki-users] what is #includeForm, #includeTopic?
The difference only applies for scripts
#includeTopic wil include the content and execute any script in the context of the *included* document #includeForm will include the content and execute any script in the context of the *including *document
For example is Test.WebHome include Test.Include which contains $doc.name then with includeTopic the result will be 'Include' while with includeForm it will be 'WebHome'
There is also includeMacros which should be used if you declare velocity macros in your included files. It will insure the macros are parsed before being used in the including pages.
Ludovic
Duke Tantiprasut a écrit :
what is difference between #includeForm, #includeTopic? And if possible, where can I find out other available commands?
Thanks.
Duke
-------------------------------------------------------------
-
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
-- Ludovic Dubost XPertNet: http://www.xpertnet.fr/ Blog: http://www.ludovic.org/blog/ XWiki: http://www.xwiki.com Skype: ldubost AIM: nvludo Yahoo: ludovic
Hi Duke, Those macros are defined in the macros.vm template file in the templates directory. From what I can see in the source code, the big difference between #includeTopic and #includeForm is that #includeTopic is rendered in the context of the included document, whereas in the case of #includeForm, the included document is rentered in the context of the including (calling) document. So basically if you want any included macros to be applied correctly in your calling document its better to use #includeForm and if it is just content then its better to use #includeTopic. Is that right, Ludovic ? Luis. On 7/3/05, Duke Tantiprasut <[email protected]> wrote:
what is difference between #includeForm, #includeTopic? And if possible, where can I find out other available commands?
Thanks.
Duke
-- You receive this message as a subscriber of the [email protected] list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
-- Luis Arias http://www.xwiki.com http://www.innover-entreprendre.net +33 6 14 20 87 93 mobile
participants (3)
-
Duke Tantiprasut -
Ludovic Dubost -
Luis Arias