Many thanks for the info: from what I gather, there is naming convention
applicable here for the plugins.
Now, what about the other members of the API interface, namely "Element" and
"User" ?
I have tried accessing methods of "Element" (getName, getBaseElement) to no
avail. The same goes for "User".
Jld.
PS: I must say Xwiki is an excellent piece of engineering design. Kudos to
the team!
-----Original Message-----
From: jeremi joslin [mailto:jeremi23@gmail.com]
Sent: August 29, 2006 04:17
To: xwiki-users(a)objectweb.org
Subject: Re: [xwiki-users] Velocity script objects mapping to XWiki API ?
On 8/29/06, Jean-Lou Dupont <xwiki(a)jldupont.com> wrote:
I have read
http://www.xwiki.org/xwiki/bin/view/DevGuide/Scripting but I can't
seem to find how the XWiki API interface is mapped to Velocity
"objects".
- I understand that $doc refers to the current document ("put" in the
Velocity "context")
- $xwiki refers to the current xwiki object etc.
but I do not understand how to access the other members of the API
interface, namely:
(from
http://build.xpertnet.biz/doc/api/com/xpn/xwiki/api/Api.html
)
AdWordsPluginApi, AlexaPluginApi, Attachment, CalendarPluginApi,
Element, FeedPluginApi, FlickrPluginApi, GooglePluginApi,
GraphVizPluginApi, IPResolverPluginApi, LDAPPluginApi, MailPluginApi,
TerraServerPluginApi, User
Any pointer would be appreciated e.g. the source file name where
"User" is "put" in the Velocity context as example.
Hi,
for example you can get the mail plugin by :
#set($mailPlugin = $xwiki.mail)
So you just put the name of the plugin after $xwiki
jeremi
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.6/430 - Release Date: 28/08/2006
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.6/430 - Release Date: 28/08/2006