Hi Jerome, On 12/18/2009 01:25 PM, Jerome Velociter wrote: > +0.5 to add "currentPage", since it's obviously missing with regard to > the other current* APIs. > > Now in the future I think we should define cleaner APIs for retrieving > infos about the model. > I propose that we wait for the discussion about new Java APIs of > xwiki-model to be a bit more advanced, then based on that see what's the > good way to have this in JS.
I agree we need to define it better. My idea was to maintain this API and rely on it and add functions and data to make it usable (minimal, of course, until we define the xwiki model), rather than go for the metatags. Thanks, Anca > > Jerome. > > On 12/18/09 11:58 AM, Anca Luca wrote: >> Hi devs, >> >> right now we have 2 ways to get (some) information about the current >> document in >> javascript: >> >> * the meta tags (which store the page, the space, the wiki, version, etc) -- >> set >> in htmlheader.vm >> * the XWiki object set in xwiki.js and filled in with info in javascript.vm >> which contains currentWiki, mainWiki, currentSpace, action, etc, but *not* >> the >> currentPage. >> >> Between the two, I propose to use the second as the 'recommended' way to get >> information about XWiki in some javascript in a document (the action, the >> wiki, >> the space, etc) and, to make it complete, to add a currentPage to it. >> >> WDYT? >> >> Thanks, >> Anca >> _______________________________________________ >> devs mailing list >> [email protected] >> http://lists.xwiki.org/mailman/listinfo/devs >> > > _______________________________________________ > devs mailing list > [email protected] > http://lists.xwiki.org/mailman/listinfo/devs _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

