Re: [xwiki-users] Fwd: Getting the domain name of a virtual wiki through velocity
Hi, On Thu, Sep 18, 2008 at 12:55 AM, mh [EMAIL PROTECTED] wrote: -- Forwarded message -- From: mh [EMAIL PROTECTED] Date: Wed, Sep 17, 2008 at 11:44 AM Subject: Getting the domain name of a virtual wiki through velocity To: XWiki Developers [EMAIL PROTECTED] Hi, I have an XEM set up with with several virtual wikis on it. I'm trying to get the name of the virtual xwiki though velocity. For example, say that I have a XEM instance running two virtual wikis: 1) wikiA.domain.org 2) wikiB.domain.org on a XEM called xem.domain.org Im looking for the velocity code that will return the name (domain name) when embedded in a page of one of the virtual wikis. Something like: $xwiki.getServerName() if i put that in a page in wikiA, it should return wikiA.domain.org. Likewise, if i put the same code in wikiB, it should return wikiB.domain.org I looked at the velocity code for xem.doman.org/xwiki/bin/view/WikiManager/ because it lists the actual domain names under the Domain Names column. But it just gets a list of any virtual wikis available and lists them out. This page uses the xwikimanager plugin. I looked at the api and didn't see a way to directly get the domain name of the wiki in question. Could someone please point me in the right direction? Thanks in advanced and have a great day! The domain name of a wiki is part of it's descriptor (like the owner of the wiki etc.) and you can get the descriptor using $wikimanager.getWikiFromName(wikiName). Then this Wiki object contains the list of aliasses of this wiki you can get using getWikiAliasList() if you want them all or getFirstWikiAlias() if you just want the one generally used when generating URLs like [wikiname:Sapce.Page]. Here you can find all you see when you look at XWiki/XWikiServerWikiname : owner, server, description... and some helper like serverUrl, homePageUrl etc. So to sumurize your use case in velocity (given that your wiki name is wikiname): #set($wikiDesc = $wikimanager.getWikiFromName(wikiname)) #set($wikiAlias = $wikiDesc.firstWikiAlias) the server url of wiki wikiname is $wikiAlias.serverUrl and it's home page is at $wikiAlias.homePageUrl -mh ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users Hope it helps -- Thomas Mortagne ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] target
sorry. concerning this link: http://n2.nabble.com/attach-with-target-td1097762.html i did not explained myself very good. i want for a link (attachment link) that i create in a page(not the actual attachment part from the bottom) to open in a new window.. all the office documents: .doc etc can be downloaded but pdf can be seen. i want them to be seen in a new window. so i wasn't talking about the actual attachment part, but about creating an attachment link inthe page: {attach:sthinh.pdf}/ this has to open in a new window. i was looking in the editor and tiny_mce files... a lot of them. so lost. thanks ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Treeview and Tableview
Hello! My XWikisite has two errors: 1. Treeview working properly, but subdocuments (the documents) have no link. When I ask for the link location with the right mouse button I get the message: javascript: YAHOO.widget.TreeView.getNode ( 'treeview', 23). toggle () You can see here: http://apleti.normala.hr/xwiki/bin/view/XWiki/Treeview 2.Tableview regularly works in Mozilla, but in IE table is empty. For example: http://apleti.normala.hr/xwiki/bin/view/XWiki/Tableview What could be causing these problems. I will be grateful to any help. Regards, Sime S. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] tags
hello everyone. I've been trying, without doing it, to order tags. I mean, I want all the tags to be saved in upper case, even if the user writes it in lower case. I don't want ta have games, Games or GAMES tag, I only want to have GAMES tag, and the respective pages inside of it (this is automatic). Is there any way of doing this? I've been looking the code of the page (tagedit.vm) but It's hard to me, I understand a litte what it does but i can't find the way to do what I explained. I would like to know wich code and where I have to write it to save the tags in upper case. I suppose i would only have to write the code in the creation template because when you modify a page i request the tag wich is in upper case I think. Thank you so much! _ ¡Entra en el Club oficial de Messenger y te enterarás de todas las novedades! http://www.vivelive.com/ilovemessenger ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] full-text searching and document management
Hi everybody, I'd like to know if XWiki can be used for Document Management. I need to store pdf and doc documents, giving the opportunity to search them. Is it possible? Or, is there any way to integrate any other DMS with XWiki? Thank you very much Carmelo ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] full-text searching and document management
Hi Carmelo, you can most definitely attach .doc . pdf documents to your wiki pages. Then using the Lucene search engine ( http://traduction.xwikiworkspaces.com/xwiki/bin/edit/XWSCode/Translations?editor=wiki ) you will be able to search into attached documents contents. Attached documents will show up with a specific icon in search results and their content will be indexed and searched by Lucene. Aditionally, you might want to use the live attachment grid snippet that allows you to browse all the files that have been uploaded to your wiki at any given time ( http://code.xwiki.org/xwiki/bin/view/Snippets/AllAttachmentsLiveGridSnippet ). Hope this helps, Guillaume On Fri, Sep 19, 2008 at 2:08 PM, Carmelo Saffioti [EMAIL PROTECTED] wrote: Hi everybody, I'd like to know if XWiki can be used for Document Management. I need to store pdf and doc documents, giving the opportunity to search them. Is it possible? Or, is there any way to integrate any other DMS with XWiki? Thank you very much Carmelo ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Guillaume Lerouge Product Manager - XWiki Skype ID : wikibc http://blog.xwiki.com/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] tags
You can do this with jQuery (or javascript, no matter, just change the syntax): jQuery: Then include this script after the input box: $('input#taginput').blur(function() { $(this).val($(this).val().toUpperCase()); }); JavaScript: http://www.w3schools.com/jsref/jsref_onblur.asp Quoting angel Vilardell Perez : hello everyone. I've been trying, without doing it, to order tags. I mean, I want all the tags to be saved in upper case, even if the user writes it in lower case. I don't want ta have quot;gamesquot;, quot;Gamesquot; or quot;GAMESquot; tag, I only want to have GAMES tag, and the respective pages inside of it (this is automatic). Is there any way of doing this? I've been looking the code of the page (tagedit.vm) but It's hard to me, I understand a litte what it does but i can't find the way to do what I explained. I would like to know wich code and where I have to write it to save the tags in upper case. I suppose i would only have to write the code in the creation template because when you modify a page i request the tag wich is in upper case I think. Thank you so much! _ iexcl;Entra en el Club oficial de Messenger y te enteraraacute;s de todas las novedades! http://www.vivelive.com/ilovemessenger ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users Ar cieņu, Mihails Links: -- [1] mailto:[EMAIL PROTECTED] ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] [ANN] XWiki Enterprise 1.5.2 released
The XWiki development team is pleased to announce the release of XWiki Enterprise 1.5.2. Go grab it at http://www.xwiki.org/xwiki/bin/view/Main/Download This is a quick release for important regression found in 1.5.1. Changes from 1.5.1: * XWIKI-2649 - xwiki.authentication.ldap.mode_group_sync is not always by default * XWIKI-2655 - Members of LDAP group detected with case sensitivity * XWIKI-2663 - Image plugin does not resize .gif images * XWIKI-2672 - new parseTemplate breaks setCacheDuration * XWIKI-2681 - Minor edit checkbox and default language field doesn't work * XE-301 - XE's xar has both pages with and without the .xml extension For more information see the Release notes at: http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXWikiEnterprise152 Thanks -The XWiki dev team ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] full-text searching and document management
I'm not able to see http://traduction.xwikiworkspaces.com/xwiki/bin/edit/XWSCode/Translations?editor=wiki It requires login... Hi Carmelo, you can most definitely attach .doc . pdf documents to your wiki pages. Then using the Lucene search engine ( http://traduction.xwikiworkspaces.com/xwiki/bin/edit/XWSCode/Translations?editor=wiki ) you will be able to search into attached documents contents. Attached documents will show up with a specific icon in search results and their content will be indexed and searched by Lucene. Aditionally, you might want to use the live attachment grid snippet that allows you to browse all the files that have been uploaded to your wiki at any given time ( http://code.xwiki.org/xwiki/bin/view/Snippets/AllAttachmentsLiveGridSnippet ). Hope this helps, Guillaume On Fri, Sep 19, 2008 at 2:08 PM, Carmelo Saffioti [EMAIL PROTECTED] wrote: Hi everybody, I'd like to know if XWiki can be used for Document Management. I need to store pdf and doc documents, giving the opportunity to search them. Is it possible? Or, is there any way to integrate any other DMS with XWiki? Thank you very much Carmelo ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] full-text searching and document management
Do you want to edit or only view? http://traduction.xwikiworkspaces.com/xwiki/bin/view/XWSCode/Translations Arnaud. 2008/9/19 Carmelo Saffioti [EMAIL PROTECTED] I'm not able to see http://traduction.xwikiworkspaces.com/xwiki/bin/edit/XWSCode/Translations?editor=wiki It requires login... Hi Carmelo, you can most definitely attach .doc . pdf documents to your wiki pages. Then using the Lucene search engine ( http://traduction.xwikiworkspaces.com/xwiki/bin/edit/XWSCode/Translations?editor=wiki ) you will be able to search into attached documents contents. Attached documents will show up with a specific icon in search results and their content will be indexed and searched by Lucene. Aditionally, you might want to use the live attachment grid snippet that allows you to browse all the files that have been uploaded to your wiki at any given time ( http://code.xwiki.org/xwiki/bin/view/Snippets/AllAttachmentsLiveGridSnippet ). Hope this helps, Guillaume On Fri, Sep 19, 2008 at 2:08 PM, Carmelo Saffioti [EMAIL PROTECTED] wrote: Hi everybody, I'd like to know if XWiki can be used for Document Management. I need to store pdf and doc documents, giving the opportunity to search them. Is it possible? Or, is there any way to integrate any other DMS with XWiki? Thank you very much Carmelo ___ 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] full-text searching and document management
I actually inputted the wrong link (bad copy paste). The link I originally intended to post is this one : http://code.xwiki.org/xwiki/bin/view/Applications/SearchApplication Sorry about that. Guillaume On Fri, Sep 19, 2008 at 5:22 PM, Arnaud bourree [EMAIL PROTECTED]wrote: Do you want to edit or only view? http://traduction.xwikiworkspaces.com/xwiki/bin/view/XWSCode/Translations Arnaud. 2008/9/19 Carmelo Saffioti [EMAIL PROTECTED] I'm not able to see http://traduction.xwikiworkspaces.com/xwiki/bin/edit/XWSCode/Translations?editor=wiki It requires login... Hi Carmelo, you can most definitely attach .doc . pdf documents to your wiki pages. Then using the Lucene search engine ( http://traduction.xwikiworkspaces.com/xwiki/bin/edit/XWSCode/Translations?editor=wiki ) you will be able to search into attached documents contents. Attached documents will show up with a specific icon in search results and their content will be indexed and searched by Lucene. Aditionally, you might want to use the live attachment grid snippet that allows you to browse all the files that have been uploaded to your wiki at any given time ( http://code.xwiki.org/xwiki/bin/view/Snippets/AllAttachmentsLiveGridSnippet ). Hope this helps, Guillaume On Fri, Sep 19, 2008 at 2:08 PM, Carmelo Saffioti [EMAIL PROTECTED] wrote: Hi everybody, I'd like to know if XWiki can be used for Document Management. I need to store pdf and doc documents, giving the opportunity to search them. Is it possible? Or, is there any way to integrate any other DMS with XWiki? Thank you very much Carmelo ___ 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 -- Guillaume Lerouge Product Manager - XWiki Skype ID : wikibc http://blog.xwiki.com/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Fwd: Getting the domain name of a virtual wiki through velocity
Hi, Thanks for the response. But there are still a couple issues. Here is a review of my setup again. I have a xwiki manager with a couple wikis on it. ill call the xem controller wiki controllerwiki, and the virtual wikis wikiA and wikiB This is the code im using: --- #set ($WikiManager = $xwiki.wikimanager) #set($wikiDesc = $WikiManager.getWikiFromName(wikiA)) #set($wikiAlias = $wikiDesc.firstWikiAlias) $wikiAlias -- When I put this code in a page called Test on the controller wiki, i get the following: XWiki.XWikiServerWikiA,wikiA.domain.net,XWiki.Admin but when i put this code in a page called Test in wikiA I get a stack trace. here it is: Error number 4001 in 4: Error while parsing velocity page Main.Test Wrapped Exception: Failed to evaluate content with id Test com.xpn.xwiki.XWikiException: Error number 4001 in 4: Error while parsing velocity page Main.Test Wrapped Exception: Failed to evaluate content with id Test at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:112) at com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:87) at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:272) at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:202) at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:170) at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderDocument(DefaultXWikiRenderingEngine.java:159) at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:430) at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:371) at sun.reflect.GeneratedMethodAccessor263.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) 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.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:107) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1596) at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:608) at sun.reflect.GeneratedMethodAccessor150.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) 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:107) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1596) at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:125) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:226) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115) at
Re: [xwiki-users] full-text searching and document management
Thank you, I tried Lucene search and it works fine... Is it possible to label attached documents? It could help about searching them I actually inputted the wrong link (bad copy paste). The link I originally intended to post is this one : http://code.xwiki.org/xwiki/bin/view/Applications/SearchApplication Sorry about that. Guillaume ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] forum
Hi everybody, I'd like to use XWiki Workspaces, to give a personal space for each user, with Wiki, Blog, Photos, and Files. It would be great to add a Forum too. Is it possible? If no, what do you suggest? Thank you, cheers Carmelo ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] full-text searching and document management
Hi Carmelo, Thank you, I tried Lucene search and it works fine... Is it possible to label attached documents? It could help about searching them It's not working per se right now, but I think of 2 ways you could overcome this : - easy one : upload only one attachment per wiki page and use page tags to classify them (you could give your page a name similar to the original doc's name and even add document-specific metadata on the page) - harder one : give a look at this tutorial : http://dev.xwiki.org/xwiki/bin/view/Drafts/MetadataLuceneTutorial and see whether it may help you achieve what you need (2 warnings though : it's highly technical and might not meet your needs) Hope this helps, Guillaume I actually inputted the wrong link (bad copy paste). The link I originally intended to post is this one : http://code.xwiki.org/xwiki/bin/view/Applications/SearchApplication Sorry about that. Guillaume ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Guillaume Lerouge Product Manager - XWiki Skype ID : wikibc http://blog.xwiki.com/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] forum
Hi Carmelo, Hi everybody, I'd like to use XWiki Workspaces, to give a personal space for each user, with Wiki, Blog, Photos, and Files. It would be great to add a Forum too. Is it possible? If no, what do you suggest? It certainly is possible :-) 2 possibilities : - You wait until someone contributes it (could take ages since the forum application is not planned in the XWS roadmap yet, nor in the near future) - You contribute it yourself. To do so, you'll need to look at how applications are handled by XWiki Workspaces ( useful tutorial draft available here : http://workspaces.xwiki.org/xwiki/bin/view/Drafts/WorkspacesApplicationDevelopmentTutorial ) and you could also re-use code from the Bulletin Board application available here : http://code.xwiki.org/xwiki/bin/view/Applications/BulletinBoardApplication I'd personally be really happy to see the forum application working in XWS :-) Good luck if you try to do it, tell us whether you succeeded ! Guillaume -- Guillaume Lerouge Product Manager - XWiki Skype ID : wikibc http://blog.xwiki.com/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users