Re: [xwiki-users] How to display pages linking to current document
Hi Olivier, On Sep 8, 2009, at 9:48 AM, Olivier Texier wrote: Hi all, I am looking for a way to display in the current document the browsable list of others documents linking to it. Example : - Doc A has a link to doc C - Doc B has a link to doc C In doc C, I want to have two generated links Doc A and Doc B that a user can click. This is called backlinks. You have them listed in the Information tab at the bottom. You can add them using $doc.getBacklinks() For example in velocity: #foreach($item in $doc.getBacklinks()) * [$item] #end Thanks -Vincent Is the solution a velocity or groovy script ? Many thanks, Olivier ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Selective space export
Thanks a lot for the app. That is what I was searching for! There is a space with only one page, and two attached files of 2 and 5 megas each. When I use dumping to directory only that space, I get the attached stack (at the bottom you can see the Caused by: java.lang.OutOfMemoryError: Java heap space:) Then, I tried with 1800 Megas of RAM and IT WORKED, thanks be to the paging and the swap memory. I attach the error, for the eternity, Thanks to everybody Error number 4001 in 4: Error while parsing velocity page /templates/contentview.vm Wrapped Exception: Failed to evaluate content with id [/templates/contentview.vm] com.xpn.xwiki.XWikiException: Error number 4001 in 4: Error while parsing velocity page /templates/contentview.vm Wrapped Exception: Failed to evaluate content with id [/templates/contentview.vm] at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:114) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1612) at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:655) at sun.reflect.GeneratedMethodAccessor113.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318) at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:194) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:170) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:88) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:107) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318) at org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:178) at org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:143) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1612) at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:124) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:226) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432) at javax.servlet.http.HttpServlet.service(HttpServlet.java:616) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830) at com.xpn.xwiki.plugin.webdav.DavFilter.doFilter(DavFilter.java:68) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821) at com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:96) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821) at com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:287) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568) at org.mortbay.http.HttpContext.handle(HttpContext.java:1565) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633) at
[xwiki-users] Access Oracle-DB-Tables with xWiki
Hi! We are thinking about a possible use-case-scenario using xWiki to access Oracle-Tables: Read data from a oracle-table and render it as a xWiki-document (xWiki-table), change the content of a column and save the changes into the oracle table Oracle-Table: --- xWiki-Document (Table)--- change column 'Comment' ---write changed info back in Oracle-Table ID Name Comment Is such a scenario possible to implement ? In what way could something like that be realised ? Thanks in advance Matthias ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Issue with the Import an Office document functionality
Hello, I try to import an Office (word 2003 document) with a Ç character (ALT 128). The result into the wiki page is: Ccedil;. The result is the same in UTF-8 or in ISO-8859-1. Is this due to a configuration issue or a bug? Thank's in advance for your answer. Best Regards, ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Xwiki copyright
Hi All, Is it possible with XWiki to develop a commercial environments and sell them? Thanks in advance. Best regards -- y. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Xwiki copyright
On Tue, Sep 8, 2009 at 18:16, Bey Youcefyoucef@gmail.com wrote: Hi All, Is it possible with XWiki to develop a commercial environments and sell them? Probably yes, what do you mean by commercial environments? -- http://purl.org/net/sergiu ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Xwiki copyright
Thanks Sergiu, I means: add modules, create new templates, adaptation of existing scripts, add new tables in the databasefor creating a functional environment that I may sell it. Is it possible with XWiki? Thanks in advance. y. On Tue, Sep 8, 2009 at 10:13 AM, Sergiu Dumitriu ser...@xwiki.com wrote: On Tue, Sep 8, 2009 at 18:16, Bey Youcefyoucef@gmail.com wrote: Hi All, Is it possible with XWiki to develop a commercial environments and sell them? Probably yes, what do you mean by commercial environments? -- http://purl.org/net/sergiu ___ 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] [myxwiki] new wiki request
Hello, I would like to test xwiki whether it meets requirements for my future wiki. There will be only a few texts and attachments. My user is krokosjablik. Thank you, Roman ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] [myxwiki] new wiki request
oops, the server name is booksth. Am Dienstag, den 08.09.2009, 21:02 +0200 schrieb Roman Friesen: Hello, I would like to test xwiki whether it meets requirements for my future wiki. There will be only a few texts and attachments. My user is krokosjablik. Thank you, Roman ___ 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] [myxwiki] new wiki request
Hi Roman, What about using the existing sandbox wiki to try it stuff out instead? We have 2 sandboxes: - one on the version used on xwiki.org: http://playground.xwiki.org/xwiki/bin/view/Main/ - one on the version used on myxwiki.org (2.0M4 right now): http://playground.myxwiki.org/xwiki/bin/view/Main/ The xwiki.org sandbox is reset every day to keep it clean while we're not yet doing this with the myxwiki.org one (but we should). Thanks -Vincent PS: We don't normally create wikis on myxwiki.org just to try stuff out. On Sep 8, 2009, at 9:05 PM, Roman Friesen wrote: oops, the server name is booksth. Am Dienstag, den 08.09.2009, 21:02 +0200 schrieb Roman Friesen: Hello, I would like to test xwiki whether it meets requirements for my future wiki. There will be only a few texts and attachments. My user is krokosjablik. Thank you, Roman ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Video Macro and XWiki 2.0 M4
Hi, I just installed Xwiki and Video Macro (uploaded and imported it as described in the video macro page). As a result of including the following code: {{velocity}} #includeMacros(Macros.Video) {{/velocity}} {{velocity wiki=false}} #video(http://www.dailymotion.com/video/xr04b_xwiki-round-the-world;) {{/velocity}} In the rendered page viewed with firefox I get : p/ div style=border: 1px solid #000; width: 520px; height: 411px;object width=520 height=411param name=movie value=http:~// www.dailymotion.com/swf/xr04bv3=1related=0/paramparam name=allowFullScreen value=true/paramparam name=allowScriptAccess value=always/paramembed style=border: 1px solid #000; src=http:~// www.dailymotion.com/swf/xr04bv3=1related=0 type=application/x-shockwave-flash width=520 height=411 allowFullScreen=true allowScriptAccess=always/embed/object/div p/ Note: this not the result of viewing the source code, this is how the final page looks like. I guess the problem is xwiki is not using the result of executing the macro as part of the source code of the page. I have also tried setting the wiki flag to true. Can anyone give me some piece of advice? thanks. arturo ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] no acces to POST data via $request.getName
I would like to grep some data from a file upload, but can't find a way to do it. Here are a simple example {{velocity}} #foreach($prop in $request.getParameterNames()) request.$prop #end {{html}} form action= enctype=multipart/form-data method=post div fieldset legendAttach files to this document/legend div input name=a value= size=40 type=text input name=b value= size=40 type=file input name=c value= size=40 type=text /div div input value=Attach class=button type=submit input value=Cancel class=button type=reset /div /fieldset /div /form {{/html}} {{/velocity}} It returns request.a request.c What happened to 'b', is et a bug or a feature? Are there any way to access the value of 'b'? I've been looking at the java code but haven't found anything claiming it should be gone. -Rune ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] no acces to POST data via $request.getName
On Tue, Sep 8, 2009 at 23:32, Rune Hyllebergr...@dpu.dk wrote: I would like to grep some data from a file upload, but can't find a way to do it. Here are a simple example form action= enctype=multipart/form-data method=post input name=b value= size=40 type=file What happened to 'b', is et a bug or a feature? Are there any way to access the value of 'b'? The problem is that b is a file input, and it is not possible to access uploaded files this way. This is a limitation of the servlet request object, outside the scope of Velocity or XWiki. You could use the FileUploadPlugin to access uploaded files instead. http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/plugin/fileupload/FileUploadPluginApi.java -- http://purl.org/net/sergiu ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Video Macro and XWiki 2.0 M4
Can you look at the HTML source of the document and see what was generated? In the first example I saw that the URLs were escaped, as in http:~// instead of http:// On Tue, Sep 8, 2009 at 22:22, Arturo Zambranoarturo.zambr...@gmail.com wrote: Thanks Vincent. Now it shows an empty flash player box (screenshot attached), but no video is viewed (I 've checked the urls). I tried both dailymotion and youtube. Here is the code. {{velocity}} #includeMacros(Macros.Video) {{/velocity}} {{velocity}} {{html}}#video(' http://www.dailymotion.com/video/xr04b_xwiki-round-the-world'){{/html}} {{/velocity}} {{velocity}} {{html}}#video('http://www.youtube.com/v/p6vqcUTzPiwhl=enfs=1;'){{/html}} {{/velocity}} Is anything I missed? thanks again. arturo On Tue, Sep 8, 2009 at 4:39 PM, Vincent Massol vinc...@massol.net wrote: Hi, On Sep 8, 2009, at 9:31 PM, Arturo Zambrano wrote: Hi, I just installed Xwiki and Video Macro (uploaded and imported it as described in the video macro page). As a result of including the following code: {{velocity}} #includeMacros(Macros.Video) {{/velocity}} {{velocity wiki=false}} #video(http://www.dailymotion.com/video/xr04b_xwiki-round-the-world;) {{/velocity}} In the rendered page viewed with firefox I get : p/ div style=border: 1px solid #000; width: 520px; height: 411px;object width=520 height=411param name=movie value=http:~// www.dailymotion.com/swf/xr04bv3=1related=0/paramparam name=allowFullScreen value=true/paramparam name=allowScriptAccess value=always/paramembed style=border: 1px solid #000; src=http:~// www.dailymotion.com/swf/xr04bv3=1related=0 type=application/x-shockwave-flash width=520 height=411 allowFullScreen=true allowScriptAccess=always/embed/object/ div p/ Note: this not the result of viewing the source code, this is how the final page looks like. I guess the problem is xwiki is not using the result of executing the macro as part of the source code of the page. I have also tried setting the wiki flag to true. Can anyone give me some piece of advice? The video macro you mention is a velocity macro written for the 1.0 syntax and it thus generate HTML. Thus in syntax 2.0 you need to wrap it in the html macro. {{velocity}}{{html}} #video() {{/html}}{{/velocity}} In the future we'll either create a java macro for it or a wiki macro. For creating wiki macros, see: http://platform.xwiki.org/xwiki/bin/view/DevGuide/WikiMacroTutorial This allows you to not have to add the includeMacros and it'll make the macro avail in the wysiwyg editor too. -- http://purl.org/net/sergiu ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users