[xwiki-users] Obtaining a XWikiContext
Hi, for one of our projects, we're creating a XWiki component, based upon this documentation (http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents). In documentation, it is said we can access the XWikiContext, which is also said to be deprecated. Considering that, and the fact we're running in XWiki 7.0, what is the best way to get incoming request parameter ? Thanks ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Create Javascript application in XWiki
Thanks for all your replies, Vincent and Thomas. I'm quite ... worried by the fact to directly put my webjars dependencies in WEB-INF/lib, directly or through Advanced Search, as it would prevent me to have explicit link between the JS lib and the place where it is used. What I fear is the WEB-INF/lib folder becoming kind of messy, with all JS dependencies dropped there without proper usage identification, and a zealous sysadmin coming there and purging the folder aggresively. Have you got any kind of best practices to avoid that ? Le 24/03/2015 11:16, vinc...@massol.net a écrit : On 24 Mar 2015 at 11:12:54, vinc...@massol.net (vinc...@massol.net(mailto:vinc...@massol.net)) wrote: Hi Nicolas, On 23 Mar 2015 at 16:33:55, Nicolas Delsaux (nicolas.dels...@gmx.fr(mailto:nicolas.dels...@gmx.fr)) wrote: I would like to create a Javascript application in XWiki. My precise goal is to go get some content from Jenkins (build status) and render it over a static image using d3.js or any other rich rendering framework. I suppose the only way to implement that is to write my webpage as HTML. But, then, how will I use external frameworks ? (typically d3.js) Regarding D3js you have an example here: http://extensions.xwiki.org/xwiki/bin/view/Extension/D3+Example And there’s even a macro here (not tried it myself): http://extensions.xwiki.org/xwiki/bin/view/Extension/d3js Just a note: these examples were written prior to us having the webjar integration support. So with webjars, it’s even easier and you don’t need to include d3js in an XWiki Object anymore. You can just put the webjar in WEB-INF/lib and it’ll be usable. See http://extensions.xwiki.org/xwiki/bin/view/Extension/WebJars+Integration Thanks -Vincent Hope it helps -Vincent Thanks -- Nicolas Delsaux ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Create Javascript application in XWiki
Le 24/03/2015 11:24, vinc...@massol.net a écrit : If you’re doing dev and writing an extension for your code then all you need is add a dependency to the webjar in your extension’s POM and then install it through the Extension Manager and it won’t go in WEB-INF/lib :) Oh, I see, you're enforcing good practices by making sure any other practice will be a tremendous pain. Nicely done ;-) (I'm not joking on you, I really find it is the right way) -- Nicolas Delsaux ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Defining dependencies was Re: Create Javascript application in XWiki
OK I however have another question on that topic. As a Java dev, I'm quite fond of Webjars as they provide me a way to make sure which version of a Javascript I use. I've seen that XWiki can integrate webjars (http://extensions.xwiki.org/xwiki/bin/view/Extension/WebJars+Integration) but, as far as I understand, it's only available when writing extensions ... When writing that, I realize the same question can be asked about Groovy : if I try to use a dependency using Groovy grapes, will it work ? It seems to me it won't work, but can anyone confirm ? Le 23/03/2015 17:09, Eduard Moraru a écrit : Hi Nicolas, Typically, the flow is the following: 1. You create a page and the markup (wiki syntax + additional HTML if you need form UI elements or if you can not reuse property displayers from velocity, e.g. $doc.display('someProperty', 'edit') [1] ) 2. You add a skin extension [2] object to that document where you add your CSS and JS needs 3. Inside that JSX object you can depend on 3rd party libraries using the recommended require.js approach [3] or anything else that suites you 4. Profit More such information is available on the dev guide's tutorials and resources page [4]. Hope this helps, Eduard P.S.: Regarding javascript, be aware that we are currently moving away from Prototype.js and towards jQuery, but a lot of documentation still talks about how to do things with Prototype.js, you just need to digg deep enough to find the jQuery alternatives, figure them out, ask people for help and, document back your findings (on xwiki.org pages) so that you can help others in your same situation :) -- [1] http://platform.xwiki.org/xwiki/bin/view/DevGuide/API [2] http://extensions.xwiki.org/xwiki/bin/view/Extension/Skin+Extension+Plugin [3] http://platform.xwiki.org/xwiki/bin/view/DevGuide/JavaScriptAPI#HRequireJSandjQueryAPIs [4] http://platform.xwiki.org/xwiki/bin/view/DevGuide/ On Mon, Mar 23, 2015 at 5:33 PM, Nicolas Delsaux nicolas.dels...@gmx.fr wrote: I would like to create a Javascript application in XWiki. My precise goal is to go get some content from Jenkins (build status) and render it over a static image using d3.js or any other rich rendering framework. I suppose the only way to implement that is to write my webpage as HTML. But, then, how will I use external frameworks ? (typically d3.js) Thanks -- Nicolas Delsaux ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Synchronize two XWiki installations
Hi, As I tried XWiki, I used my laptop as server with the Windows standalone install. Now, I want to have XWiki installed on a standard server with a standard DB/web server using the XWiki RPM (I guess this RPM will not install Jetty/SQLite, but Tomcat/??). But, I would better not have to reinstall the various extensions, recreate the users (with the same login/passwords) and rewrite the pages I already have. Is there any synchronisation mechanism available that would allow me to give the official XWiki my prototype one as a kind of upstream server and make sure their content and config is synchronized ? Thanks -- Nicolas Delsaux ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] RE Suggestions for new Photo Albulm Xwiki
Can't help to wonder ... Photos are metadata-rich files : IPTC, EXIF, and so on. Will your extension extract those metadata and display them (allowing easy use of those tags) ? Le 21/03/2015 08:01, Hamster a écrit : Great idea guys! There are several Photo/Pictures Extensions available in XWiki, but maybe you guys can combine the best of those (and add some fancy stuff like transitions to it) Lightbox Macro http://extensions.xwiki.org/xwiki/bin/view/Extension/Lightbox+Macro Gallery Macro http://extensions.xwiki.org/xwiki/bin/view/Extension/Gallery+Macro Photo Album Macro http://extensions.xwiki.org/xwiki/bin/view/Extension/Photo+Album+Macro Photo Album Application http://extensions.xwiki.org/xwiki/bin/view/Extension/Photo+Album+Application If you guys have some spare time, maybe you could also look into creating an Organogram With Pictures Extension :-) Something like: http://www.organogramtemplate.org/organogram-template-with-photos.html -- View this message in context: http://xwiki.475771.n2.nabble.com/Suggestions-for-new-Photo-Albulm-Xwiki-tp7594318p7594395.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Create Javascript application in XWiki
I would like to create a Javascript application in XWiki. My precise goal is to go get some content from Jenkins (build status) and render it over a static image using d3.js or any other rich rendering framework. I suppose the only way to implement that is to write my webpage as HTML. But, then, how will I use external frameworks ? (typically d3.js) Thanks -- Nicolas Delsaux ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] integrating data from JSPWiki/DokuWiki/mediawiki
Le 19/03/2015 16:10, vinc...@massol.net a écrit : Nice choice! :) Yeah, for now, as I'm only evaluating it, I'm rather happy. Yes, this is an old script written a long time ago (not by me, I just made it available on that page ;)), before XWiki Rendering (see http://rendering.xwiki.org) existed. I have no idea how well it works. My concern about this script is that its status regarding full wiki import is ... undetermined. So to summarize, we’re lacking some nice migrators to migrate from all those wikis to XWiki. We only have scripts maintained by the community. Now we’ve put in place all the infrastructure for such a migrator. We call it the Filters Application (a bad name IMO but it does more than just migrate content from wiki to wikis, it accepts any input and any output). See http://extensions.xwiki.org/xwiki/bin/view/Extension/Filter+Application Right now this Filters app supports only a few input/outputs: http://extensions.xwiki.org/xwiki/bin/view/Extension/Filter+Module#HExistingmodules Since there’s a confluence input module, it means you can give this Filter app a confluence zip as input and as output you can put an XWiki instance and it’ll import the content. So, from what I understand, my best solution would be to write extensions to the filter module supporting JSPWiki and Dokuwiki. I could/should rely upon the Rendering framework which seems to understand both syntaxes with ease. Am I right ? And if so, what would be, to your mind, the estimated duration of such a development ? Thanks anyway for the answer. -- Nicolas Delsaux ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] give all users the programming right
According to XWiki documentation, all non Velocity scripting languages are only allowed to be used by sers having the programming rights. Does it means a groovy macro can only be used if I have the programming role ? If so, is it possible to have all users granted those rights automatically ? -- Nicolas Delsaux ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] integrating data from JSPWiki/DokuWiki/mediawiki
Hi, I'm in organization where we have 3 unsynchronized wikis, implemented using the software named in subject (ie JSPWiki/DokuWiki/mediawiki). I would like to merge their content in one unique wiki, obviously implemented using XWiki (due to the excellent interview Vincent Massol and Ludovic Dubost gave to the castcodeurs podcast). I have seen there are extensions to have content of those legacy wiki imported into XWiki. However, i'm not sure I understand how they work. 1 - JSPWiki to XWiki There seems to be an old (?) extension at http://extensions.xwiki.org/xwiki/bin/view/Extension/JSPWiki+To+XWiki+Conversion, documented by Vincent Massol. From what I understand, the Java code in this extension has to be compiled independently, and run as a stand-alone program on the machine hosting the JSPWiki server. It will generate a XAR that can be injected into XWiki. Am I right ? If so, it is hardly an extension of XWiki, but rather a companion program (but I'm nitpicking). However, as a stand-alone program, isn't it available as an executable JAR somewhere ? 2 - Dokuwiki to XWiki This time, it's a valid XWiki extension : http://extensions.xwiki.org/xwiki/bin/view/Extension/Import+DokuWiki+into+XWiki+Application which is easily installable using Extension manager (cool !). However, I wonder how it will work with XWiki 6.4.2 ... 3 - mediawiki to XWiki This time ... it seems like there is no extension. or is it ? bonus - xwiki-OLD to xwiki We also have some content in an old (5.0.1) version of XWiki. How do I migrate ? Conclusion - cheers I must confess I had never tried before XWiki, and my first impression is that it's a robust and perfectly usable wiki solution. The XWiki team did a really impressive work. -- Nicolas Delsaux ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users