Re: [xwiki-users] struggling to understand panels expanding initial state
Thanks Raluca! Please, see below. On 3/7/11 7:51 AM, Raluca Stavro wrote: Hello, On Mon, Mar 7, 2011 at 12:39 AM, Ricardo Rodriguez [eBioTIC.] ricardo.rodrig...@ebiotic.net mailto:ricardo.rodrig...@ebiotic.net wrote: Hi all! I'm still struggling to understand how expanded/collapsed state of panels do work. I'm currently using a 2.4.30451 XE/XEM installation. Looking for macros controlling this state in macros.vm, I see: *** #macro(panelheader $title) #set($cookieName = ${context.user.replaceAll(':','')}_${panel}) #set($expanded = $xwiki.getUserPreferenceFromCookie($cookieName)) #if(!$expanded) #set($expanded = 'expanded') #end ## Note: We pass the Panel name as an HTML class attribute so that it's possible to style ## the Panels selectively using CSS. #set ($specialClassAttribute = ) #if ($paneldoc $paneldoc != ) #set ($specialClassAttribute = $util.convertToAlphaNumeric($paneldoc.name http://paneldoc.name)) #end div class=panel $expanded $specialClassAttribute h1 class=xwikipaneltitle onclick=togglePanelVisibility(this.parentNode, '${cookieName}');$title/h1 div class=xwikipanelcontents #end *** This macro creates an expanded panel. By clicking the panel title, the system creates a cookie that stores her current state. But if I modify this macro and says... #if(!$expanded) #set($expanded = 'collapsed') #end No macro is created and panels are always collapsed when loaded and after relaoding. That is because 'collapsed' is used as a class name for the panel dom element and there is also a CSS rule which says that panels with 'collapsed' class name are being displayed as collapsed. So, the default logic is like this: 1) take the $expanded value from a cookie 2) set the panel dom element class name as being the value of $expanded 3) on loading the page, with the help of CSS, display the panel as being 'collapsed' or 'expanded', depending on the value of $expanded And in your case, this is the logic: 1) set the value of $expanded as being 'collapsed' 2) set the panel dom element class name as being the value of $expanded (which is 'collapsed') 3) on loading the page, with the help of CSS, display the panel as being 'collapsed', this being the value of $expanded I hope that this helps you understand the logic behind 'collapsed' and 'expanded' panels. Raluca. Yes, it helps. Thus, to control the initial state of a panel (collapsed or expanded) the first time I load a page (no cookie has been set for that panel) what I need is to create a cookie with the desired value. Please, is this correct? If yes, could you point me to the best way of creating that cookie at loading time? Thanks!!! Please, could you me understand why? Thank you so much!!! Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org mailto:users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] struggling to understand panels expanding initial state
Hi all! I'm still struggling to understand how expanded/collapsed state of panels do work. I'm currently using a 2.4.30451 XE/XEM installation. Looking for macros controlling this state in macros.vm, I see: *** #macro(panelheader $title) #set($cookieName = ${context.user.replaceAll(':','')}_${panel}) #set($expanded = $xwiki.getUserPreferenceFromCookie($cookieName)) #if(!$expanded) #set($expanded = 'expanded') #end ## Note: We pass the Panel name as an HTML class attribute so that it's possible to style ## the Panels selectively using CSS. #set ($specialClassAttribute = ) #if ($paneldoc $paneldoc != ) #set ($specialClassAttribute = $util.convertToAlphaNumeric($paneldoc.name)) #end div class=panel $expanded $specialClassAttribute h1 class=xwikipaneltitle onclick=togglePanelVisibility(this.parentNode, '${cookieName}');$title/h1 div class=xwikipanelcontents #end *** This macro creates an expanded panel. By clicking the panel title, the system creates a cookie that stores her current state. But if I modify this macro and says... #if(!$expanded) #set($expanded = 'collapsed') #end No macro is created and panels are always collapsed when loaded and after relaoding. Please, could you me understand why? Thank you so much!!! Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] -[Fixed] - Blog main page only displays a link 'Read the Full Entry'
Hi! Young Gu wrote: Hi Ricardo, Wow, it's okay now, thanks very very much, awesome work. It's the problem of the Extract field, there is blank line within this filed, we can see it when edit with Objects mode. Glad to help. Now the only question is that why the system automatic add one blank line to the Extract field? I am sure I edit all posts with default edit Inline Form, I don't use Objects mode to edit it. I would like to try to figure out the reason when possible, thanks. I've made a number of trials and never got content automatically added to a database field. It could be an issue related with the update process, but I usually consider myself able of doing the most weird things even though I thought I've done nothing :-) In any case, I'll pay attention to this issue and come back to this thread if something catch my eye! Thanks Ricardo, thanks for your time, I really appreciate your help. :-) Please be free to contact with me for any question or suggestion. Thanks Best Regards . Young Gu | Software Engineer | http://www.infor.com On 1/5/2011 7:48 AM, Ricardo Rodriguez [eBioTIC.] wrote: Hi again! Ricardo Rodriguez [eBioTIC.] wrote: Hi! Young Gu wrote: Hi Ricardo, Thanks for your help, sorry for my confusing description. Just as we knows, the blog main page will aggregate posts and display a summary when we access blog application, and for long post, there will be a Read the Full Entry link to view the entire post content. such as : Upgrading to Xwiki 2.6 http://localhost:18080/wiki/bin/view/Blog/Upgrading+to+Xwiki+26 Good news, I have upgraded my wiki to the latest stable version 2.6 from the version 2.0-milestone-1.*CONGRATULATIONS*. The new version of xwiki is more beautiful and more powerful, which provide several out of box skin and, also, you still customise your own skin. It's so funny!!! Thanks xwiki team! Good Job! ... http://localhost:18080/wiki/bin/view/Blog/%E4%BD%8F%E5%AE%85%E5%9C%B0%E5%9D%80%E4%B9%9F%E8%A2%AB%E5%A2%99 But unfortunately, currently, the new post which I have just created don't display the summary on the blog main page, just display a 'Read the Full Entry' link with three dots, such as the blow post. And other old posts work fine, display both summary and the link, such as the above post. I have never edit the blog main wiki page, I don't know what's going on. Thunderbird Work Again for Gmail http://localhost:18080/wiki/bin/view/Blog/Thunderbird+Work+Again+for+Gmail ... http://localhost:18080/wiki/bin/view/Blog/Thunderbird+Work+Again+for+Gmail Does I miss some configuration for the blog application? BTW: the attachment of my previous email is just a screen capture of my blog main page, the content is similar with the above. And sorry for that I don't have Internet address for my wiki, I am just using it for investigating the xwiki for my self. Thanks for your time. Please be free to contact with me for any question or suggestion. Thanks Best Regards, Young Gu | Software Engineer | www.infor.com I'm afraid I can not be of any help here. Any of your links is available from the net and I don't understand what is happening to you. Please, take just xwiki.org Blog as a reference and try to explain what is happening there. Or send the screenshots directly to me. Following the message you have sent directly to me. Here your snapshot: http://ebiotic.net/bin/download/XWiki/YoungGu/xwiki-blog-read-full-entry.png And here a way of reproducing it. Check the last entry: http://ebiotic.net/bin/Blog/ Please, could you edit the in trouble entries in object mode and check the content of the summary/extract field? In the sample I've created, the content of this field is just a space. XWiki detects some content and ellipsis is shown even though this field has not actual contents. Thanks! On 01/03/2011 06:41 AM, Ricardo Rodriguez [eBioTIC.] wrote: Hi, Young Gu! Young Gu wrote: Hi All, I got a problem with my xwiki blog, all of the created new post just display a link 'Read the Full Entry' within the main blog page, don't display the content of post, but the post which I created two weeks ago can be display correct. I didn't updated any blog related document such as Blog.BlogSheet and Blog.BlogCode. Does anyone get this problem or knows how to fix it? Please help me, I am a stranger with xwiki although I like it. I've just tried in a couple of installations running here to see if any problem could be derived from the change of the year and all is running fine as far as I see. So, please, could you describe your environment to help other to identify the problem? Please refer to attachment for details, Thanks. Sorry, attachments
Re: [xwiki-users] [request] Comparing XWiki to other solutions
Hi! Peter McLarty wrote: On this note, it would be right to put a link to Wikimatrix http://www.wikimatrix.org/ It is partly because of there that I chose Xwiki for our Office. If you add Drupal, what other CMS systems get a nod as well, perhaps they could be a separate grouping. Where does a product like Liferay fit in? Sort of a near too but not quite a wiki group, if you were not aware Liferay has a wiki built in. I would add to the page but I dont have a log in for Xwiki.org You can register yourself in xwiki.org to be able to edit this and most of the available documents! :-) As for WikiMatrix, I do agree with Vicent and Sergiu and I'm not sure if we have a clear idea about what this thread is for. The original objective was: we would like to polish XWiki based on features available at other solutions and that we would like to have them available within XWiki. For doing this it is obvious that we need to know this other alternative and be able to describe what feature we would like to be developed in XWiki. If this is true, won't be better to complete the survey on XWiki features available at... http://www.xwiki.org/xwiki/bin/view/Main/SurveyXWikiFeatures ... allowing to add an example of a different product including it? For instance, compare these entries: Microblogging (twitter-like in your wiki) Form Builder (easily create forms in XWiki) The first one includes an example: ala Twitter. The second, doesn't. The idea is to allow users to enter products they are thinking about when requiring/ranking a new feature. I think I'm just following a previous message from Sergiu and adding a reference to this already available survey. I think also that it would be useful to add categories to that features definitions and, by the end, we will end with some kind of wizard leading to a Collaborative Environment Choice Wizard ala WikiMatrix's Wiki Choice Wizard :-) WikiMatrix compares only a very limited set of features not including, as far as I see, application development and all those rich features allowing XWiki to compete, for instance, with CMS or social network software. We are not working on a classical wiki, we are working on a development framework based on wiki philosophy. Thanks! Cheers Peter On 04/01/2011, at 9:47 PM, Vincent Massol wrote: Hi Gregory, As Emilie said, could you start a page in the draft space (a single page should be enough for now)? http://dev.xwiki.org/xwiki/bin/view/Drafts/ Some ideas to put in that page: Wiki solutions: * Atlassian Confluence * Foswiki * TWiki * Mindtouch DekiWiki * MediaWiki * TikiWiki Others: * Drupal (competes mostly on the web site/intranet domain) * Exo Platform (on the WCM part for web site creation), see CMS vs Wiki at http://www.slideshare.net/xwiki/wiki-vs-cms-1714023 * Social Text * Jive * Google Site * Google Docs Thanks -Vincent On Mon, Dec 20, 2010 at 9:25 AM, Gregory GUENEAU gguen...@me.com wrote: Hi everyone, I'd like to compare XWiki to other solutions out there in order to better understand where XWiki would need to be polished. I'd then propose to work on listing these areas, proposing them on the list for future roadmaps and I'm also willing to work on investigating these features, then i will start discussion thread on them so that we reach a consensus on how we would view these features developed in XWiki Enterprise. If you know of them, could you please list solutions that I could compare XWiki with, by providing URLs to them and explain why you think they could be compared to XWiki. Note that the solutions you list can be either open source or not. Example: Lotus Notes http://www-01.ibm.com/software/lotus/products/notes/ Lotus notes has easy apps abilities close to XWiki abilities in term of App creation within a page. On some RFP XWiki is a challenger of Lotus Notes. Thank you. Grégory GUENEAU | skype : chronopolys | profile : http://fr.linkedin.com/in/gregorygueneau ___ 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 -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Blog main page only displays a link 'Read the Full Entry'
Hi! Young Gu wrote: Hi Ricardo, Thanks for your help, sorry for my confusing description. Just as we knows, the blog main page will aggregate posts and display a summary when we access blog application, and for long post, there will be a Read the Full Entry link to view the entire post content. such as : Upgrading to Xwiki 2.6 http://localhost:18080/wiki/bin/view/Blog/Upgrading+to+Xwiki+26 Good news, I have upgraded my wiki to the latest stable version 2.6 from the version 2.0-milestone-1.*CONGRATULATIONS*. The new version of xwiki is more beautiful and more powerful, which provide several out of box skin and, also, you still customise your own skin. It's so funny!!! Thanks xwiki team! Good Job! ... http://localhost:18080/wiki/bin/view/Blog/%E4%BD%8F%E5%AE%85%E5%9C%B0%E5%9D%80%E4%B9%9F%E8%A2%AB%E5%A2%99 But unfortunately, currently, the new post which I have just created don't display the summary on the blog main page, just display a 'Read the Full Entry' link with three dots, such as the blow post. And other old posts work fine, display both summary and the link, such as the above post. I have never edit the blog main wiki page, I don't know what's going on. Thunderbird Work Again for Gmail http://localhost:18080/wiki/bin/view/Blog/Thunderbird+Work+Again+for+Gmail ... http://localhost:18080/wiki/bin/view/Blog/Thunderbird+Work+Again+for+Gmail Does I miss some configuration for the blog application? BTW: the attachment of my previous email is just a screen capture of my blog main page, the content is similar with the above. And sorry for that I don't have Internet address for my wiki, I am just using it for investigating the xwiki for my self. Thanks for your time. Please be free to contact with me for any question or suggestion. Thanks Best Regards, Young Gu | Software Engineer | www.infor.com I'm afraid I can not be of any help here. Any of your links is available from the net and I don't understand what is happening to you. Please, take just xwiki.org Blog as a reference and try to explain what is happening there. Or send the screenshots directly to me. On 01/03/2011 06:41 AM, Ricardo Rodriguez [eBioTIC.] wrote: Hi, Young Gu! Young Gu wrote: Hi All, I got a problem with my xwiki blog, all of the created new post just display a link 'Read the Full Entry' within the main blog page, don't display the content of post, but the post which I created two weeks ago can be display correct. I didn't updated any blog related document such as Blog.BlogSheet and Blog.BlogCode. Does anyone get this problem or knows how to fix it? Please help me, I am a stranger with xwiki although I like it. I've just tried in a couple of installations running here to see if any problem could be derived from the change of the year and all is running fine as far as I see. So, please, could you describe your environment to help other to identify the problem? Please refer to attachment for details, Thanks. Sorry, attachments are filtered out by the list service. Please, could you upload the image/file somewhere in a accessible server and send us a link? Even better, is your server accessible from the Internet? I think it could help if we could see the actual server in action. Thanks! Greetings, Ricardo ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] [request] Comparing XWiki to other solutions
Hi! Vincent Massol wrote: Hi Gregory, As Emilie said, could you start a page in the draft space (a single page should be enough for now)? http://dev.xwiki.org/xwiki/bin/view/Drafts/ Some ideas to put in that page: Wiki solutions: * Atlassian Confluence * Foswiki * TWiki * Mindtouch DekiWiki * MediaWiki * TikiWiki Others: * Drupal (competes mostly on the web site/intranet domain) * Exo Platform (on the WCM part for web site creation), see CMS vs Wiki at http://www.slideshare.net/xwiki/wiki-vs-cms-1714023 * Social Text * Jive * Google Site * Google Docs May I add to others: Joomla (http://www.joomla.org/) Moodle (http://moodle.org/) OpenCMS (http://www.opencms.org) BlackBoard (http://www.blackboard.com/) Thanks! Thanks -Vincent On Mon, Dec 20, 2010 at 9:25 AM, Gregory GUENEAU gguen...@me.com wrote: Hi everyone, I'd like to compare XWiki to other solutions out there in order to better understand where XWiki would need to be polished. I'd then propose to work on listing these areas, proposing them on the list for future roadmaps and I'm also willing to work on investigating these features, then i will start discussion thread on them so that we reach a consensus on how we would view these features developed in XWiki Enterprise. If you know of them, could you please list solutions that I could compare XWiki with, by providing URLs to them and explain why you think they could be compared to XWiki. Note that the solutions you list can be either open source or not. Example: Lotus Notes http://www-01.ibm.com/software/lotus/products/notes/ Lotus notes has easy apps abilities close to XWiki abilities in term of App creation within a page. On some RFP XWiki is a challenger of Lotus Notes. Thank you. Grégory GUENEAU | skype : chronopolys | profile : http://fr.linkedin.com/in/gregorygueneau ___ 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 -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Blog main page only displays a link 'Read the Full Entry'
Hi again! Ricardo Rodriguez [eBioTIC.] wrote: Hi! Young Gu wrote: Hi Ricardo, Thanks for your help, sorry for my confusing description. Just as we knows, the blog main page will aggregate posts and display a summary when we access blog application, and for long post, there will be a Read the Full Entry link to view the entire post content. such as : Upgrading to Xwiki 2.6 http://localhost:18080/wiki/bin/view/Blog/Upgrading+to+Xwiki+26 Good news, I have upgraded my wiki to the latest stable version 2.6 from the version 2.0-milestone-1.*CONGRATULATIONS*. The new version of xwiki is more beautiful and more powerful, which provide several out of box skin and, also, you still customise your own skin. It's so funny!!! Thanks xwiki team! Good Job! ... http://localhost:18080/wiki/bin/view/Blog/%E4%BD%8F%E5%AE%85%E5%9C%B0%E5%9D%80%E4%B9%9F%E8%A2%AB%E5%A2%99 But unfortunately, currently, the new post which I have just created don't display the summary on the blog main page, just display a 'Read the Full Entry' link with three dots, such as the blow post. And other old posts work fine, display both summary and the link, such as the above post. I have never edit the blog main wiki page, I don't know what's going on. Thunderbird Work Again for Gmail http://localhost:18080/wiki/bin/view/Blog/Thunderbird+Work+Again+for+Gmail ... http://localhost:18080/wiki/bin/view/Blog/Thunderbird+Work+Again+for+Gmail Does I miss some configuration for the blog application? BTW: the attachment of my previous email is just a screen capture of my blog main page, the content is similar with the above. And sorry for that I don't have Internet address for my wiki, I am just using it for investigating the xwiki for my self. Thanks for your time. Please be free to contact with me for any question or suggestion. Thanks Best Regards, Young Gu | Software Engineer | www.infor.com I'm afraid I can not be of any help here. Any of your links is available from the net and I don't understand what is happening to you. Please, take just xwiki.org Blog as a reference and try to explain what is happening there. Or send the screenshots directly to me. Following the message you have sent directly to me. Here your snapshot: http://ebiotic.net/bin/download/XWiki/YoungGu/xwiki-blog-read-full-entry.png And here a way of reproducing it. Check the last entry: http://ebiotic.net/bin/Blog/ Please, could you edit the in trouble entries in object mode and check the content of the summary/extract field? In the sample I've created, the content of this field is just a space. XWiki detects some content and ellipsis is shown even though this field has not actual contents. Thanks! On 01/03/2011 06:41 AM, Ricardo Rodriguez [eBioTIC.] wrote: Hi, Young Gu! Young Gu wrote: Hi All, I got a problem with my xwiki blog, all of the created new post just display a link 'Read the Full Entry' within the main blog page, don't display the content of post, but the post which I created two weeks ago can be display correct. I didn't updated any blog related document such as Blog.BlogSheet and Blog.BlogCode. Does anyone get this problem or knows how to fix it? Please help me, I am a stranger with xwiki although I like it. I've just tried in a couple of installations running here to see if any problem could be derived from the change of the year and all is running fine as far as I see. So, please, could you describe your environment to help other to identify the problem? Please refer to attachment for details, Thanks. Sorry, attachments are filtered out by the list service. Please, could you upload the image/file somewhere in a accessible server and send us a link? Even better, is your server accessible from the Internet? I think it could help if we could see the actual server in action. Thanks! Greetings, Ricardo ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Blog main page only displays a link 'Read the Full Entry'
Hi, Young Gu! Young Gu wrote: Hi All, I got a problem with my xwiki blog, all of the created new post just display a link 'Read the Full Entry' within the main blog page, don't display the content of post, but the post which I created two weeks ago can be display correct. I didn't updated any blog related document such as Blog.BlogSheet and Blog.BlogCode. Does anyone get this problem or knows how to fix it? Please help me, I am a stranger with xwiki although I like it. I've just tried in a couple of installations running here to see if any problem could be derived from the change of the year and all is running fine as far as I see. So, please, could you describe your environment to help other to identify the problem? Please refer to attachment for details, Thanks. Sorry, attachments are filtered out by the list service. Please, could you upload the image/file somewhere in a accessible server and send us a link? Even better, is your server accessible from the Internet? I think it could help if we could see the actual server in action. Thanks! Greetings, Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] [Announce] Improved FAQ Application Tutorial
Thanks! Guillaume Lerouge wrote: Hi XWikiers, in the spirit of Christmas and because I have some free time right now, I have updated the FAQ Application tutorial with 2 additions: - Explanation of how to add a template provider - makes it easier for users to create FAQ entries - Explanation of how to use a livetable as the homepage of the application - gives users more filtering options I know the FAQ application was the first one I ever wrote in XWiki a couple years back and it's still followed by many XWiki newcomers so I thought those would be 2 useful additions, since they make XWiki applications much smoother to use. Enjoy: http://platform.xwiki.org/xwiki/bin/view/DevGuide/FAQTutorial Merry Christmas (too late) and Happy New Year (too early) to everyone! In spite I've no free time right now (what is a pity because I can not follow XWiki developing process as it deserves) I would like to join Guillaume's wishes for a Happy, Peaceful, Health, Productive and really, really funny New Year! I do hope people from Excentric don't matter I past this link here even though I think that that community will grow better relying on a XWiki 3.0 based collaborative environment! http://www.youtube.com/watch?v=GkHNNPM7pJAfeature=player_embedded Happy New Year! -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Including a Google Map
Hi, Antonio Goncalves wrote: Hi all, I need to include a Google Map in a page. In XWiki 1.0 syntax I add a iframe and that works fine (http://www.parisjug.org/xwiki/bin/view/Location/ISEP) but with XWiki 2.0 syntax I can't make it work ( http://www.parisjug.org/xwiki/bin/view/Location/CIUP). I've added {{html wiki=true}} but it's the same problem. How do I add a iFrame in a XWiki 2.0 page ? Is there an easier way to add a Google Map (like a {{google map}} macro) ? Thanks, Antonio http://extensions.xwiki.org/xwiki/bin/view/Extension/Map+Macro HTH, -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Dropping support for IE6?
Hi, Vincent Massol wrote: Hi everyone, As users, I'm wondering what you'd think if we were to drop support for IE6 in the XWiki Enterprise 3.X cycle. Would that be a huge problem for you? The reason I'm asking is because supporting IE6 costs us a lot in term of extra development time and by dropping it we could be faster on other stuff. Note that this is just me asking, there's no plan about this at this point in time, I'm just curious to have some feedback, especially since support for IE6 has been dropped for lots of services and software out there (including Microsoft). Thanks -Vincent ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users No problem at all for us either! +1 to drop support for IE6 if this helps to improve other areas! Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Mediawiki syntax
Hi Mark, Mark Diggory wrote: How do I enable Mediawiki syntax in the latest snapshot of XWiki? thanks, Mark ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users I' have not checked if there is any change in the way available syntaxes are set, I don't think so. I've tried to add Mediawiki/1.0 syntax to a XE 2.7-SNAPSHOT.33319 and it works without a glitch. Just edit xwiki.cfg and add this syntax to xwiki.rendering.syntaxes list of values. HTH, Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] FAQ Tutorial Follow Up
Hi! mearv...@aol.com wrote: When I create the FAQ I get a screen that gives me the nice Wiki text input box and the Save Continue and Save View etc. buttons. If I wanted to modify this page how would I do it? How would I know where to modify such pages in the future so I'm not clogging up the email group with newbie questions? Some thing as simple as click the Edit button? Perhaps I'm missing something, but to edit a FAQ entry is so simple as clicking the Edit button in the actions bar. Ultimately I'd like to give users of a space the ability to create a tree structure for classifying their FAQs. For example, one FAQ may be related to food and one FAQ may be related to computers. I'd like to add some sort of tree hierarchy for sorting/storing the FAQs. Perhaps you can find something useful here... http://extensions.xwiki.org/xwiki/bin/view/Main/#|t=extensionsp=1l=30s=doc.creationDated=descdoc.name=tree Thanks ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users Greetings, Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Lucene and log4j
Hi! Please, what how could I set XWiki to log Lucene messages at debug level? Thanks! Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Lucene and log4j
Hi! Paul Libbrecht wrote: Ricardo, do you have a log4.properties already existing? I have mine (probably extracted from some xwiki-core-xx.jar, in WEB-INF/classes so I can modify it (it needs to be in the root package). Then I added: log4j.logger.com.xpn.xwiki.plugin.lucene=debug This was for xwiki-1.5 but I think the class is very similar still now. Up and running! Thanks! Just curiosity, please, why must we extract log4j.properties in WEB-INF/classes? Is this the way the version included in xwiki-core-xx.jar gets overwritten? Just to avoid that if you eventually extracts it again can accidentally overwrite a customized copy located in WEB-INF/lib? I think I don't understand your sentence (it needs to be in the root package). Thanks! Ricardo paul Le 12 déc. 2010 à 12:18, Ricardo Rodriguez [eBioTIC.] a écrit : Please, what how could I set XWiki to log Lucene messages at debug level? Thanks! ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] lightbox and lucene
Hi! Paul Harris wrote: Hi, I had a look in the logs for something else and noticed this: 2010-12-08 16:29:50,190 [Lucene Index Updater] WARN lucene.AttachmentData - error getting content of attachment [cat2.jpg] for document [xwiki:XWiki.LightboxMacro] org.apache.tika.exception.TikaException: Can't read JPEG metadata at Tika (http://tika.apache.org) detects and extracts meta information for Lucene (the search engine XWiki is using) from a number of supported formats. It support JPGs. LightboxMacro includes two JPGs files: cat.jpg and cat2.jpg. Cat2.jpg contents much more meta information than cat.jpg (Device make, Device model, Profile name, Focal length and other stuff). By using XWiki Enterprise 2.7-SNAPSHOT.33319, I see the same error while Lucene is indexing cat2.jpg: cat.jpg gets indexed. cat2.jpg fails when extracting meta information. No errors when indexing other jpg files with much more information than cat2.jpg. I don't know yet how to know what field is referenced as Tag 9, but it seems clear that is a problem of the file. It will be great to be able to edit this meta information field, correct it and see if things done well. org.apache.tika.parser.jpeg.JpegExtractor.parse(JpegExtractor.java:60) at org.apache.tika.parser.jpeg.JpegParser.parse(JpegParser.java:55) at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:132) at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:99) at org.apache.tika.Tika.parseToString(Tika.java:267) at com.xpn.xwiki.plugin.lucene.AttachmentData.getContentAsText(AttachmentData.java:161) at com.xpn.xwiki.plugin.lucene.AttachmentData.getFullText(AttachmentData.java:136) at com.xpn.xwiki.plugin.lucene.IndexData.getFullText(IndexData.java:190) at com.xpn.xwiki.plugin.lucene.IndexData.addDataToLuceneDocument(IndexData.java:146) at com.xpn.xwiki.plugin.lucene.AttachmentData.addDataToLuceneDocument(AttachmentData.java:65) at com.xpn.xwiki.plugin.lucene.IndexUpdater.addToIndex(IndexUpdater.java:296) at com.xpn.xwiki.plugin.lucene.IndexUpdater.updateIndex(IndexUpdater.java:237) at com.xpn.xwiki.plugin.lucene.IndexUpdater.runMainLoop(IndexUpdater.java:171) at com.xpn.xwiki.plugin.lucene.IndexUpdater.runInternal(IndexUpdater.java:153) at com.xpn.xwiki.util.AbstractXWikiRunnable.run(AbstractXWikiRunnable.java:99) at java.lang.Thread.run(Thread.java:662) Caused by: com.drew.metadata.MetadataException: Tag '9' cannot be cast to int. It is of type 'class [I'. at com.drew.metadata.Directory.getInt(Unknown Source) at com.drew.metadata.exif.CasioType2MakernoteDescriptor.getImageSizeDescription(Unknown Source) at com.drew.metadata.exif.CasioType2MakernoteDescriptor.getDescription(Unknown Source) at com.drew.metadata.Directory.getDescription(Unknown Source) at com.drew.metadata.Tag.getDescription(Unknown Source) at org.apache.tika.parser.jpeg.JpegExtractor.parse(JpegExtractor.java:54) ... 15 more something to be fixed? cheers Paul ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] FAQ Tutorial Issue
Hi! mearv...@aol.com wrote: According to this page http://platform.xwiki.org/xwiki/bin/view/DevGuide/FAQTutorial I should have an XWiki space on the default home page. It says I should be able to search for 'XWikiClasses' and find it in the XWiki space. I see neither the XWiki space under the Spaces heading nor do I get anything from the search result. Not sure if that tutorial is referencing some older version of the software or what. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users XWikiClasses together with an interesting and useful bunch of applications is included in the default XAR available at http://www.xwiki.org/xwiki/bin/view/Main/Download As it reads its description, it is a A default set of XWiki pages which you can load in an empty XWiki instance. HTH! Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] java.sql.SQLException PoolablePreparedStatment
Hi! Scardino, Leonard R Jr ERDC-ITL-MS Contractor wrote: Doing a bump if you will. Does anyone know why I'm getting the below? Lenny First of all: this message appears in my Thunderbird email client threaded with [xwiki-users] Display current date on page message. Have you use this message to post your first one on this topic? If yes, it must be avoided in the shake of clarity and to ease people willing to help you, and XWiki Community in general!, to follow independently each thread. Thanks! About the logged error. Both activitystream_events and xwikiproperties are XWiki tables, thus it seems something is going wrong when inserting in activitystream_events and when updating xwikiproperties. Well, nothing fancy to say this! :-) I do think that it is worth to create a Jira Issue (http://jira.xwiki.org) detailing what XE release are you using. The suitable place would be: http://jira.xwiki.org/jira/browse/XPAS -Original Message- From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of Scardino,Leonard R Jr ERDC-ITL-MS Contractor Sent: Thursday, December 09, 2010 5:05 PM To: XWiki Users Subject: [xwiki-users] java.sql.SQLException PoolablePreparedStatment I have a new instance of XWiki running on Tomcat 5.5 / Mysql Server 5.1. The wiki appears to be running fine, no errors being shown to the user. However, in the tomcat log I'm getting a bunch of java.sql.SQLExceptions like the following: java.sql.SQLException: org.apache.commons.dbcp.PoolablePreparedStatement with address: com.mysql.jdbc.preparedstatem...@1f07f48: insert into activitystream_events (ase_requestid, ase_stream, ase_date, ase_priority, ase_type, ase_application, ase_user, ase_wiki, ase_space, ase_page, ase_url, ase_title, ase_body, ase_version, ase_param1, ase_param2, ase_param3, ase_param4, ase_param5, ase_eventid) values (** NOT SPECIFIED **, ** NOT SPECIFIED **, ** NOT SPECIFIED **, ** NOT SPECIFIED **, ** NOT SPECIFIED **, ** NOT SPECIFIED **, ** NOT SPECIFIED **, ** NOT SPECIFIED **, ** NOT SPECIFIED **, ** NOT SPECIFIED **, ** NOT SPECIFIED **, ** NOT SPECIFIED **, ** NOT SPECIFIED **, ** NOT SPECIFIED **, ** NOT SPECIFIED **, ** NOT SPECIFIED **, ** NOT SPECIFIED **, ** NOT SPECIFIED **, ** NOT SPECIFIED **, ** NOT SPECIFIED **) is closed. and : java.sql.SQLException: org.apache.commons.dbcp.PoolablePreparedStatement with address: com.mysql.jdbc.preparedstatem...@cbe525: update xwikiproperties set XWP_CLASSTYPE=** NOT SPECIFIED ** where XWP_ID=** NOT SPECIFIED ** and XWP_NAME=** NOT SPECIFIED ** is closed. I looked around the archive and didn't see anything. I'm concerned that this is important even though it doesn't seem to be affecting the usability of the XWiki. Can anyone tell me what the deal is? Thanks, Lenny ___ 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 HTH! Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Changing the default Space
Hi Paul, Paul Harris wrote: Hi all, I want to change the primary space name from Main to Public to make it clear to wiki users who is going to have access to the info in that space. I've tried changing every mention of Main to Public in the WEB-INF directory, restarting jetty and refreshing the webbrowser, and STILL it redirects to Main. I've adjusted web.xml, portlet.xml, struts-config.xml, xwiki.cfg is this hard-coded into XWiki? I'm not able to answer your question but why not create a new space Public and redirect calls to the default space to there? Simply put this in your Main.WebHome... {{velocity}} $response.sendRedirect($xwiki.getURL('Public.WebHome')) {{/velocity}} Of course this not solved your doubt, but could be used as a workaround. I've tried to use xwiki.defaultweb to set a different space when the URL doesn't include one and it doesn't work for me either (XE 2.7-SNAPSHOT.33223) thanks Paul ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users HTH, Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] WARN xwiki.MyPersistentLoginManager - Login cookie validation hash mismatch! Cookies have been tampered with
Hi guys! Nevzat Guler wrote: Hi Ricardo, Mark and company, I discovered that, there are specific computers I can connect from. Mark, can you try some other computer you have not used before and see if that connects? I still don't know what the issue is though.. Best regards, - Nevzat I'm completely lost with this issue. Mark, Nevzat, are you both working at the same location? Nevzat is running the server in troubles. Is this correct? If yes, Mark, are you trying to login into the same server? Well, I don't know if I could be of any help, but here two proposals: 1. Create an account for me and I try to login into your server from several locations looking for a path. 2. I'll create an account for you in a couple of XWiki installations here and you will try lo login into it both from the boxes able to login into the server in troubles and those which are not able to log into it. We'll record S.O. and internet browser on each of them. 3. Are you able to login into XWiki.org from any of those boxes? HTH! On Tue, Dec 7, 2010 at 2:58 PM, Ricardo Rodriguez [eBioTIC.] ricardo.rodrig...@ebiotic.net wrote: Hi! markblokpoel wrote: Hi Ricardo, Thank you for your reply. When I was setting up xwiki I was at work (same network as the xwiki server). At that time everything was working perfectly, even more everything is still working perfectly when I use the xwiki from work. I just can't login from other places outside my work network. I tried the superadmin account, it also doesn't work from outside.. but does work on the same network. This thing has me baffled.. Maybe I'll try a re-deployement of the wiki this afternoon and see if that works. Best, Mark -- Radboud University Nijmegen But, have you ever been able to login from the outside world? If not, thus, I'm not able to find an answer other than something in the protection of your network is interfering the login process. I've found this: http://jira.xwiki.org/jira/browse/XWIKI-1071 It is not the same symptom, but at least it shows that things will go wrong when a firework rejects cookies. Another shot: are you using the same box when accessing from outside the network where the server is installed? Are you sure cookies are enabled? Yeap, this is too basic, but usually fail when checking this simple things! Cheers, Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Changing the default Space
Paul Harris wrote: On 12 December 2010 06:56, Ricardo Rodriguez [eBioTIC.] ricardo.rodrig...@ebiotic.net wrote: Hi Paul, Paul Harris wrote: Hi all, I want to change the primary space name from Main to Public to make it clear to wiki users who is going to have access to the info in that space. I've tried changing every mention of Main to Public in the WEB-INF directory, restarting jetty and refreshing the webbrowser, and STILL it redirects to Main. I've adjusted web.xml, portlet.xml, struts-config.xml, xwiki.cfg is this hard-coded into XWiki? I'm not able to answer your question but why not create a new space Public and redirect calls to the default space to there? Simply put this in your Main.WebHome... {{velocity}} $response.sendRedirect($xwiki.getURL('Public.WebHome')) {{/velocity}} Of course this not solved your doubt, but could be used as a workaround. I've tried to use xwiki.defaultweb to set a different space when the URL doesn't include one and it doesn't work for me either (XE 2.7-SNAPSHOT.33223) Hi Richard, I saw that tip, the reason I don't want to do that is because now you have a space that exists only to do redirects... AND worse, I'm using ShortURLs, which means domain.com/Public is condensed down to the URL domain.com/ ... which due to the problem/bug, renders the Main/WebHome page instead of Public/WebHome, which redirects to Public which condenses down and... etc I think I ends up with a redirect loop. I got the point. I'm using short URLs, but I've not removed the space name yet. So, I'm not able to help you with this issue. I think that the best alternative is to create a Jira issue with this. Thanks! Cheers! ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Installation Issue / FAQ Tutorial
mearv...@aol.com wrote: Hello all. 1) Can we get the installer to run on 64-bit Windows? http://markmail.org/thread/gfyzisz2bplkh3xg 2) Can we get the FAQ tutorial updated to reflect that a) You need to be logged in with administrative privileges b) What the default admin username/password are Thanks http://platform.xwiki.org/xwiki/bin/view/DevGuide/FAQTutorial#HGototheClassEditorWizard Admin default password is clearly stated in the installation instructions. I think it is better not to repeat it again in the tutorial. Thanks! ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Slash in pagename
Hi! Donnie Lee wrote: Hi, I use latest XWiki with Tomcat 5 and MySQL 5. When I create page with slash, like test/test, nothing happens -- I got a blank browser page. Maybe I forgot to add some options to Xwiki or Tomcat? Thanks in advance. It sound a bit strange to me to use a slash in a document name. The slash is used in URLs, so I guess it is not allowed in documents' names. Anyway, if you are using, for instance, http://localhost:8080/xwiki/bin/view/test/test, you must be told... Notice.The requested document could not be found. and, if you are registered, you must be offered with a link to create it. It will create both, test document and test space. HTH, Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] grant rights to a specific user
Ecaterina Moraru (Valica) wrote: On Tue, Dec 7, 2010 at 01:32, Ricardo Rodriguez [eBioTIC.] ricardo.rodrig...@ebiotic.net wrote: Ecaterina Moraru (Valica) wrote: Hi, The behavior is correct because the checking order is: page space wiki (where a space-level setting can be superseded by a (higher ranking) page-level setting) That's OK but, as Wouter said, if the data model implements real-inheritance, must not I expect that the rights explicitly granted at space level are considered also as explicitly granted at document level as a consequence of rights inheritance? yes, but if you define a harder rule at page level, the space level one will be overlapsed by the new rule. Thanks, Caty I get your point. thanks. But I think it keep being counter-intuitive for me that once I grant some rights on a page to a group, the fact of explicitly adding some user (belonging or not to the previous group) rights to the same page prevents members of the original granted group, included the owner, to access the document. Thanks! The only exception I can think off that would help your usecase (but is not implemented) is to have additional special rights for the document Creator. Right now the creator gets DELETE right as an additional behavior. Maybe we should always grant VIEW and EDIT to the creator. This way, at least, he could fix the rights behavior (by giving rights also to GroupA). Another thing that is missing is a warning that by giving that right, the giver will lose it. If you want to read more about rights: - http://www.xwiki.org/xwiki/bin/view/FAQ/HowDoesRightsWork - http://dev.xwiki.org/xwiki/bin/view/Drafts/Access%20Rights - http://dev.xwiki.org/xwiki/bin/view/Drafts/XWikiRightServiceReversed Thanks, Caty On Fri, Nov 19, 2010 at 18:53, Wouter Boasson wouter.boas...@rivm.nl wrote: Hi, We ran into a rights problem, which might be the result of ignorance, but could also be caused by a perceptual omission in the rights model. The following happened: 1. created space, with explicit rights on group 'GroupA' (this automatically locks out users who are not a member of this group) = ok 2. create/edit a page as user 'UserA', member of 'GroupA' = ok 3. UserA (owner/creator of the document) grants view rights to user 'UserB', NOT in GroupA = problems! Now the creator/owner of the document (UserA) can NOT view his own document anymore! Same for problem for every other user in 'GroupA'. I figured that this is correct from a certain point of view: an explicit view for a specific user locks out all other users, but that includes the owner and all other users, including those in 'GroupA', with correct rights at the space level. A possible solution is to grant GroupA explicitly at the same time you grant a specific user access to a certain page, but people will forget to do so. My question is: did we do anything wrong, and is it possible to manage the rights in a way that prevents this counter-intuitive behaviour? I have the feeling that the rights model lacks real-inheritance: when checking permissions for a user, it should return the permissions including that of the group as if it were his explicit permissions, also for pages that inherit rights from the space. E.g. hasView('UserA') should always return 'True' when the group he belongs to has view rights at the space level. Now it apparently returns 'False' when there is an implicit override by granting a user view rights. Or does inheritance from the space levels stops working as soon as there's any kind of override on a specific page? A possible but crude work-around could be using some intelligent trigger functions in the database to explicitly add all rights from the space to the specific document as soon as an XWikiRights object is written, but that's kind of a last resort. Could you help me? I hope for a better solution! Thanks, Wouter Wouter Boasson (MSc) Geo-IT Research and Coordination RIVM - National Institute for Public Health and the Environment Expertise Centre for Methodology and Information Services Contact information --- RIVM VenZ/EMI, Pb 86 t.a.v. dhr. Drs. Wouter Boasson Postbus 1 3720 BA Bilthoven T +31(0)302748518 F +31(0)302744456 E wouter.boas...@rivm.nl mo - th Disclaimer RIVM ___ 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 -- Ricardo Rodríguez CTO eBioTIC. Life
Re: [xwiki-users] Attachments-RAM dependencies, anchors, TOC
Hi! Haru Mamburu wrote: Hi! Kindly ask you to solve some unclear topics: I. How can I find information about such dependencies: - How many server RAM memory is required for each 1GB of attachments? - The same for CPU. How to estimate this and calculate hardware? What are main principles? II. Is it possible to customise WYSIWYG editor separetly for each space in one sub-XWiki ? III. Is there any way to manage anchors from Links plugin in WYSIWYG editor? The logic is: - select space - select page - select anchor on this page - put the link For now, even if I write down XWiki.WebHome#anchor in the link field manually, I get #anchor cut out. And the only way to do it via source code editor manually. Then it works fine. Personally me found more or less suitable solution with FF plugin https://addons.mozilla.org/ru/firefox/addon/416/ It's very easy to get anchor, but not so easy to put it. For unqualified users it makes XWiki one-handed. IV. Is there any way to make TOC macro to build table of contents of several pages and put it on one page? For Example: toc Page1, Page2, Page3 It's very useful, when one can group all project highligts together in one TOC. I used to use Track Wiki, it works excellent in there. I suffer from it's absence now :-) Something like this will be also welcome here. We would like to have some multi chapter book feature to automatically generate such kind of TOCs without having to include the whole documents in a given page. For instance, this works: {{toc /}} {{include document=TOCsample01/}} {{include document=TOCsample02/}} But it create a global document including all the contents. It will be great to be able to define de scope of the TOC macro to include several documents. Perhaps those of a space or those in some way tagged. I think premises are there, but I'm still lacking the required developer skills to contribute a new macro or modify the existing one! Thanks. Thank you Dmitry Bakbardin ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Remove a translation
Gerritjan Koekkoek wrote: Hello Ralucca, When I do what you suggest, i delete a translation without links to other wiki-pages I get a warning that all links will be without parent. It looks like the delete action from the menubar is evaluating the links of the default page. You get this message if the document your are going to delete is anywhere set as Parent. As you don't specify a given translation as parent, yes, you get the warnings when you are going to delete any of the parent translations. But only the current translation gets removed provided it is not the default one what are you deleting. I do think this topic is worth a Jira issue. Raluca, what do you think? Thanks! Is this by intention? Can I trust that only the translation currently shown on my screen is deleted. How would a script look to delete all translations of a document? Very nice would be if the script would alsp be able to create a new translation based on the content of the default page Even super cool would be a feature where you can ask google-translate (or any webservice) to create such a translation as a headstart for the content managers Gerritjan Op 6 dec 2010, om 21:37 heeft Raluca Stavro het volgende geschreven: Hello Ricardo, The document translations are stored separately. For example, if you export as XAR a document having multiple translations, you will notice that the XML files are named like this: DocName.xml (default language), DocName.en.xml, DocName.es.xml ... etc . This is why, in order to delete a document translation, you have to go on that document translated in the language that you want to remove (for example '.../view/SpaceName/PageName?language=en') and delete the document. The other translations (default and others) will not be deleted. You can check the comments of this Jira issue: http://jira.xwiki.org/jira/browse/XWIKI-4932 . Raluca. On Mon, Dec 6, 2010 at 9:46 PM, Gerritjan Koekkoek gerritjankoekk...@gmail.com wrote: Hi Our XWIKI is multi-language. When we translate a document into other languages how are these documents stored? The issue I have is that when we update the original it is not easy to remove the incorrect translations How do I remove only a translation without removing the default language (or all the translations at once, without the original)? Gerritjan ___ 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 -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Clobbered syntax when importing 2.1 xwiki content into 2.5.1
Lars Lindwall wrote: Hi, I'm not quite sure what you mean, but I have imported the entire xwiki-enterprise-wiki-2.5.1.xar How can I check if Panels.DocumentInformation has been imported? /Lars Simply go to http://yourserver/xwiki/bin/view/Panels/DocumentInformation. If it fails, for any reason, you haven't imported that panel. HTH, -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] confirmed registrations
Paul Harris wrote: Hi all, I see in the Access Rights documentation that there are 3 ways it can be set up: Open Wiki Public Wiki Public Wiki with confirmed registration All of those options allow the user to register without forcing the admin to confirm the registration. I don't want users to be able to register themselves. I have a small set of special users and I want to be able to register them manually, or at least have to confirm their registration before an account is created for them. any normal visitor should not be able to modify anything on the website, and that includes registering themselves. is this possible? thanks Paul ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users To avoid self-registration: 1. Log with an user with administration rights 2. Go to Administer Wiki 3. Go to Rights 4. Users' Rights 5. Uncheck Register for Unregistered Users To the best of my knowledge, out of the box, there is not possible to enforce registration approval by an admin or any other user. HTH, Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Include Macro failed in a page with annotation
Hi Le Génie wrote: Hi, I use XWiki XEM 2.4.4 and when I add an annotation to a page, the include macro (also present in the same page) displays : Failed to execute the [include] macro It seems to be the issue XSKINX-39 but it was fixed a long time ago. Nothing in the xwiki or tomcat log. Is there something to verify ? Thank for your help. Maxime ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users It is correctly working for me in a XE/XEM 2.4.30451 box. http://ebiotic.net/bin/ICT/TOCsample http://ebiotic.net/bin/ICT/TOCsample?viewer=code Annotation are only showed to registered users. Let me know if it could be of any help for your to access this box. Cheers, Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Include Macro failed in a page with annotation
Le Génie wrote: Hi Ricardo, The problem occurs with {{include document=xxx /}} for registered users. And the annotation is in the including page (not the included). No problem with the {{toc /}} macro. 2010/12/7 Ricardo Rodriguez [eBioTIC.] ricardo.rodrig...@ebiotic.net Just a shot: have those users read rights on the included document/s? Hi Le Génie wrote: Hi, I use XWiki XEM 2.4.4 and when I add an annotation to a page, the include macro (also present in the same page) displays : Failed to execute the [include] macro It seems to be the issue XSKINX-39 but it was fixed a long time ago. Nothing in the xwiki or tomcat log. Is there something to verify ? Thank for your help. Maxime ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users It is correctly working for me in a XE/XEM 2.4.30451 box. http://ebiotic.net/bin/ICT/TOCsample http://ebiotic.net/bin/ICT/TOCsample?viewer=code Annotation are only showed to registered users. Let me know if it could be of any help for your to access this box. Cheers, Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ 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 -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] WARN xwiki.MyPersistentLoginManager - Login cookie validation hash mismatch! Cookies have been tampered with
Hi! markblokpoel wrote: Hi Ricardo, Thank you for your reply. When I was setting up xwiki I was at work (same network as the xwiki server). At that time everything was working perfectly, even more everything is still working perfectly when I use the xwiki from work. I just can't login from other places outside my work network. I tried the superadmin account, it also doesn't work from outside.. but does work on the same network. This thing has me baffled.. Maybe I'll try a re-deployement of the wiki this afternoon and see if that works. Best, Mark -- Radboud University Nijmegen But, have you ever been able to login from the outside world? If not, thus, I'm not able to find an answer other than something in the protection of your network is interfering the login process. I've found this: http://jira.xwiki.org/jira/browse/XWIKI-1071 It is not the same symptom, but at least it shows that things will go wrong when a firework rejects cookies. Another shot: are you using the same box when accessing from outside the network where the server is installed? Are you sure cookies are enabled? Yeap, this is too basic, but usually fail when checking this simple things! Cheers, Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Offline storage migration / Export
Hi Leen, Leen Toelen wrote: Hi, I have an existing XWiki enterprise 1.3.1 running with a mysql backend and storage version 7351. I would like to upgrade to XWiki enterprise 2.6, but I am running into problems. - a xar export eats all ram, and the max heap is already the maximum of my 32-bit linux (-Xmx2600m) . When I increase it the jvm fails to start. The backup.xar stops at around 1.1GB, and then I gets OutOfMemory execeptions all over the place. - when I install 2.6 using the same mysql backend, the storage migration throws a massive amoutn of errors, mostly due to Exception while saving object XWiki.XWikiUsers. This is migration R15428XWIKI2977. Is there a way to perform an offline migration, so I can debug where needed, ot a way to perform an export and import in a clean database offline? Regards, Leen ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users The XWiki team has recently, and successfully, migrated our plain old XE 1.3.8295 farm to a new XE/XEM 2.4.30451 farm. A couple of seed documents have been born from that project: http://ebiotic.net/bin/MigrationCode/HowToMigrate http://ebiotic.net/bin/Draft/MigrationCheckList I think that at least one of them could be moved to a convenient place in the xwiki.org farm, but I've had no time yet to follow this thread. Perhaps they could be useful for you even in their current state. Also, I must update this installation to the current available XE/XEM release. I think this page could also be checked to see how the XWiki team is getting XWiki farm updated! http://www.xwiki.org/xwiki/bin/view/XWiki/Migrations Hope this helps! Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Trying to find a wiki software
Eric Tse wrote: Cool cool. Am I able to customize it enough so it looks like an actual website and not a wiki? (Wikipedia style) - Eric Yes. Please, check this simple examples... http://ebiotic.net There are panels with titles and contents from which you can guess a wiki is behind the scene, but all these contents are easily customizable. No register button, no history, comments or annotations panels accessible from the main page. No create new page or edit the current one buttons. All that features will be shown only after user authentication. And, some of them, only for a given set of users. Yes, the portal is based on the wiki concept, but wiki features are so obvious as the administrator/designer decides. An a la Wikipedia skin is among the wanted skins for some users. But consider that even Wikipedia shows Discussion, History and Source before you login. That is easly hidden when using XWiki. HTH On Sun, Dec 5, 2010 at 3:12 PM, Ricardo Rodriguez [eBioTIC.] ricardo.rodrig...@ebiotic.net wrote: Hi! Eric Tse wrote: Hey guys, just subscribed to this list. I'm currently stuck between two softwares: XWiki and Foswiki. What I'm looking for is: Speed/Performance Access control (Guests can only read and not modify, certain users can modify) Good theming/Easy theming. An overall good wiki with user-friendly UI. Foswiki is flatfile and xwiki is SQL based. I hear that SQL is generally better, is that the case? Foswiki seems to be pretty fast even if it is flatfile. Thanks :) XWiki is not only a wiki: it is a complete and powerful Java based development framework. I arrived here from MediaWiki looking for access management and I found much, much more than this. I think it is worth you give it a try! Even more: if after playing for a while in the sandbox (http://xoffice.xwiki.org/xwiki/bin/view/Sandbox/), or asking and using your own wiki in MyWiki community farm or Netcipia, or installing your own standalone installation, you know how to set up an application server and a supported RDBMS, install and give a try to the last snapshot to feel the newest improvements! Don't forget to use the Create 200 Dummy Users snippet available at... http://code.xwiki.org/xwiki/bin/view/Snippets/Create200DummyUsersSnippet ... and play for a while with Users and Groups administration. Out of the box, XWiki features an amazingly powerful rights management system. Of course control who can read or edit a given document of a part of it is not a big issue for XWiki administrators. As for theming. Even though I think teaming is better than theming working with XWiki :-) as many other development areas, it has also evolved greatly in the last months. Some new concepts has been recently introduced, for instance check the Skin Extensions Plugin (http://code.xwiki.org/xwiki/bin/view/Plugins/SkinExtensionsPlugin). Right now is really easy to customized colours and logos, and modify any UI characteristic by using Firefox Firebug to track the relevant CSS XWiki code. Perhaps if you only look for a classical wiki, theming is not the most friendly XWiki feature for you. But don't forget this: it is completely scalable, so you should want to forget a bit about theming for a while being sure that what you see in our UI is or will be easily customizable in a near future. XWiki is what it reads in its portal's homepage: The XWiki project offers both a generic platform for developing collaborative applications using the wiki paradigm and products developed on top of it. XWiki Enterprise should be the product you are looking for, but this is only the top of the iceberg. I'm not able to compare the use of flat-files vs RDBMS (SQL is just the standard language that allows you to query such databases). BUT, once again, don't forget that XWiki is more than a wiki. It uses a RDBMS to hold a complex object-oriented structure. You can also use its SQL plugin to query local or remote RDBMS tables, but also can its API methods to design complex queries using HQL (Hibernate Query Language) or XWQL (XWiki Query Language) More: each XWiki document could be considered a database on its own! It could be composed of an unlimited number of objects + plain or more or less structured text. Sticks with XWiki and won't only create a classical, fast and full featured wiki but discover a full and funny universe of great possibilities. And, most important of all: you will meet a great community and development team! Just my two cents! Ricardo - Eric ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] evaluation questions: sorted document tree; XOO; other topics
Hi! Mark D. Anderson wrote: hi - I'm one of the stranded former users of the free hosted service wik.is which mindtouch precipitously cancelled, forcing all users to either go to one of their paid plans (which don't match my usage), or leave. I'm going to host it myself this time, and have been looking through the alternatives. I'm attracted to xwiki for several reasons: full ACL support; ldap authentication; good open source license without a bunch of proprietary features; Balsamiq and Word integrations; wysiwyg editing; and strong REST api. From my first glance I do still have some reservations: 1. One concern is convenient maintenance of sorted children. I see that in xwiki's own documentation wiki, this isn't done: http://platform.xwiki.org/xwiki/bin/view/AdminGuide/ is just maintained manually as an index page. As far as I can tell, by default children are just sorted by creation order. With the http://code.xwiki.org/xwiki/bin/view/Plugins/DocumentTreePlugin they can instead be sorted by name. Lastly, there is http://code.xwiki.org/xwiki/bin/view/Plugins/SortedDocumentTreePlugin But I really don't understand the instructions for importing a class to get an additional sortable attribute. Also I don't know if these plugins support sort order of spaces too, or not. Ideally, however it is done, when a page is created, the form would have not only the page title and parent title, but a place for an optional sort value. Without considering the available code, just to say that any single piece of information associated with a document can be used to programmatically display any bunch of selected documents in a new one. The homepage of a document is a clear field to be used as ID, but any identifiable content or object property could be used. 2. I'd like to be able to export an entire space as a big PDF. I can't tell if this plugin will do that: http://code.xwiki.org/xwiki/bin/view/Applications/PDFExportPanelApplication For example, suppose I wanted the whol xwiki AdminGuide as a single PDF, what would I do? To the best of my knowledge, this is not possible with the available plugins or applications. You can export as PDF a document, but not space or any other artefact you could create as a multi-chapter document metaphor. This nice application eases the use of some features related with document export. I would keep track of the development of nested spaces features and some other initiatives to add new hierarchy to XWiki documents. Also, an understanding of the new rendering architecture will be required to get something working on this field... http://code.xwiki.org/xwiki/bin/view/Modules/RenderingModule 3. I'd like a real bare bones look -- even slimmer than Confluence or MediaWiki, and both of those are a little less cluttered than the Toucan skin. I'm not finding any example skins that are like that. This is really easy. Check this thread... http://markmail.org/thread/n5i7mammmo63dcz6 As Vincent said, check some samples here... http://www.xwiki.org/xwiki/bin/view/Main/Screenshots 4. I like the idea of supporting office app clients. But it seems there is some clumsiness with XOffice specifying a parent: http://jira.xwiki.org/jira/browse/XOFFICE-243 And I can't find any documentation on editing/creating content from OpenOffice and/or via any webdav client. Things like URL conventions, etc. This page http://platform.xwiki.org/xwiki/bin/view/DevGuide/Architecture mentions XOO (Xwiki OpenOffice) but there is nothing else about it: http://www.xwiki.org/xwiki/bin/view/Main/Search?text=XOOwikinames=space= 5. I might be blind but I can't find any documentation for the blogging support. http://code.xwiki.org/xwiki/bin/view/Applications/BlogApplication 6. The page http://code.xwiki.org/xwiki/bin/view/Plugins/ says Components are preferred over plugins but the link to Components goes nowhere. http://code.xwiki.org/xwiki/bin/view/Modules/ComponentModule In general the documentation wiki is pretty confusing. The Enterprise docs link to basically all the same places as the platform docs. There seems to be a mixture of information that is years out of date and information about ideas not yet implemented. Sadly it is an example of the dangers of using a wiki :(. -mda Well, I could agree with you and I can also feel the same danger of using a wiki you are speaking about. The point is that XWiki is a collaborative initiative. Developers are mostly devoted to develop (sic) new great features and it could be truth that the documentation is a bit messy. But I'm sure, better I can confirm, that any initiative/idea will be welcome and carefully considered for the community. Mainly, for the developers themselves. Please, browse through users lists and Jira repository to check how many times several aspects related with documentation have been discussed. Even some proposals about ideas
Re: [xwiki-users] Attachments lost !
Caleb James DeLisle wrote: On 11/30/2010 05:46 PM, Ricardo Rodriguez [eBioTIC.] wrote: Piotr Dziubecki wrote: Hi Sergiu, W dniu 10-11-22 12:58, Sergiu Dumitriu wrote: On 11/22/2010 11:20 AM, Piotr Dziubecki wrote: Hi Ricardo, W dniu 10-11-19 19:37, Ricardo Rodriguez [eBioTIC.] wrote: Hi Piotr, Piotr Dziubecki wrote: Hi, today I've noticed that something bad had happen to some of the attachments in my XWiki, here is a screenshot from one of the affected pages: http://i.imgur.com/p6Xs7.png Take a look, a couple of attachments have been uploaded but only one is displayed in the attachment tab. Person who uploaded them claims that yesterday they were ok, but today somehow they disappeared. It's weird that there is no trace of any operation on them after the uploading phase. I'm using XWiki Enterprise 2.5.32127 with MySQL data base (Server version 5.1.47). To add more context, last days my users started to add more attachements to their pages. Currently the database after the dump is around 200 MB large. Also looked at the logs and found several interesting fragments ( all of the log snippets are from the time this have been noticed ): 2010-11-18 09:03:09,355 [http://apps.man.poznan.pl:28181/xwiki/bin/download/Documents/Proposals/2009AUGURISProposalBPartSubmission.pdf?width=1262] ERROR web.XWikiAction - Connection aborted Found a TextHeaderAtom not followed by a TextBytesAtom or TextCharsAtom: Followed by 3999 Found a TextHeaderAtom not followed by a TextBytesAtom or TextCharsAtom: Followed by 3999 Found a TextHeaderAtom not followed by a TextBytesAtom or TextCharsAtom: Followed by 3999 Found a TextHeaderAtom not followed by a TextBytesAtom or TextCharsAtom: Followed by 3999 2010-11-18 13:23:53,118 [http://localhost:28181/xwiki/bin/view/Projects/Opinion+Mining] WARN xwiki.MyPersistentLoginManager - Login cookie validation hash mismatch! Cookies have been tampered with 2010-11-18 13:23:53,119 [http://localhost:28181/xwiki/bin/view/Projects/Opinion+Mining] WARN xwiki.MyPersistentLoginManager - Login cookie validation hash mismatch! Cookies have been tampered with Found a TextHeaderAtom not followed by a TextBytesAtom or TextCharsAtom: Followed by 3999 Found a TextHeaderAtom not followed by a TextBytesAtom or TextCharsAtom: Followed by 3999 Found a TextHeaderAtom not followed by a TextBytesAtom or TextCharsAtom: Followed by 3999 Found a TextHeaderAtom not followed by a TextBytesAtom or TextCharsAtom: Followed by 3999 2010-11-18 13:57:55,471 [Lucene Index Updater] WARN lucene.AttachmentData - error getting content of attachment [2009BEinGRIDwow2greenCONTEXTREVIEW.PPT] for document [xwiki:Documents.Presentations] org.apache.tika.exception.TikaException: TIKA-198: Illegal IOException from org.apache.tika.parser.microsoft.officepar...@72be25d1 at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:138) at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:99) at org.apache.tika.Tika.parseToString(Tika.java:267) at com.xpn.xwiki.plugin.lucene.AttachmentData.getContentAsText(AttachmentData.java:161) at com.xpn.xwiki.plugin.lucene.AttachmentData.getFullText(AttachmentData.java:136) at com.xpn.xwiki.plugin.lucene.IndexData.getFullText(IndexData.java:190) at com.xpn.xwiki.plugin.lucene.IndexData.addDataToLuceneDocument(IndexData.java:146) at com.xpn.xwiki.plugin.lucene.AttachmentData.addDataToLuceneDocument(AttachmentData.java:65) at com.xpn.xwiki.plugin.lucene.IndexUpdater.addToIndex(IndexUpdater.java:296) at com.xpn.xwiki.plugin.lucene.IndexUpdater.updateIndex(IndexUpdater.java:237) at com.xpn.xwiki.plugin.lucene.IndexUpdater.runMainLoop(IndexUpdater.java:171) at com.xpn.xwiki.plugin.lucene.IndexUpdater.runInternal(IndexUpdater.java:153) at com.xpn.xwiki.util.AbstractXWikiRunnable.run(AbstractXWikiRunnable.java:99) at java.lang.Thread.run(Thread.java:662) Caused by: java.io.IOException: Cannot remove block[ 4209 ]; out of range[ 0 - 3804 ] at org.apache.poi.poifs.storage.BlockListImpl.remove(BlockListImpl.java:98) at org.apache.poi.poifs.storage.RawDataBlockList.remove(RawDataBlockList.java:32) at org.apache.poi.poifs.storage.BlockAllocationTableReader.init(BlockAllocationTableReader.java:99) at org.apache.poi.poifs.filesystem.POIFSFileSystem.init(POIFSFileSystem.java:164) at org.apache.tika.parser.microsoft.OfficeParser.parse(OfficeParser.java:74) at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:132) ... 13 more Found a TextHeaderAtom not followed
Re: [xwiki-users] [Investigation] User Statuses
Sergiu Dumitriu wrote: On 11/24/2010 04:12 PM, Fabio Mancinelli wrote: Hi Caty, a mail to share my vision about the User Status feature. The main idea is to have a mechanism for users to broadcast messages concerning their activities. The key use cases for this are: 1) Fast communication between enterprise members which can replace IMs and mails with user status 1.1) Communicate what you are working on Obvious, +1. 1.2) Quick question answering and feedback gathering You mean something like: BigBoss says: How do we get through the crisis? Jimmy says: @BigBoss reduce costs! Mike says: @BigBoss sell more! And: Jimmy says: @Timmy where can I get a W80 form? Timmy says: @Jimmy room 404 1.3) Interesting material dissemination You mean link sharing? 2) Focused discussions about a given topic I'm not sure this is the best way to communicate. It might work if it behaves a bit like instant messaging, with updates being refreshed in real time. Also, for it to make sense as a discussion, it should be threaded. So this starts to look like Google Wave, which somehow failed. It might work in an intranet, but still it would diverge too much from a simple status update, and I'm not sure how it can be integrated nicely inside the current Activity UI (nor the implementation, but that's not critical). 3) Fast communication with external clients to keep them up-to-date I'm not sure I get this. Isn't an *intra*net supposed to be internal, inaccessible to external parties? Do you mean closed group messages, visible only in a given space? In order to realize these use cases we need something that resembles to Facebook's Wall or, if we look at more enterprise oriented products, to SalesForce chatter (http://www.salesforce.com/chatter) This is getting too far from the initial ideas. It was supposed to be integrated in the recent activity, as little user messages mixed among wiki activity. Now it looks like the main goal is user communication, with wiki activity on the second place. Going the Chatter way would imply many changes in the ActivityStream implementation, the {{activity}} macro, and the Recent Activity UI. I'm not saying we shouldn't try to go there, I'm only asking if we want to do it as the User Statuses sub-feature inside the Activity feature. In particular: 1) The feature should be implemented as an internal subsystem that takes advantage of the Wiki underlying model for exposing information That's always the case. 1.1) User status can contain reference to Wiki entities (i.e., page, attachments, comments) and external links. As Jerome said in a previous email, this is key. An autocompletion mechanism could help making this feature more usable. The full wiki syntax might be available, which includes links to documents/attachment. If we do that, then should the WYSIWYG be displayed as well? 1.2) I am not sure that we need to provide an upload mechanism to associate an artifact to a user status. Linking an attachment in a Wiki page is sufficient in my opinion. +1 for links to existing data only. We could provide a notify this checkbox in the edit/upload UI. 2) It should be possible to define one or more neighborhoods, i.e., people that will receive our status updates We could have activities for a space, and activities for a group. This means that in the group UI we could integrate a say something widget. Another idea is a panel which allows you to specify where to post the update: global (default), current space, specific space (with suggest), group of users (with suggest), specific user (with suggest). My fear is that the UI will be too complex, which increases the likelihood of users abandoning their update. If something takes too much to accomplish, or there are too many knobs to tinker with, then people will avoid that. 2.1) This is something that is more powerful wrt to what we have in Facebook because it would allow us to create different social-graphs that can be targeted when a user status is updated 3) It should be possible to comment on a status update (e.g., quick question answering and feedback gathering use case) Is a simple reply to this enough? 4) The user status are not tweets... I think that the number of character should be limited to a reasonable high threshold (e.g., 2048) The current activity stream allows for 2000 characters (which usually is rounded to something more), so this should be OK. 5) User statuses should be visible only to the users belonging to the neighborhood targeted by the status This can be done at the UI level, but it's going to be hard to protect it at the API level. We can do it if we change the activitystream plugin to expose more high level methods, like
Re: [xwiki-users] WARN xwiki.MyPersistentLoginManager - Login cookie validation hash mismatch! Cookies have been tampered with
Hi, Mark markblokpoel wrote: Some extra information, it seems the users get's logged in: 2010-12-06 14:12:17,659 [http://tcs.dcc.ru.nl/xwiki/bin/loginsubmit/XWiki/XWikiLogin] [http://tcs.dcc.ru.nl/xwiki/bin/loginsubmit/XWiki/XWikiLogin] INFO xwiki.MyFormAuthenticator - User XWiki.MarkBlokpoel has been logged-in 2010-12-06 14:12:17,803 [http://tcs.dcc.ru.nl/xwiki/bin/loginsubmit/XWiki/XWikiLogin] [http://tcs.dcc.ru.nl/xwiki/bin/loginsubmit/XWiki/XWikiLogin] INFO xwiki.XWikiRightServiceImpl - Access has been denied for (XWiki.XWikiGuest,XWiki.XWikiLogin,edit): global level (restricting right was found) 2010-12-06 14:12:17,815 [http://tcs.dcc.ru.nl/xwiki/bin/loginsubmit/XWiki/XWikiLogin] [http://tcs.dcc.ru.nl/xwiki/bin/loginsubmit/XWiki/XWikiLogin] INFO xwiki.XWikiRightServiceImpl - Access has been denied for (XWiki.XWikiGuest,XWiki.XWikiLogin,admin): global level (restricting right was found) 2010-12-06 14:12:17,828 [http://tcs.dcc.ru.nl/xwiki/bin/loginsubmit/XWiki/XWikiLogin] [http://tcs.dcc.ru.nl/xwiki/bin/loginsubmit/XWiki/XWikiLogin] INFO xwiki.XWikiRightServiceImpl - Access has been denied for (XWiki.XWikiGuest,XWiki.XWikiLogin,comment): global level (restricting right was found) However soon after it logs the following: 2010-12-06 14:11:35,134 [http://tcs.dcc.ru.nl/xwiki/bin/loginsubmit/XWiki/XWikiLogin] [http://tcs.dcc.ru.nl/xwiki/bin/loginsubmit/XWiki/XWikiLogin] WARN xwiki.MyPersistentLoginManager - Login cookie validation hash mismatch! Cookies have been tampered with 2010-12-06 14:11:35,141 [http://tcs.dcc.ru.nl/xwiki/bin/loginsubmit/XWiki/XWikiLogin] [http://tcs.dcc.ru.nl/xwiki/bin/loginsubmit/XWiki/XWikiLogin] INFO xwiki.MyPersistentLoginManager - Login cookie is being deleted! Maybe this helps to clarify what is happening.. Thanks. Best, Mark As far as I see, you have tweaked with the access rights of your installation. It seems to me that somehow you are preventing access to all and every user. Have you tried to access with the superadmin user? Does it work? Check this... http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration If it was working before and no changes in the application server and/or XWiki installation have been done, some misconfiguration of access rights is the only thing I can figure out that could prevent you login into your system. HTH -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] evaluation questions: sorted document tree; XOO; other topics
Mark D. Anderson wrote: Thanks Ricardo and Vincent. I think I have some answer on my questions except this one: 4. I like the idea of supporting office app clients. But it seems there is some clumsiness with XOffice specifying a parent: http://jira.xwiki.org/jira/browse/XOFFICE-243 Well, this is clearly an open issue! :-) And I can't find any documentation on editing/creating content from OpenOffice and/or via any webdav client. Things like URL conventions, etc. This page http://platform.xwiki.org/xwiki/bin/view/DevGuide/Architecture mentions XOO (Xwiki OpenOffice) but there is nothing else about it: http://www.xwiki.org/xwiki/bin/view/Main/Search?text=XOOwikinames=space= Please, check this... http://www.xwiki.org/xwiki/bin/view/Main/Search?text=OpenOfficex=0y=0 and this... http://code.xwiki.org/xwiki/bin/view/Applications/OfficeImporterApplication also, http://code.xwiki.org/xwiki/bin/view/Plugins/SortedDocumentTreePlugin says: use imported class (section Installation step 3) called XWiki.SortedTreePageClass where can i read what that means? (what is importing a class?) It is rather important to get at least an intuitive idea about what XWiki Classes, Objects and Properties do mean. Please, check this: http://platform.xwiki.org/xwiki/bin/view/DevGuide/DataModel It won't be possible to unveil the power of XWiki without a clear understanding of what these concepts mean and how are implemented within XWiki. In the case of the Sorted Document Tree Plugin, the piece of information used to weight a document could be either add an instance of the XWiki.TagClass class, or the XWiki.SortedTreePageClass class imported with the xar file of the application. How to instantiate a class? 1. Generally: Edit Objects ; select the class and click ADD. You can edit the value of any property by clicking the small pencil in the right side. 2. To add a tag, follow the general procedure by selecting XWiki.TagClass or simply click the plus symbol in the bottom of the document. To the left, in the same line including author and date. btw, it occurs to me that the support for section editing makes it viable to use longer pages, which will help with both page ordering and with export to PDF. Great to read this. There are a lot of work done in new procedures to avoid edition conflicts. Some devs are currently considering to improve lock to section level. -mda ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users Hope this helps to soften your XWiki learning curve! -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] grant rights to a specific user
Ecaterina Moraru (Valica) wrote: Hi, The behavior is correct because the checking order is: page space wiki (where a space-level setting can be superseded by a (higher ranking) page-level setting) That's OK but, as Wouter said, if the data model implements real-inheritance, must not I expect that the rights explicitly granted at space level are considered also as explicitly granted at document level as a consequence of rights inheritance? Thanks! The only exception I can think off that would help your usecase (but is not implemented) is to have additional special rights for the document Creator. Right now the creator gets DELETE right as an additional behavior. Maybe we should always grant VIEW and EDIT to the creator. This way, at least, he could fix the rights behavior (by giving rights also to GroupA). Another thing that is missing is a warning that by giving that right, the giver will lose it. If you want to read more about rights: - http://www.xwiki.org/xwiki/bin/view/FAQ/HowDoesRightsWork - http://dev.xwiki.org/xwiki/bin/view/Drafts/Access%20Rights - http://dev.xwiki.org/xwiki/bin/view/Drafts/XWikiRightServiceReversed Thanks, Caty On Fri, Nov 19, 2010 at 18:53, Wouter Boasson wouter.boas...@rivm.nlwrote: Hi, We ran into a rights problem, which might be the result of ignorance, but could also be caused by a perceptual omission in the rights model. The following happened: 1. created space, with explicit rights on group 'GroupA' (this automatically locks out users who are not a member of this group) = ok 2. create/edit a page as user 'UserA', member of 'GroupA' = ok 3. UserA (owner/creator of the document) grants view rights to user 'UserB', NOT in GroupA = problems! Now the creator/owner of the document (UserA) can NOT view his own document anymore! Same for problem for every other user in 'GroupA'. I figured that this is correct from a certain point of view: an explicit view for a specific user locks out all other users, but that includes the owner and all other users, including those in 'GroupA', with correct rights at the space level. A possible solution is to grant GroupA explicitly at the same time you grant a specific user access to a certain page, but people will forget to do so. My question is: did we do anything wrong, and is it possible to manage the rights in a way that prevents this counter-intuitive behaviour? I have the feeling that the rights model lacks real-inheritance: when checking permissions for a user, it should return the permissions including that of the group as if it were his explicit permissions, also for pages that inherit rights from the space. E.g. hasView('UserA') should always return 'True' when the group he belongs to has view rights at the space level. Now it apparently returns 'False' when there is an implicit override by granting a user view rights. Or does inheritance from the space levels stops working as soon as there's any kind of override on a specific page? A possible but crude work-around could be using some intelligent trigger functions in the database to explicitly add all rights from the space to the specific document as soon as an XWikiRights object is written, but that's kind of a last resort. Could you help me? I hope for a better solution! Thanks, Wouter Wouter Boasson (MSc) Geo-IT Research and Coordination RIVM - National Institute for Public Health and the Environment Expertise Centre for Methodology and Information Services Contact information --- RIVM VenZ/EMI, Pb 86 t.a.v. dhr. Drs. Wouter Boasson Postbus 1 3720 BA Bilthoven T +31(0)302748518 F +31(0)302744456 E wouter.boas...@rivm.nl mo - th Disclaimer RIVM ___ 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 -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Setting rules tag in a table doesnt work with the export
Hi! Erica Usui wrote: Hi! I'm using the following: $xwiki.jsfx.use(js/xwiki/table/tablefilterNsort.js) $xwiki.ssfx.use(js/xwiki/table/table.css) When defining rules=all, and I export the table to pdf, it doesn't come with the lines it was supposed to come with... The only thing that works is to define border=1. How can I get all the lines when exporting my table? To the best of my knowledge rules=all is a HTML element, not a CSS property, isn't it? What is the appearance of the table you are trying to get? Have you an online example or could you share your js and css files to try them here? Thanks! Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Problem with #includeMacros()
Hi! tomasg wrote: Hi, I create a page with macros, then I included it on another page (#includeMacros(Sprava.Macros), or {{include document=SpaceOf.DocumentToInclude/}}). Problem is when page is rendered, sometimes are macros proceed, but sometimes when I change page where I use macros I got instead rendered macro only name of macro (e.g. #getType($type)). Page with macros is not changed. Seems to me like a bug. Another problem is when I left empty line in macro page I got sometimes in rendered page this text: div class=wikimodel-emptyline/divdiv class=wikimodel-emptyline/divdiv class=wikimodel-emptyline/div Some empty lines do not affect result some yes. Any idea? Please, could you share some of your in trouble macros to test them here? An example to reproduce what you are seeing is also helpful! Mostly with an sometimes in the description of the problem! Greetings! Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Trying to find a wiki software
Hi! Eric Tse wrote: Hey guys, just subscribed to this list. I'm currently stuck between two softwares: XWiki and Foswiki. What I'm looking for is: Speed/Performance Access control (Guests can only read and not modify, certain users can modify) Good theming/Easy theming. An overall good wiki with user-friendly UI. Foswiki is flatfile and xwiki is SQL based. I hear that SQL is generally better, is that the case? Foswiki seems to be pretty fast even if it is flatfile. Thanks :) XWiki is not only a wiki: it is a complete and powerful Java based development framework. I arrived here from MediaWiki looking for access management and I found much, much more than this. I think it is worth you give it a try! Even more: if after playing for a while in the sandbox (http://xoffice.xwiki.org/xwiki/bin/view/Sandbox/), or asking and using your own wiki in MyWiki community farm or Netcipia, or installing your own standalone installation, you know how to set up an application server and a supported RDBMS, install and give a try to the last snapshot to feel the newest improvements! Don't forget to use the Create 200 Dummy Users snippet available at... http://code.xwiki.org/xwiki/bin/view/Snippets/Create200DummyUsersSnippet ... and play for a while with Users and Groups administration. Out of the box, XWiki features an amazingly powerful rights management system. Of course control who can read or edit a given document of a part of it is not a big issue for XWiki administrators. As for theming. Even though I think teaming is better than theming working with XWiki :-) as many other development areas, it has also evolved greatly in the last months. Some new concepts has been recently introduced, for instance check the Skin Extensions Plugin (http://code.xwiki.org/xwiki/bin/view/Plugins/SkinExtensionsPlugin). Right now is really easy to customized colours and logos, and modify any UI characteristic by using Firefox Firebug to track the relevant CSS XWiki code. Perhaps if you only look for a classical wiki, theming is not the most friendly XWiki feature for you. But don't forget this: it is completely scalable, so you should want to forget a bit about theming for a while being sure that what you see in our UI is or will be easily customizable in a near future. XWiki is what it reads in its portal's homepage: The XWiki project offers both a generic platform for developing collaborative applications using the wiki paradigm and products developed on top of it. XWiki Enterprise should be the product you are looking for, but this is only the top of the iceberg. I'm not able to compare the use of flat-files vs RDBMS (SQL is just the standard language that allows you to query such databases). BUT, once again, don't forget that XWiki is more than a wiki. It uses a RDBMS to hold a complex object-oriented structure. You can also use its SQL plugin to query local or remote RDBMS tables, but also can its API methods to design complex queries using HQL (Hibernate Query Language) or XWQL (XWiki Query Language) More: each XWiki document could be considered a database on its own! It could be composed of an unlimited number of objects + plain or more or less structured text. Sticks with XWiki and won't only create a classical, fast and full featured wiki but discover a full and funny universe of great possibilities. And, most important of all: you will meet a great community and development team! Just my two cents! Ricardo - Eric ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Gift for the XWiki Community
Thanks and Merry Christmas to all of you too! Maxime Sinclair wrote: Hello XWiki Community, Christmas is coming, and I have a gift for you. I hope you will enjoy it. As you may know, recently, a Brazilia advertising agency produce fake vintage ads for Facebook, Twitter, YouTube and Skype. I thought these posters are really amazing. You will find the story here http://www.dailybloggr.com/2010/08/cool-vintage-ads-of-facebook-twitter-youtube-skype/ More recently, I read the book From Airline Reservations to Sonic the Hedgehog: A History of the Software Industry by Martin Campbell-Kelly (2003). Each chapter is illustrated by an official old ad of a software. And I was charmed by the poster of AUTOFLOW, showing the face of a woman with beautiful eyes. http://u1.ipernity.com/17/25/71/9552571.c1e1c1ef.jpg This give me an idea : to make a fake XWiki ad, copying the Autoflow one. Of course, XWiki is a so great wiki that it doesn't need advertising to spread the world. Maybe it can help... It's the result of this idea that I'm glad to give you today. I paid attention to produce this work with public domain material so I think I can publish this poster in the public domain (even if I'm far from being a license specialist). So I encourage you to print it on your t-shirt, on your mug, to modify it, to share it, to redistribute it. I've tried to preserve the message of the ad, just replacing some words, or at least to retain the spirit of the original sentences. But I'm sure you can find better arguments and it's easy to edit with Gimp. This page will show you the fake ad for XWiki in a small size but it's easier to compare with the original work : http://www.ipernity.com/doc/sinclair/9552524 The full work is available in a public google doc folder (you don't need to have an account) https://docs.google.com/leaf?id=0B2p8AuezuBCcZDc2MWY0M2EtNjBiNC00MWRmLWEzZTktNTJmOGVmMTE5MDFjhl=en - copyrights.txt describes the origins of the photo and fonts used - XWikiForChristmas.xcf is the Gimp file of the poster - XWikiForChristmas.jpg is the full resolution image (exported from Gimp) For your information, Autoflow was a software development tool that produces automatically the flowchart of a computer program. In 1965, Autoflow was the first commercial software to be sold as an independant product (not attached to a hardware device). It was a big success for ADR, its editor, with more than 1 units sold. To conclude, I hope this encourage you, the XWiki community, to develop smart features, to maintain a high level of quality and to support kindly stupid users. Long live XWiki and merry Christmas to you and your family. Maxime Sinclair ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Attachments lost !
Piotr Dziubecki wrote: Hi Sergiu, W dniu 10-11-22 12:58, Sergiu Dumitriu wrote: On 11/22/2010 11:20 AM, Piotr Dziubecki wrote: Hi Ricardo, W dniu 10-11-19 19:37, Ricardo Rodriguez [eBioTIC.] wrote: Hi Piotr, Piotr Dziubecki wrote: Hi, today I've noticed that something bad had happen to some of the attachments in my XWiki, here is a screenshot from one of the affected pages: http://i.imgur.com/p6Xs7.png Take a look, a couple of attachments have been uploaded but only one is displayed in the attachment tab. Person who uploaded them claims that yesterday they were ok, but today somehow they disappeared. It's weird that there is no trace of any operation on them after the uploading phase. I'm using XWiki Enterprise 2.5.32127 with MySQL data base (Server version 5.1.47). To add more context, last days my users started to add more attachements to their pages. Currently the database after the dump is around 200 MB large. Also looked at the logs and found several interesting fragments ( all of the log snippets are from the time this have been noticed ): 2010-11-18 09:03:09,355 [http://apps.man.poznan.pl:28181/xwiki/bin/download/Documents/Proposals/2009AUGURISProposalBPartSubmission.pdf?width=1262] ERROR web.XWikiAction - Connection aborted Found a TextHeaderAtom not followed by a TextBytesAtom or TextCharsAtom: Followed by 3999 Found a TextHeaderAtom not followed by a TextBytesAtom or TextCharsAtom: Followed by 3999 Found a TextHeaderAtom not followed by a TextBytesAtom or TextCharsAtom: Followed by 3999 Found a TextHeaderAtom not followed by a TextBytesAtom or TextCharsAtom: Followed by 3999 2010-11-18 13:23:53,118 [http://localhost:28181/xwiki/bin/view/Projects/Opinion+Mining] WARN xwiki.MyPersistentLoginManager - Login cookie validation hash mismatch! Cookies have been tampered with 2010-11-18 13:23:53,119 [http://localhost:28181/xwiki/bin/view/Projects/Opinion+Mining] WARN xwiki.MyPersistentLoginManager - Login cookie validation hash mismatch! Cookies have been tampered with Found a TextHeaderAtom not followed by a TextBytesAtom or TextCharsAtom: Followed by 3999 Found a TextHeaderAtom not followed by a TextBytesAtom or TextCharsAtom: Followed by 3999 Found a TextHeaderAtom not followed by a TextBytesAtom or TextCharsAtom: Followed by 3999 Found a TextHeaderAtom not followed by a TextBytesAtom or TextCharsAtom: Followed by 3999 2010-11-18 13:57:55,471 [Lucene Index Updater] WARN lucene.AttachmentData - error getting content of attachment [2009BEinGRIDwow2greenCONTEXTREVIEW.PPT] for document [xwiki:Documents.Presentations] org.apache.tika.exception.TikaException: TIKA-198: Illegal IOException from org.apache.tika.parser.microsoft.officepar...@72be25d1 at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:138) at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:99) at org.apache.tika.Tika.parseToString(Tika.java:267) at com.xpn.xwiki.plugin.lucene.AttachmentData.getContentAsText(AttachmentData.java:161) at com.xpn.xwiki.plugin.lucene.AttachmentData.getFullText(AttachmentData.java:136) at com.xpn.xwiki.plugin.lucene.IndexData.getFullText(IndexData.java:190) at com.xpn.xwiki.plugin.lucene.IndexData.addDataToLuceneDocument(IndexData.java:146) at com.xpn.xwiki.plugin.lucene.AttachmentData.addDataToLuceneDocument(AttachmentData.java:65) at com.xpn.xwiki.plugin.lucene.IndexUpdater.addToIndex(IndexUpdater.java:296) at com.xpn.xwiki.plugin.lucene.IndexUpdater.updateIndex(IndexUpdater.java:237) at com.xpn.xwiki.plugin.lucene.IndexUpdater.runMainLoop(IndexUpdater.java:171) at com.xpn.xwiki.plugin.lucene.IndexUpdater.runInternal(IndexUpdater.java:153) at com.xpn.xwiki.util.AbstractXWikiRunnable.run(AbstractXWikiRunnable.java:99) at java.lang.Thread.run(Thread.java:662) Caused by: java.io.IOException: Cannot remove block[ 4209 ]; out of range[ 0 - 3804 ] at org.apache.poi.poifs.storage.BlockListImpl.remove(BlockListImpl.java:98) at org.apache.poi.poifs.storage.RawDataBlockList.remove(RawDataBlockList.java:32) at org.apache.poi.poifs.storage.BlockAllocationTableReader.init(BlockAllocationTableReader.java:99) at org.apache.poi.poifs.filesystem.POIFSFileSystem.init(POIFSFileSystem.java:164) at org.apache.tika.parser.microsoft.OfficeParser.parse(OfficeParser.java:74) at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:132) ... 13 more Found a TextHeaderAtom not followed by a TextBytesAtom or TextCharsAtom: Followed by 3999 Found a TextHeaderAtom not followed by a TextBytesAtom or TextCharsAtom: Followed by 3999
[xwiki-users] XWiki farm Powered by XWiki Enterprise 2.6
Hi! Just a one line to congratulate the whole XWiki team and community for getting XWiki farm running in the 2.6 XE/XEM featuring colibri skin. It looks great! Thanks for your work! Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] [xwiki-devs] [Investigation] User Statuses
Jerome Velociter wrote: Hello Caty, For me a key use case of this feature is link/page sharing. Thoughts sharing in enterprise context is not so key IMHO (some could even say it's not relevant, just noise). Page sharing, or Link sharing, in opposition are valuable features in my opinion. Key use cases : * I have finished a first draft of an important document, and want to ask for a fisrt set of reviews/comments ; but I don't want/need to write a lengthy blog post - I post a short status update that link to my document. * I stumbled upon an interesting article/video/etc. on the net, and I want to share it with my team, I post the link together with a short update to describe it, and invite others to visit / view the video I do agree on this idea. We currently use some instant messaging system, email or even the phone here to get a fluent communication on what team members are currently doing. This feature will improve the team feeling without requiring extra-software. Usually is not a problem to get a chat client installed in your desktop computer or laptop, but we envision an ubiquitous work environment available simply by accessing our wiki farm by means of any kind of Internet browser devices. Filtering shared item by type (I mean, ideas could also be shared, but users must be able to select if they want to receive them or not), topic, or author will be mostly welcome. Thanks! So an item with strong value for the user status features as a whole would be a powerful link detection, a la facebook : possibly with previews of videos, images, extract/summary of articles, etc. Jerome. On Mon, Nov 22, 2010 at 2:19 PM, Ecaterina Moraru (Valica) vali...@gmail.com wrote: Hi, There are some features that need to be investigated during the XE 2.7 timeframe in order to be able to integrate them in XE 3.0. One of them is **User Statuses** and a main definition for it is: On top of activity stream http://code.xwiki.org/xwiki/bin/view/Macros/ActivityMacro , create a User status twitter integration feature The question is what should we integrate and cover if we want to have user statuses in XE. In order to deploy mockups I need to have some clear requirements and uses cases. I create some pages on incubator that will gather this mail discussions at: Requirements: http://incubator.myxwiki.org/xwiki/bin/view/Improvements/UserStatusRequirements Use Cases: http://incubator.myxwiki.org/xwiki/bin/view/Improvements/UserStatusUseCases While discussing Activity Stream design we had some design scraps for the status casting part http://incubator.myxwiki.org/xwiki/bin/view/Improvements/UserStatusScrap Please share your vision. Thanks, Caty ___ devs mailing list d...@xwiki.org http://lists.xwiki.org/mailman/listinfo/devs ___ devs mailing list d...@xwiki.org http://lists.xwiki.org/mailman/listinfo/devs -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Attachments lost !
Hi Piotr, Piotr Dziubecki wrote: Hi, today I've noticed that something bad had happen to some of the attachments in my XWiki, here is a screenshot from one of the affected pages: http://i.imgur.com/p6Xs7.png Take a look, a couple of attachments have been uploaded but only one is displayed in the attachment tab. Person who uploaded them claims that yesterday they were ok, but today somehow they disappeared. It's weird that there is no trace of any operation on them after the uploading phase. I'm using XWiki Enterprise 2.5.32127 with MySQL data base (Server version 5.1.47). To add more context, last days my users started to add more attachements to their pages. Currently the database after the dump is around 200 MB large. Also looked at the logs and found several interesting fragments ( all of the log snippets are from the time this have been noticed ): 2010-11-18 09:03:09,355 [http://apps.man.poznan.pl:28181/xwiki/bin/download/Documents/Proposals/2009AUGURISProposalBPartSubmission.pdf?width=1262] ERROR web.XWikiAction - Connection aborted Found a TextHeaderAtom not followed by a TextBytesAtom or TextCharsAtom: Followed by 3999 Found a TextHeaderAtom not followed by a TextBytesAtom or TextCharsAtom: Followed by 3999 Found a TextHeaderAtom not followed by a TextBytesAtom or TextCharsAtom: Followed by 3999 Found a TextHeaderAtom not followed by a TextBytesAtom or TextCharsAtom: Followed by 3999 2010-11-18 13:23:53,118 [http://localhost:28181/xwiki/bin/view/Projects/Opinion+Mining] WARN xwiki.MyPersistentLoginManager - Login cookie validation hash mismatch! Cookies have been tampered with 2010-11-18 13:23:53,119 [http://localhost:28181/xwiki/bin/view/Projects/Opinion+Mining] WARN xwiki.MyPersistentLoginManager - Login cookie validation hash mismatch! Cookies have been tampered with Found a TextHeaderAtom not followed by a TextBytesAtom or TextCharsAtom: Followed by 3999 Found a TextHeaderAtom not followed by a TextBytesAtom or TextCharsAtom: Followed by 3999 Found a TextHeaderAtom not followed by a TextBytesAtom or TextCharsAtom: Followed by 3999 Found a TextHeaderAtom not followed by a TextBytesAtom or TextCharsAtom: Followed by 3999 2010-11-18 13:57:55,471 [Lucene Index Updater] WARN lucene.AttachmentData - error getting content of attachment [2009BEinGRIDwow2greenCONTEXTREVIEW.PPT] for document [xwiki:Documents.Presentations] org.apache.tika.exception.TikaException: TIKA-198: Illegal IOException from org.apache.tika.parser.microsoft.officepar...@72be25d1 at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:138) at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:99) at org.apache.tika.Tika.parseToString(Tika.java:267) at com.xpn.xwiki.plugin.lucene.AttachmentData.getContentAsText(AttachmentData.java:161) at com.xpn.xwiki.plugin.lucene.AttachmentData.getFullText(AttachmentData.java:136) at com.xpn.xwiki.plugin.lucene.IndexData.getFullText(IndexData.java:190) at com.xpn.xwiki.plugin.lucene.IndexData.addDataToLuceneDocument(IndexData.java:146) at com.xpn.xwiki.plugin.lucene.AttachmentData.addDataToLuceneDocument(AttachmentData.java:65) at com.xpn.xwiki.plugin.lucene.IndexUpdater.addToIndex(IndexUpdater.java:296) at com.xpn.xwiki.plugin.lucene.IndexUpdater.updateIndex(IndexUpdater.java:237) at com.xpn.xwiki.plugin.lucene.IndexUpdater.runMainLoop(IndexUpdater.java:171) at com.xpn.xwiki.plugin.lucene.IndexUpdater.runInternal(IndexUpdater.java:153) at com.xpn.xwiki.util.AbstractXWikiRunnable.run(AbstractXWikiRunnable.java:99) at java.lang.Thread.run(Thread.java:662) Caused by: java.io.IOException: Cannot remove block[ 4209 ]; out of range[ 0 - 3804 ] at org.apache.poi.poifs.storage.BlockListImpl.remove(BlockListImpl.java:98) at org.apache.poi.poifs.storage.RawDataBlockList.remove(RawDataBlockList.java:32) at org.apache.poi.poifs.storage.BlockAllocationTableReader.init(BlockAllocationTableReader.java:99) at org.apache.poi.poifs.filesystem.POIFSFileSystem.init(POIFSFileSystem.java:164) at org.apache.tika.parser.microsoft.OfficeParser.parse(OfficeParser.java:74) at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:132) ... 13 more Found a TextHeaderAtom not followed by a TextBytesAtom or TextCharsAtom: Followed by 3999 Found a TextHeaderAtom not followed by a TextBytesAtom or TextCharsAtom: Followed by 3999 Found a TextHeaderAtom not followed by a TextBytesAtom or TextCharsAtom: Followed by 3999 Found a TextHeaderAtom not followed by a TextBytesAtom or TextCharsAtom: Followed by 3999 Found a TextHeaderAtom not followed by a TextBytesAtom or TextCharsAtom: Followed by 4006 Found a
Re: [xwiki-users] showing/hiding annotations entry in contentmenu
Marius Dumitru Florea wrote: On 11/17/2010 09:24 AM, Ricardo Rodriguez [eBioTIC.] wrote: Marius Dumitru Florea wrote: On 11/16/2010 01:24 AM, Ricardo Rodriguez [eBioTIC.] wrote: Marius Dumitru Florea wrote: On 11/15/2010 03:05 PM, Sergiu Dumitriu wrote: On 11/15/2010 09:18 AM, Raluca Stavro wrote: Hello Ricardo, Yes, you can use velocity code inside SSX and JSX objects. What you need to do is to set the 'Parse content' property to 'Yes'. You can take a look at the SSX documentation: http://code.xwiki.org/xwiki/bin/view/Plugins/SkinExtensionsPlugin#HTip:Howtoreferafilefromaskinextension . Example of usage: #if(!$hasEdit) #body{ background-color: red; } #end This is problematic, since the extension is cached on the clientside (browser cache). So if a user visits the wiki once unauthenticated, after he logs in the same CSS file (already parsed) is used, so nothing will change in the UI. To load the re-parsed CSS, either refresh the browser cache, or you can set the Cache property of the extension to Forbid, which is bad for performance. In this particular case changing the JavaScript code that loads the annotation feature is better IMO. I tried but failed to do that. Ricardo, did you check AnnotationCode.Script ? I can see these lines at the end of the second JSX (named Annotation Javascript -- Annotation application): // if the action on the current document is not view, don't load annotations if (XWiki.contextaction != view) { return; } I'm sure you can extend the test for your needs. Hope this helps, Marius I think I get the point. Even though I'm not able to understand this script now or how to tweak it, I understand that this option blocks the loading process of the annotation feature. It is cheaper to do that as it stops a process not required for a given type of users. But, please, one more question. When is this script executed? Each time a document is loaded or even reloaded? The JavaScript code of this extension is evaluated (loaded into browser's memory) for each wiki page, and the code at the end of the second JSX object is executed after a wiki page finished loading (in the browser): document.observe('xwiki:dom:loaded', function() { ... // code executed after the page finished loading. }); Does this match your needs: document.observe('xwiki:dom:loaded', function() { // if the action on the current document is not view, don't load annotations if (XWiki.contextaction != view || !XWiki.hasEdit) { return; } ...// the rest of the code that loads the annotation feature. }); It works without a glitch (XE 2.7-SNAPSHOT.32908). I think it is more elegant than tweaking CSS and doesn't compromise performance. Thanks! Note that XWiki.hasEdit is defined in javascript.vm . And this is the reason why I'm not forced to include xwikivars.vm in the modified JSX. Please, am I right? I could use !$hasEdit, but then I must include #template('xwikivars.vm'). I've tried and it seems to work fine. Exactly. Please, why don't directly use !$xwiki.hasAccessLevel('edit')? To avoid (re)evaluating/recomputing the edit right multiple times (it may be costly). The value returned by $xwiki.hasAccessLevel('edit') is cached in $hasEdit to speed up the page loading time. $hasEdit (velocity, server-side) is also send to the client side in the value of the hasEdit property of XWiki JavaScript object. Hope this helps, Marius Far clear! Thanks! Thanks! Hope this helps, Marius Thanks! Raluca. On Mon, Nov 15, 2010 at 12:36 AM, Ricardo Rodriguez [eBioTIC.] ricardo.rodrig...@ebiotic.net wrote: Ricardo Rodriguez [eBioTIC.] wrote: Hi, I see how to control edit, export, action and watch appearance in contentmenu div by tweaking contentmenu.vm. But, please, how could I get the same control over Annotations entry in the same are? I want to show annotations only to users with edit rights in a given doc. Thanks! Ricardo The object of type XWiki.StyleSheetExtension in AnnotationCode.Style holds the code that seems to control how the action menu entry is shown. Currently, to hide the annotation icon on this menu will be enough for me. I can add visibility:hidden; to the concerned .actionmenu elements, but this also hides them for users with edit rights. Please, is it possible to add ##if($hasEdit)...#else...#end structures in a SSE? My bet is that this is not possible: this extensions holds CSS code, not a script. So, please, how could I introduce conditional structures to control how page elements are show? I guess I must tweak AnnotationCode.Script but, please, how
Re: [xwiki-users] showing/hiding annotations entry in contentmenu
Sergiu Dumitriu wrote: On 11/16/2010 12:06 AM, Ricardo Rodriguez [eBioTIC.] wrote: Raluca Stavro wrote: Hi, On Mon, Nov 15, 2010 at 3:05 PM, Sergiu Dumitriuser...@xwiki.com wrote: On 11/15/2010 09:18 AM, Raluca Stavro wrote: Hello Ricardo, Yes, you can use velocity code inside SSX and JSX objects. What you need to do is to set the 'Parse content' property to 'Yes'. You can take a look at the SSX documentation: http://code.xwiki.org/xwiki/bin/view/Plugins/SkinExtensionsPlugin#HTip:Howtoreferafilefromaskinextension . Example of usage: #if(!$hasEdit) #body{ background-color: red; } #end This is problematic, since the extension is cached on the clientside (browser cache). So if a user visits the wiki once unauthenticated, after he logs in the same CSS file (already parsed) is used, so nothing will change in the UI. To load the re-parsed CSS, either refresh the browser cache, or you can set the Cache property of the extension to Forbid, which is bad for performance. You are right, Sergiu. Another solution would be to use different ssx objects from different documents (supposing that the SSX are being used on demand). For example: * Space1.Page1 having an SSX object - for common styles * Space2.Page2 having another SSX object - for users that have edit rights In the velocity code (a template or a page in wiki mode), you can do this: $xwiki.ssx.use('Space1.Page1')## common styles #if($hasEdit) $xwiki.ssx.use('Space2.Page2')## styles for users that have edit rights #end Raluca. OK! Please, one question here. I see in AnnotationCode.Script two XWiki.JavaScriptExtension objects. AnnotationCode.Style has only one XWiki.StyleSheetExtension object and you are proposing two documents, each of them holding one SSX object. So, I understand that only one SSX could be hold by a document or at least only one SSX can be addressed by each document. Am I right? Thanks! A document can have as many ssx or jsx object as it needs, but a skin extension is identified by the name of the document, so in the end an extension is a document. The content of a skin extension is the concatenation of the objects in that document, so it's impossible to write two different extensions in a single document, only different parts of the same extension. I would like to add this paragraph to... http://platform.xwiki.org/xwiki/bin/view/DevGuide/SkinExtensionsTutorial#HMinimalStyleSheeteXtension ...as an {{info}} block. Do you agree? Thanks! Raluca. On Mon, Nov 15, 2010 at 12:36 AM, Ricardo Rodriguez [eBioTIC.] ricardo.rodrig...@ebiotic.net wrote: Ricardo Rodriguez [eBioTIC.] wrote: Hi, I see how to control edit, export, action and watch appearance in contentmenu div by tweaking contentmenu.vm. But, please, how could I get the same control over Annotations entry in the same are? I want to show annotations only to users with edit rights in a given doc. Thanks! Ricardo The object of type XWiki.StyleSheetExtension in AnnotationCode.Style holds the code that seems to control how the action menu entry is shown. Currently, to hide the annotation icon on this menu will be enough for me. I can add visibility:hidden; to the concerned .actionmenu elements, but this also hides them for users with edit rights. Please, is it possible to add ##if($hasEdit)...#else...#end structures in a SSE? My bet is that this is not possible: this extensions holds CSS code, not a script. So, please, how could I introduce conditional structures to control how page elements are show? I guess I must tweak AnnotationCode.Script but, please, how? Any help will be welcome! Thanks. Best, Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Error on MapMacro
Hi! Gerritjan Koekkoek wrote: Hello I've imported the MapMacro into my test XWIKI. If I go to the page imported XWiki/MapMacro the 2 examples show each 2 errors. 1. Failed to execute the [code] macro 2. Not a inline macro In the details of error 1 I see a out-of-memory error, i'm running on Mac OS X 10.6.5, Tomcat 6.0.29, mySQL 5.1.50 and XWiki 2.5.1.32531 Perhaps you having two different errors. Please, check: http://jira.xwiki.org/jira/browse/XWIKI-4048 and http://www.xwiki.org/xwiki/bin/view/FAQ/HowToSolveAJavaHeapMemoryError It is working for me in a XE 2.7-SNAPSHOT.32908 (Mac OS X 10.5.8, Tomcat 6.0.18, MySQL 5.1.51) with export CATALINA_OPTS=-Xmx256m -Xms256m export JAVA_OPTS=-Xmx256m -Xms256m Details on error 1; org.xwiki.rendering.macro.MacroExecutionException: Failed to highlight content at org.xwiki.rendering.internal.macro.code.CodeMacro.parseContent(CodeMacro.java:101) at org.xwiki.rendering.internal.macro.code.CodeMacro.parseContent(CodeMacro.java:47) at org.xwiki.rendering.macro.box.AbstractBoxMacro.execute(AbstractBoxMacro.java:124) at org.xwiki.rendering.macro.box.AbstractBoxMacro.execute(AbstractBoxMacro.java:55) at org.xwiki.rendering.internal.transformation.MacroTransformation.transformOnce(MacroTransformation.java:172) at org.xwiki.rendering.internal.transformation.MacroTransformation.transform(MacroTransformation.java:117) at org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:85) at com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:7405) at com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:7355) at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:831) at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:782) at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:874) at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:537) at sun.reflect.GeneratedMethodAccessor388.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252) at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:493) at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71) at org.apache.velocity.runtime.parser.node.ASTSetDirect ive.render(ASTSetDirective.java:142) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336) at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:196) at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:161) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:116) at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:1862) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1800) at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:896) at sun.reflect.GeneratedMethodAccessor155.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:332) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:212) at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:247) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87) at
Re: [xwiki-users] showing/hiding annotations entry in contentmenu
Marius Dumitru Florea wrote: On 11/16/2010 01:24 AM, Ricardo Rodriguez [eBioTIC.] wrote: Marius Dumitru Florea wrote: On 11/15/2010 03:05 PM, Sergiu Dumitriu wrote: On 11/15/2010 09:18 AM, Raluca Stavro wrote: Hello Ricardo, Yes, you can use velocity code inside SSX and JSX objects. What you need to do is to set the 'Parse content' property to 'Yes'. You can take a look at the SSX documentation: http://code.xwiki.org/xwiki/bin/view/Plugins/SkinExtensionsPlugin#HTip:Howtoreferafilefromaskinextension . Example of usage: #if(!$hasEdit) #body{ background-color: red; } #end This is problematic, since the extension is cached on the clientside (browser cache). So if a user visits the wiki once unauthenticated, after he logs in the same CSS file (already parsed) is used, so nothing will change in the UI. To load the re-parsed CSS, either refresh the browser cache, or you can set the Cache property of the extension to Forbid, which is bad for performance. In this particular case changing the JavaScript code that loads the annotation feature is better IMO. I tried but failed to do that. Ricardo, did you check AnnotationCode.Script ? I can see these lines at the end of the second JSX (named Annotation Javascript -- Annotation application): // if the action on the current document is not view, don't load annotations if (XWiki.contextaction != view) { return; } I'm sure you can extend the test for your needs. Hope this helps, Marius I think I get the point. Even though I'm not able to understand this script now or how to tweak it, I understand that this option blocks the loading process of the annotation feature. It is cheaper to do that as it stops a process not required for a given type of users. But, please, one more question. When is this script executed? Each time a document is loaded or even reloaded? The JavaScript code of this extension is evaluated (loaded into browser's memory) for each wiki page, and the code at the end of the second JSX object is executed after a wiki page finished loading (in the browser): document.observe('xwiki:dom:loaded', function() { ... // code executed after the page finished loading. }); Does this match your needs: document.observe('xwiki:dom:loaded', function() { // if the action on the current document is not view, don't load annotations if (XWiki.contextaction != view || !XWiki.hasEdit) { return; } ...// the rest of the code that loads the annotation feature. }); It works without a glitch (XE 2.7-SNAPSHOT.32908). I think it is more elegant than tweaking CSS and doesn't compromise performance. Thanks! Note that XWiki.hasEdit is defined in javascript.vm . And this is the reason why I'm not forced to include xwikivars.vm in the modified JSX. Please, am I right? I could use !$hasEdit, but then I must include #template('xwikivars.vm'). I've tried and it seems to work fine. Please, why don't directly use !$xwiki.hasAccessLevel('edit')? Thanks! Hope this helps, Marius Thanks! Raluca. On Mon, Nov 15, 2010 at 12:36 AM, Ricardo Rodriguez [eBioTIC.] ricardo.rodrig...@ebiotic.netwrote: Ricardo Rodriguez [eBioTIC.] wrote: Hi, I see how to control edit, export, action and watch appearance in contentmenu div by tweaking contentmenu.vm. But, please, how could I get the same control over Annotations entry in the same are? I want to show annotations only to users with edit rights in a given doc. Thanks! Ricardo The object of type XWiki.StyleSheetExtension in AnnotationCode.Style holds the code that seems to control how the action menu entry is shown. Currently, to hide the annotation icon on this menu will be enough for me. I can add visibility:hidden; to the concerned .actionmenu elements, but this also hides them for users with edit rights. Please, is it possible to add ##if($hasEdit)...#else...#end structures in a SSE? My bet is that this is not possible: this extensions holds CSS code, not a script. So, please, how could I introduce conditional structures to control how page elements are show? I guess I must tweak AnnotationCode.Script but, please, how? Any help will be welcome! Thanks. Best, Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ 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
Re: [xwiki-users] showing/hiding annotations entry in contentmenu
Hi Raluca! Raluca Stavro wrote: Hello Ricardo, Yes, you can use velocity code inside SSX and JSX objects. What you need to do is to set the 'Parse content' property to 'Yes'. You can take a look at the SSX documentation: http://code.xwiki.org/xwiki/bin/view/Plugins/SkinExtensionsPlugin#HTip:Howtoreferafilefromaskinextension . Example of usage: #if(!$hasEdit) #body{ background-color: red; } #end Thanks! It is great to be able to use Velocity inside SSX and JSX! But I'm facing some problems. Please, see this: #set( $fruit = orange ) /* Menu */ .actionmenu #tmAnnotations { background-image: #imgURL('note') !important; /* Padding, margin and bg-position are adjusted in order to give this element the 'tab' look when active and the settings panel is displayed */ background-position: 0 1px; padding-right: 5px !important; padding-top: 0 !important; padding-bottom: 4px; margin-right: 5px !important; margin-top: 2px !important; #if($fruit == apple)visibility:hidden;#end } This evaluates correctly. But I'm not able to get this working: #if($isGuest)visibility:hidden;#end or #if(!$hasEdit)visibility:hidden;#end I've never get visibility:hidden; in. Those same expressions work fine in a simple XWiki 1.0 syntax doc. I get visibility:hidden; printed out when expected. Please, do you know why these two expressions don't work inside a XWiki.StyleSheetExtension object? Thanks! Raluca. On Mon, Nov 15, 2010 at 12:36 AM, Ricardo Rodriguez [eBioTIC.] ricardo.rodrig...@ebiotic.net wrote: Ricardo Rodriguez [eBioTIC.] wrote: Hi, I see how to control edit, export, action and watch appearance in contentmenu div by tweaking contentmenu.vm. But, please, how could I get the same control over Annotations entry in the same are? I want to show annotations only to users with edit rights in a given doc. Thanks! Ricardo The object of type XWiki.StyleSheetExtension in AnnotationCode.Style holds the code that seems to control how the action menu entry is shown. Currently, to hide the annotation icon on this menu will be enough for me. I can add visibility:hidden; to the concerned .actionmenu elements, but this also hides them for users with edit rights. Please, is it possible to add ##if($hasEdit)...#else...#end structures in a SSE? My bet is that this is not possible: this extensions holds CSS code, not a script. So, please, how could I introduce conditional structures to control how page elements are show? I guess I must tweak AnnotationCode.Script but, please, how? Any help will be welcome! Thanks. Best, Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ 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 -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] This object is currently locked by - section editing
Piotr Dziubecki wrote: W dniu 10-11-13 09:50, Ricardo Rodriguez [eBioTIC.] wrote: Piotr Dziubecki wrote: W dniu 10-11-04 21:28, [Ricardo Rodriguez] eBioTIC. wrote: Piotr Dziubecki wrote: W dniu 10-11-04 12:13, [Ricardo Rodriguez] eBioTIC. wrote: Piotr Dziubecki wrote: Hi :) W dniu 10-11-04 11:08, [Ricardo Rodriguez] eBioTIC. wrote: Hi! Piotr Dziubecki wrote: Hello :) I configured my XWiki instance in the following way: #-# This parameter will activate the sectional editing. xwiki.section.edit=1 #-# This parameter controls the depth of sections that have section editing. #-# By default level 1 and level 2 sections have section editing. xwiki.section.depth=6 I have many users working on documents simultaneously and in order to minimize document locking and possible merging I encourage them to edit sections/paragraphs instead. I noticed that when, for instance, two users edit different sections within the same page, the latter gets the message: This object is currently locked by user1 I checked and it's possible to force editing and save both of concurrent changes to that document, but the message itself is a bit confusing to the users. I'm asking if it's possible to change xwiki configuration to not display that message when the users edit different paragraphs within the same page ? To the best of my understanding locking is set a document level. So, if any user edits a section, all other users will receive that message. I think what you are doing is a bit risky. I've had here some problems following the same problem. When an user received this message, although she/he is editing only a section, there is no way of knowing if they are in the same section or in a different one. Even more, if you edit a document using the same user at two different locations, you won't receive the locking message. Yes, I came from the Media Wiki and section editing is pretty popular way of collaborative editing ( avoiding the whole page locks ). I also arrives to XWiki from MediaWiki years ago. So, with the current MediaWiki release, is it possible to do section edition and get a warning only if two users edit the same section? Thanks! To be sure, I did some tests here: http://www.mediawiki.org/wiki/Sandbox no warnings, you can even edit the same section but then you'll need to get through the merge phase. In that case you see such a message: Someone else has changed this page since you started editing it. The upper text area contains the page text as it currently exists. Your changes are shown in the lower text area. You will have to merge your changes into the existing text. Well, I don't see this blocking behaviour working with MediaWiki sandbox... I don't know why! In any case, MediaWiki is not the case here! Just summing up: Thanks for that summary, let me comment on your thoughts: 1. Simultaneous edition is possible, but not advisable with the current XWiki release. Yes, especially that there is no merge phase after concurrent editing ( or maybe there is a 'merge plugin' - I'd be grateful for any info on that ). In that case you end up with the article content overridden by someone else and your only hope is to dig in the document's history and try to fix edits manually. 2. Locking is done at document level. Is that going to change in the future ? In my opinion that basically blocks user groups/communities from working on the documents in a collaborative way. Is it much work to make that lock 'section sensitive', architecture-wise ? If someone could describe what should be done / changed in order to achieve that, maybe we could figure out a solution for that issue. 3. A true real-time edition editor for XWiki is on its way and will solve all these issues! Well, it could be, but it's based on the js/ajax - it could be tricky to achieve a good level of compatibility between browsers ( of course it could be done, Google docs is a good example here ). Of course I'd take that right away in the stable form. But I think merging/lock on the section level could be more than enough for the ordinary wiki users ( Wikipedia is basing on that model on a huge scale and it's doing fine ;) ) It will be great if some developer or more skilled user could review this statements to confirm/deny/complete them! Thanks! I concur. Currently I'm struggling to figure out how to get over that problem. I can tell my users just to ignore the lock message, but that is not super safe and could cause a content loss/corruption. Looking forward to your feedback guys ! I do agree with you, Piotr. In fact, when I present
Re: [xwiki-users] showing/hiding annotations entry in contentmenu
Sergiu Dumitriu wrote: On 11/15/2010 09:18 AM, Raluca Stavro wrote: Hello Ricardo, Yes, you can use velocity code inside SSX and JSX objects. What you need to do is to set the 'Parse content' property to 'Yes'. You can take a look at the SSX documentation: http://code.xwiki.org/xwiki/bin/view/Plugins/SkinExtensionsPlugin#HTip:Howtoreferafilefromaskinextension . Example of usage: #if(!$hasEdit) #body{ background-color: red; } #end This is problematic, since the extension is cached on the clientside (browser cache). So if a user visits the wiki once unauthenticated, after he logs in the same CSS file (already parsed) is used, so nothing will change in the UI. To load the re-parsed CSS, either refresh the browser cache, or you can set the Cache property of the extension to Forbid, which is bad for performance. I adopted this solution here sacrificing performance as I need the described behaviour (Annotation shown only for registered users). But I still get see some weird thing I've not been able to consistently reproduce yet. I'm using a XE/XEM 2.4.30451 in production and a XE 2.7-SNAPSHOT.32908 as trial environment. I'll keep this thread updated or open new ones as required when I gather more information! An example: Working with a virtual wiki. I've modified AnnotationCode.Style (XWiki.StyleSheetExtension) this way... ## Defining global variables; added by Ricardo Rodriguez on November the 15th to apply conditional rules to CSS #template('xwikivars.vm') /* Menu */ .actionmenu #tmAnnotations { background-image: #imgURL('note') !important; /* Padding, margin and bg-position are adjusted in order to give this element the 'tab' look when active and the settings panel is displayed */ background-position: 0 1px; padding-right: 5px !important; padding-top: 0 !important; padding-bottom: 4px; margin-right: 5px !important; margin-top: 2px !important; #if($isGuest)visibility:hidden;#end } .actionmenu #tmAnnotations a { padding-top: 0 !important; } .actionmenu .active { background-color: $theme.pageContentBackgroundColor; ##$theme.backgroundSecondaryColor; } .actionmenu .active a { color: $theme.menuSelectedEntryLinkColor !important; } I never see Annotations in the right side of the action bar when browsing the site as Guest. When I log in, Annotations appears. And it persists consistently throughout the site for all spaces but those set as exceptions in the Annotations configuration panel. BUT, if I reload a page, any page, Annotations disappears. I cleaned the cache, restarted the browser, restarted the computer,... Nothing. By reloading the page several times, it ends appearing again. But I'm not able to find a pattern. ONE FUNNY THING: if Firebug Console is on, the reload is OK. Annotations persists. Those are the errors logged by Firebug: * xpected end of value but found ':'. Error in parsing value for 'text-transform'. Declaration dropped. [Break on this error] .actionmenu #tmAnnotations{background-...ontent blockquote{margin-bottom:10px;} Style?language=en (line 1) Unknown property 'border-radius'. Declaration dropped. [Break on this error] border-radius: 1.2em; colibri.css (line 205) Unknown property 'border-radius'. Declaration dropped. [Break on this error] border-radius: 1.2em; * XE 2.7-SNAPSHOT.32908 doesn't show this behaviour. Please, any idea? I don't know if this relates with any know issue or it relates with any error on my side. Any idea will be welcome! Thanks! Raluca. On Mon, Nov 15, 2010 at 12:36 AM, Ricardo Rodriguez [eBioTIC.] ricardo.rodrig...@ebiotic.net wrote: Ricardo Rodriguez [eBioTIC.] wrote: Hi, I see how to control edit, export, action and watch appearance in contentmenu div by tweaking contentmenu.vm. But, please, how could I get the same control over Annotations entry in the same are? I want to show annotations only to users with edit rights in a given doc. Thanks! Ricardo The object of type XWiki.StyleSheetExtension in AnnotationCode.Style holds the code that seems to control how the action menu entry is shown. Currently, to hide the annotation icon on this menu will be enough for me. I can add visibility:hidden; to the concerned .actionmenu elements, but this also hides them for users with edit rights. Please, is it possible to add ##if($hasEdit)...#else...#end structures in a SSE? My bet is that this is not possible: this extensions holds CSS code, not a script. So, please, how could I introduce conditional structures to control how page elements are show? I guess I must tweak AnnotationCode.Script but, please, how? Any help will be welcome! Thanks. Best, Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo
Re: [xwiki-users] showing/hiding annotations entry in contentmenu
Raluca Stavro wrote: Hi, On Mon, Nov 15, 2010 at 3:05 PM, Sergiu Dumitriu ser...@xwiki.com wrote: On 11/15/2010 09:18 AM, Raluca Stavro wrote: Hello Ricardo, Yes, you can use velocity code inside SSX and JSX objects. What you need to do is to set the 'Parse content' property to 'Yes'. You can take a look at the SSX documentation: http://code.xwiki.org/xwiki/bin/view/Plugins/SkinExtensionsPlugin#HTip:Howtoreferafilefromaskinextension . Example of usage: #if(!$hasEdit) #body{ background-color: red; } #end This is problematic, since the extension is cached on the clientside (browser cache). So if a user visits the wiki once unauthenticated, after he logs in the same CSS file (already parsed) is used, so nothing will change in the UI. To load the re-parsed CSS, either refresh the browser cache, or you can set the Cache property of the extension to Forbid, which is bad for performance. You are right, Sergiu. Another solution would be to use different ssx objects from different documents (supposing that the SSX are being used on demand). For example: * Space1.Page1 having an SSX object - for common styles * Space2.Page2 having another SSX object - for users that have edit rights In the velocity code (a template or a page in wiki mode), you can do this: $xwiki.ssx.use('Space1.Page1')## common styles #if($hasEdit) $xwiki.ssx.use('Space2.Page2')## styles for users that have edit rights #end Raluca. OK! Please, one question here. I see in AnnotationCode.Script two XWiki.JavaScriptExtension objects. AnnotationCode.Style has only one XWiki.StyleSheetExtension object and you are proposing two documents, each of them holding one SSX object. So, I understand that only one SSX could be hold by a document or at least only one SSX can be addressed by each document. Am I right? Thanks! Raluca. On Mon, Nov 15, 2010 at 12:36 AM, Ricardo Rodriguez [eBioTIC.] ricardo.rodrig...@ebiotic.net wrote: Ricardo Rodriguez [eBioTIC.] wrote: Hi, I see how to control edit, export, action and watch appearance in contentmenu div by tweaking contentmenu.vm. But, please, how could I get the same control over Annotations entry in the same are? I want to show annotations only to users with edit rights in a given doc. Thanks! Ricardo The object of type XWiki.StyleSheetExtension in AnnotationCode.Style holds the code that seems to control how the action menu entry is shown. Currently, to hide the annotation icon on this menu will be enough for me. I can add visibility:hidden; to the concerned .actionmenu elements, but this also hides them for users with edit rights. Please, is it possible to add ##if($hasEdit)...#else...#end structures in a SSE? My bet is that this is not possible: this extensions holds CSS code, not a script. So, please, how could I introduce conditional structures to control how page elements are show? I guess I must tweak AnnotationCode.Script but, please, how? Any help will be welcome! Thanks. Best, Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ 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 -- Sergiu Dumitriu 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 -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] showing/hiding annotations entry in contentmenu
Marius Dumitru Florea wrote: On 11/15/2010 03:05 PM, Sergiu Dumitriu wrote: On 11/15/2010 09:18 AM, Raluca Stavro wrote: Hello Ricardo, Yes, you can use velocity code inside SSX and JSX objects. What you need to do is to set the 'Parse content' property to 'Yes'. You can take a look at the SSX documentation: http://code.xwiki.org/xwiki/bin/view/Plugins/SkinExtensionsPlugin#HTip:Howtoreferafilefromaskinextension . Example of usage: #if(!$hasEdit) #body{ background-color: red; } #end This is problematic, since the extension is cached on the clientside (browser cache). So if a user visits the wiki once unauthenticated, after he logs in the same CSS file (already parsed) is used, so nothing will change in the UI. To load the re-parsed CSS, either refresh the browser cache, or you can set the Cache property of the extension to Forbid, which is bad for performance. In this particular case changing the JavaScript code that loads the annotation feature is better IMO. I tried but failed to do that. Ricardo, did you check AnnotationCode.Script ? I can see these lines at the end of the second JSX (named Annotation Javascript -- Annotation application): // if the action on the current document is not view, don't load annotations if (XWiki.contextaction != view) { return; } I'm sure you can extend the test for your needs. Hope this helps, Marius I think I get the point. Even though I'm not able to understand this script now or how to tweak it, I understand that this option blocks the loading process of the annotation feature. It is cheaper to do that as it stops a process not required for a given type of users. But, please, one more question. When is this script executed? Each time a document is loaded or even reloaded? Thanks! Raluca. On Mon, Nov 15, 2010 at 12:36 AM, Ricardo Rodriguez [eBioTIC.] ricardo.rodrig...@ebiotic.net wrote: Ricardo Rodriguez [eBioTIC.] wrote: Hi, I see how to control edit, export, action and watch appearance in contentmenu div by tweaking contentmenu.vm. But, please, how could I get the same control over Annotations entry in the same are? I want to show annotations only to users with edit rights in a given doc. Thanks! Ricardo The object of type XWiki.StyleSheetExtension in AnnotationCode.Style holds the code that seems to control how the action menu entry is shown. Currently, to hide the annotation icon on this menu will be enough for me. I can add visibility:hidden; to the concerned .actionmenu elements, but this also hides them for users with edit rights. Please, is it possible to add ##if($hasEdit)...#else...#end structures in a SSE? My bet is that this is not possible: this extensions holds CSS code, not a script. So, please, how could I introduce conditional structures to control how page elements are show? I guess I must tweak AnnotationCode.Script but, please, how? Any help will be welcome! Thanks. Best, Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ 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 -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] showing/hiding annotations entry in contentmenu
Vincent Massol wrote: On Nov 15, 2010, at 10:12 PM, Ricardo Rodriguez [eBioTIC.] wrote: Sergiu Dumitriu wrote: On 11/15/2010 01:15 PM, Ricardo Rodriguez [eBioTIC.] wrote: Hi Raluca! Raluca Stavro wrote: Hello Ricardo, Yes, you can use velocity code inside SSX and JSX objects. What you need to do is to set the 'Parse content' property to 'Yes'. You can take a look at the SSX documentation: http://code.xwiki.org/xwiki/bin/view/Plugins/SkinExtensionsPlugin#HTip:Howtoreferafilefromaskinextension . Example of usage: #if(!$hasEdit) #body{ background-color: red; } #end Thanks! It is great to be able to use Velocity inside SSX and JSX! But I'm facing some problems. Please, see this: #set( $fruit = orange ) /* Menu */ .actionmenu #tmAnnotations { background-image: #imgURL('note') !important; /* Padding, margin and bg-position are adjusted in order to give this element the 'tab' look when active and the settings panel is displayed */ background-position: 0 1px; padding-right: 5px !important; padding-top: 0 !important; padding-bottom: 4px; margin-right: 5px !important; margin-top: 2px !important; #if($fruit == apple)visibility:hidden;#end } This evaluates correctly. But I'm not able to get this working: #if($isGuest)visibility:hidden;#end or #if(!$hasEdit)visibility:hidden;#end I've never get visibility:hidden; in. Those same expressions work fine in a simple XWiki 1.0 syntax doc. I get visibility:hidden; printed out when expected. Please, do you know why these two expressions don't work inside a XWiki.StyleSheetExtension object? These variables are defined in xwikivars.vm, which is parsed when rendering a document with the surrounding UI. You can either use the API code that was used to set those variables, or you can add this line at the top: #template('xwikivars.vm') Thanks, Sergiu. I clearly keeps failing at getting a clear general idea about how XWiki produces the output of a document. Time ago I started to create a kind of flowchart showing the relationships among templates, templates and actions and actions. Please, could you tell me if this is an good actual starting point to understanding this process? http://dev.xwiki.org/xwiki/bin/view/Design/FrontEndArchitecture This is a design document for the future. This hasn't been really discussed yet and it represents how Thomas and me see how the front end architecture could be modeled in the future. Right now it's: http://platform.xwiki.org/xwiki/bin/view/DevGuide/Architecture#HHTTPRequestAnalysis Thanks -Vincent Thanks! Thanks! Thanks! Raluca. On Mon, Nov 15, 2010 at 12:36 AM, Ricardo Rodriguez [eBioTIC.] ricardo.rodrig...@ebiotic.net wrote: Ricardo Rodriguez [eBioTIC.] wrote: Hi, I see how to control edit, export, action and watch appearance in contentmenu div by tweaking contentmenu.vm. But, please, how could I get the same control over Annotations entry in the same are? I want to show annotations only to users with edit rights in a given doc. Thanks! Ricardo The object of type XWiki.StyleSheetExtension in AnnotationCode.Style holds the code that seems to control how the action menu entry is shown. Currently, to hide the annotation icon on this menu will be enough for me. I can add visibility:hidden; to the concerned .actionmenu elements, but this also hides them for users with edit rights. Please, is it possible to add ##if($hasEdit)...#else...#end structures in a SSE? My bet is that this is not possible: this extensions holds CSS code, not a script. So, please, how could I introduce conditional structures to control how page elements are show? I guess I must tweak AnnotationCode.Script but, please, how? Any help will be welcome! Thanks. Best, Ricardo ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Automatically list and link files in a directory with Groovy
Lockie wrote: Okay I got it working and I'm very happy with the result! I'll share what I did incase anyone else is interested in doing this. Note that the links don't work in Firefox (the file:// part doesn't seem to generate). My users only use IE so I didn't really explore this problem, but you can play around with it to get it working. Also, the user has to have access to the directory so this is only useful on an Intranet with networked drives. First step install the PHP Macro, then copy/paste this code in your page making sure you change the desired drive. {{velocity}} $xwiki.jsfx.use(js/xwiki/table/tablefilterNsort.js) $xwiki.ssfx.use(js/xwiki/table/table.css) {{/velocity}} {{php}} {{html}} table id=formList class=grid sortable filterable doOddEven cellpadding=0 cellspacing=0 border=0 tr class=sortHeader thForm Name/th thPath/th /tr ?php $dirname = R:/Quality/FORMS/; $dir = opendir($dirname); while(false != ($file = readdir($dir))) { if(($file != .) and ($file != ..)) { echo(tr td$file /td); echo(td $dirname$file Open Form /td /tr); } } ? /table {{/html}} {{/php}} This results in a filterable table with a list of all the files in the directory and subfolders of it with the file names in the left column and a link to open the file in the right column. Regards, - Lockie Thanks, Lockie. I've not used this yet. If I'm not wrong, I think that some PHP developer here will be happy to use some of the scripts they have programmed within XWiki :-) Greetings, Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] showing/hiding annotations entry in contentmenu
Hi, I see how to control edit, export, action and watch appearance in contentmenu div by tweaking contentmenu.vm. But, please, how could I get the same control over Annotations entry in the same are? I want to show annotations only to users with edit rights in a given doc. Thanks! Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] showing/hiding annotations entry in contentmenu
Ricardo Rodriguez [eBioTIC.] wrote: Hi, I see how to control edit, export, action and watch appearance in contentmenu div by tweaking contentmenu.vm. But, please, how could I get the same control over Annotations entry in the same are? I want to show annotations only to users with edit rights in a given doc. Thanks! Ricardo The object of type XWiki.StyleSheetExtension in AnnotationCode.Style holds the code that seems to control how the action menu entry is shown. Currently, to hide the annotation icon on this menu will be enough for me. I can add visibility:hidden; to the concerned .actionmenu elements, but this also hides them for users with edit rights. Please, is it possible to add ##if($hasEdit)...#else...#end structures in a SSE? My bet is that this is not possible: this extensions holds CSS code, not a script. So, please, how could I introduce conditional structures to control how page elements are show? I guess I must tweak AnnotationCode.Script but, please, how? Any help will be welcome! Thanks. Best, Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Extended Todo Application installation notes
Hi, afrey wrote: Gaetan, you mentioned that you imported and used the Todo Application. Could you please explain or point me to the right direction on how to install an application, for example the Todo application. What do I need to do after I downloaded the application and imported the .xar file. What is the next step in order to make use of the application. Thanks, Alina. Check the sections in the document holding the application you want to use intended to help users to understand how to use it (usage, samples,...) Even though no instructions are given, after importing the xar you are presented with a list of the newly created documents. For instance, for the ExtendedTodoApplication contributed by M Rawash, you'll get: * XWiki.TodoClass * XWiki.TodoClassSheet * XApp.XWikiApplicationExtendedtodoapplication * Panels.MyTodos * XWiki.TodoClassTemplate * Todo.DummyTodo * Todo.WebHome At least two keys for you: go to Todo.WebHome to start using it or add Panels.MyTodos to your PresentationPanels configuration. You are always welcome to help others by adding useful information to the page describing the application you want to use! Hope this helps, Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] This object is currently locked by - section editing
Piotr Dziubecki wrote: W dniu 10-11-04 21:28, [Ricardo Rodriguez] eBioTIC. wrote: Piotr Dziubecki wrote: W dniu 10-11-04 12:13, [Ricardo Rodriguez] eBioTIC. wrote: Piotr Dziubecki wrote: Hi :) W dniu 10-11-04 11:08, [Ricardo Rodriguez] eBioTIC. wrote: Hi! Piotr Dziubecki wrote: Hello :) I configured my XWiki instance in the following way: #-# This parameter will activate the sectional editing. xwiki.section.edit=1 #-# This parameter controls the depth of sections that have section editing. #-# By default level 1 and level 2 sections have section editing. xwiki.section.depth=6 I have many users working on documents simultaneously and in order to minimize document locking and possible merging I encourage them to edit sections/paragraphs instead. I noticed that when, for instance, two users edit different sections within the same page, the latter gets the message: This object is currently locked by user1 I checked and it's possible to force editing and save both of concurrent changes to that document, but the message itself is a bit confusing to the users. I'm asking if it's possible to change xwiki configuration to not display that message when the users edit different paragraphs within the same page ? To the best of my understanding locking is set a document level. So, if any user edits a section, all other users will receive that message. I think what you are doing is a bit risky. I've had here some problems following the same problem. When an user received this message, although she/he is editing only a section, there is no way of knowing if they are in the same section or in a different one. Even more, if you edit a document using the same user at two different locations, you won't receive the locking message. Yes, I came from the Media Wiki and section editing is pretty popular way of collaborative editing ( avoiding the whole page locks ). I also arrives to XWiki from MediaWiki years ago. So, with the current MediaWiki release, is it possible to do section edition and get a warning only if two users edit the same section? Thanks! To be sure, I did some tests here: http://www.mediawiki.org/wiki/Sandbox no warnings, you can even edit the same section but then you'll need to get through the merge phase. In that case you see such a message: Someone else has changed this page since you started editing it. The upper text area contains the page text as it currently exists. Your changes are shown in the lower text area. You will have to merge your changes into the existing text. Well, I don't see this blocking behaviour working with MediaWiki sandbox... I don't know why! In any case, MediaWiki is not the case here! Just summing up: Thanks for that summary, let me comment on your thoughts: 1. Simultaneous edition is possible, but not advisable with the current XWiki release. Yes, especially that there is no merge phase after concurrent editing ( or maybe there is a 'merge plugin' - I'd be grateful for any info on that ). In that case you end up with the article content overridden by someone else and your only hope is to dig in the document's history and try to fix edits manually. 2. Locking is done at document level. Is that going to change in the future ? In my opinion that basically blocks user groups/communities from working on the documents in a collaborative way. Is it much work to make that lock 'section sensitive', architecture-wise ? If someone could describe what should be done / changed in order to achieve that, maybe we could figure out a solution for that issue. 3. A true real-time edition editor for XWiki is on its way and will solve all these issues! Well, it could be, but it's based on the js/ajax - it could be tricky to achieve a good level of compatibility between browsers ( of course it could be done, Google docs is a good example here ). Of course I'd take that right away in the stable form. But I think merging/lock on the section level could be more than enough for the ordinary wiki users ( Wikipedia is basing on that model on a huge scale and it's doing fine ;) ) It will be great if some developer or more skilled user could review this statements to confirm/deny/complete them! Thanks! I concur. Currently I'm struggling to figure out how to get over that problem. I can tell my users just to ignore the lock message, but that is not super safe and could cause a content loss/corruption. Looking forward to your feedback guys ! I do agree with you, Piotr. In fact, when I present XWiki to a new group of users, this is the question I would like to avoid: how XWiki manage concurrent edition? I talk about locking behaviour and a future real-time editor
Re: [xwiki-users] where put macros?
Hi Alina, afrey wrote: For any of you who used downloaded macros for xwiki. What do I need to do after downloading and importing a macro. I have downloaded/imported a couple of macros, and non of them are displayed in the Macro WYSIWYG editor. Please advise. -Alina. Have you tried to restart your servlet container/applications server? I've seen some Jira issue related with macros failing to register after importing. Restarting does the trick for now. HTH, Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] setting expanded/collapsed initial values for $expanded in panelheader
Marius Dumitru Florea wrote: Hi Ricardo, On 11/10/2010 11:59 PM, [Ricardo Rodriguez] eBioTIC. wrote: Sergiu Dumitriu wrote: On 11/10/2010 02:32 PM, [Ricardo Rodriguez] eBioTIC. wrote: Hi! Following these lines in the panelheader macro un macros.vm... #macro(panelheader $title) #set($cookieName = ${context.user}_${panel}) #set($expanded = $xwiki.getUserPreferenceFromCookie($cookieName)) #if(!$expanded) #set($expanded = 'expanded') #end I understand that the default value, expanded, for XWiki panels is set there. This code says: 1. Set the name of the cookie that fixes the expanded/collapsed state for a given user and panel. 2. If this cookie exists and it has this preference set, it takes the value from it. 3. If fails to get the value from the cookie, set the value as 'expanded' Thus, all panels are shown expanded by default and, to the best of my understanding, setting: #set($expanded = 'collapsed') Must show all the panels closed. I'm not able to get this working. Please, where am I wrong? It should work (just tried it locally), but changing macros.vm requires that you restart the server, since the macros are loaded at startup and cached. Thanks, Sergiu. I've done such an amount of trials that I do need to confirm the process step by step to avoid mess up things. Yes, it does work. If I #set($expanded = 'collapsed') and restart the server, all panels are shown collapsed by default. BUT, they are showed collapsed each time a refresh the page: the cookie is not able to remember their state. It does work if $expanded = 'expanded', but it doesn't work if $expanded = 'collapsed'. I'm making trials with e XE 2.6-SNAPSHOT.32286 Could you figure out why? Thanks! Because XWiki.togglePanelVisibility (xwiki.js) assumes expanded is the default state and doesn't store a cookie when the panel is expanded (actually, deletes the cookie when the panel is expanded). Please open a JIRA issue ( http://jira.xwiki.org/jira/browse/XWIKI/component/10022 ) and I'll take care of it. Thanks, Marius http://jira.xwiki.org/jira/browse/XWIKI-5679 Thanks, Marius. I was unable to track the issue to xwiki.js. I've learnt a lot! Greetings! Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Problem with search textfield
Hi, Werner Greßhoff wrote: Hi Ricardo, I'v installed XEM 2.4.30467 and tested in XEM 2.5 as well. And yes, colibri is the skin. We're using a path based farm and, as I said, the main wiki is ok, it's just thevirtual wikis with the problems. Perhaps I've misconfigured the Apache server running in front of Tomcat?! The browser is Firefox (Linux and Windows) but other browsers don't work as well. What I'm just observing is, before I log in the click in the search field works as expected! That's excluding Apache misconfiguration but perhaps it's a rights problem? Already observed that when we changed the colours... Best wishes and thanks for the help I must recognized that I'm lost with this topic. Search... vanished in all my installations when clicking the search field. I guess what you want to get is this text vanished in your virtual wikis as well, don't you? Let's summarize how the area where Search is inserted by default is renderized. When you load a XWiki page, a number of templates are called. global.vm, located in your xwiki/skins/youSkin folder, contains the search facility. We do agree about that we are talking about colibri, so global.vm in xwiki/skins/colibri is involved in this process or a copy of this file located in your customized skin or attached to the skin document. There we have a label tag with for=headerglobalsearchinput that is eventually call from the input tag that contains id=headerglobalsearchinput. This same input has class=globalsearchinput withTip; the class globalsearchinput is defined in colibri.css, and the option withTip elegantly controls that the guide text inside the field vanishes when you click on that field to enter the string you want to look for. In... input class=globalsearchinput withTip id=headerglobalsearchinput type=text name=text value=$msg.get('panels.search.inputText') size=15/ This value= controls what guide text appears in the search field. From here, if you have not tweaked skins, or modified in any way templates, I'm not able to find a reason that causes that difference between main and virtual wikis in your farm. By default, all will the same default skin. So, please, could you rethink what you are seeing here enlightened by these comments or correct me if I am wrong? Thanks! It is for sure that I'm missing something, but I don't know why. Werner Am 04.11.2010 20:52, schrieb [Ricardo Rodriguez] eBioTIC.: Hi! Werner Greßhoff wrote: Hello, I've installed a wiki farm and observed a minor problem: in the main wiki, when I click in the standard search textfield, the text (search...) vanishes. In my virtual wikis it doesn't. This is the tag (absolutely identical): input class=globalsearchinput withTip id=headerglobalsearchinput name=text value=search... size=15 type=text The text field from the panel is working fine (everywhere). I guess you are using colibri as skin. Please, what XE/XEM release are you using? I'm only have a XE/XEM 2.4.30451 here and can't reproduce the error (Firefox, Safari and OmniWeb on Mac OS X 10.5 and 10.6 here) Same tag: input type=text size=15 value=a buscar... name=text id=headerglobalsearchinput class=globalsearchinput withTip Cheers, Ricardo ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] setting expanded/collapsed initial values for $expanded in panelheader
Sergiu Dumitriu wrote: On 11/10/2010 02:32 PM, [Ricardo Rodriguez] eBioTIC. wrote: Hi! Following these lines in the panelheader macro un macros.vm... #macro(panelheader $title) #set($cookieName = ${context.user}_${panel}) #set($expanded = $xwiki.getUserPreferenceFromCookie($cookieName)) #if(!$expanded) #set($expanded = 'expanded') #end I understand that the default value, expanded, for XWiki panels is set there. This code says: 1. Set the name of the cookie that fixes the expanded/collapsed state for a given user and panel. 2. If this cookie exists and it has this preference set, it takes the value from it. 3. If fails to get the value from the cookie, set the value as 'expanded' Thus, all panels are shown expanded by default and, to the best of my understanding, setting: #set($expanded = 'collapsed') Must show all the panels closed. I'm not able to get this working. Please, where am I wrong? It should work (just tried it locally), but changing macros.vm requires that you restart the server, since the macros are loaded at startup and cached. Thanks, Sergiu. I've done such an amount of trials that I do need to confirm the process step by step to avoid mess up things. Yes, it does work. If I #set($expanded = 'collapsed') and restart the server, all panels are shown collapsed by default. BUT, they are showed collapsed each time a refresh the page: the cookie is not able to remember their state. It does work if $expanded = 'expanded', but it doesn't work if $expanded = 'collapsed'. I'm making trials with e XE 2.6-SNAPSHOT.32286 Could you figure out why? Thanks! Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Automatically list and link files in a directory with Groovy
Hi! Lockie wrote: Hello all, I'm running my Xwiki as an information management Intranet alongside a networked drive that holds hundreds of documents. Based off the TODO tutorial, I made a system of inputting these documents as objects on individual pages that then appear on a filterable-sortable table. The link being a windowsPath macro. The idea behind this is that users can access these documents much easier. So, you are using XWiki to annotate or add metainformation to files stored in your Windows file system, on that networked hard drive. I guess you have created a customized class where you fill in several properties for each file. One of that properties stored the mapped path for a given file. Provided the box where you are running the client accessing XWiki has the correct mapping, users will be able to recover each file by entering this path in an explorer window. What you want is to have active links to this mapped drive. Concerning this development I think you must be aware of the current developments oriented to set an alternative store for attachments in the system file. Check devs list for The future of attachments and attachment versioning and related threads and Jira issues. Once this is working, you could have this networked drive set as alternative storage location. About having alternative methods to access those files... well, we'll see! It is always tricky to access a single repository with several, let's call them, agents (XWiki will be the primary agent, that storing files and being able to apply all its logic to add huge amounts of information and metainformation to each stored file). The problem with this system is if a new document is created, Do you mean a new file stored in the file system? Perhaps this initiative could be useful for you by changing stored attachments with paths/filenames in the networked drive. Lool for [xwiki-users] Create application similar to attach file application in the users list. the user then has to manually add it to this table, and if the document's title is changed, the link gets broken. So I'm after a way of automatically listing the documents and have working links, to make it require as little upkeep as possible. To avoid to get this links broken, you need to reference the files with a UID independente from the name. By the end, even though I'm not a developer, you will end requiring the complexity needed to develop the alternative repository referenced above. So far I am able to list the name and the path of all the documents in the directory, but I need some help in integrating the sortable table html tags and turning the path into a working link, without breaking the groovy macro. This is what I have so far: {{groovy}} import groovy.io.FileType def list = [] def dir = new File(R:/Quality/FORMS/) dir.eachFileRecurse (FileType.FILES) { file - list file } list.each { println it.name println it.path } {{/groovy}} Any help would be appreciated, Thanks, - Lockie Finally, consider also this Jira issue about UNC paths... http://jira.xwiki.org/jira/browse/XWIKI-193 Hope this helps! Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Unexpected 'Order By' Results
Hi! Thanks both! Caleb James DeLisle wrote: On 11/05/2010 06:53 PM, [Ricardo Rodriguez] eBioTIC. wrote: Hi! Chris Wagner wrote: Hello, Sorry for the delay in reply. Sergiu, that was the case. Thank you very much. :) Ricardo, the query is to include a list of all child documents in order. I included the curly braces in the query simply because I find it easier to read. Thanks, Chris. Far clear the reason to use curly braces, but I am not able to understand the query. If I understand well, it lists all documents with a given patent. Thus... The given parent is the parent of the current document (the document including the script.) If the script is called from Main.ChildDoc and ChildDoc has a parent called ParentDoc then Velocity sees ${doc.parent} and replaces with Main.ParentDoc before the query ever reaches the database. The doc.id was a mistake and the line should read #set($results=$xwiki.searchDocuments(where doc.hidden = false and doc.fullName='${doc.parent}' order by doc.title asc))ç The other way round :-) doc.parent='${doc.fullName}' I understand the simple logic of the query and got it working. Here a simple snippet using 2.0 syntax for simpler reference: {{velocity}} **These are the children of the current page** #set($results=$xwiki.searchDocuments(where doc.hidden = false and doc.parent=? order by doc.title asc, [$doc.fullName])) #foreach($item in $results) #set ($itemdoc = $xwiki.getDocument($item)) [[$itemdoc$itemdoc]] #end {{/velocity}} But we should all get in the habit of avoiding the dynamic building of queries because it can be a security issue. Think if doc.parent = '; drop table xwikidoc; Hibernate won't allow that but there are sometimes ways to fool even Hibernate. Best practice for query security is to use: #set($results=$xwiki.searchDocuments(where doc.hidden = false and doc.fullName=? order by doc.title asc, [$doc.parent])) Caleb I'm still struggling to understand the SQL injection attack as explained here... http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Security#HMitigationMethods-1 I'll create a simple new snippet entry once I understand it! Thanks! {{velocity}} #set($results=$xwiki.searchDocuments(where doc.hidden = false and doc.id='${doc.parent}' order by doc.title asc)) #foreach($item in $results) #set ($itemdoc = $xwiki.getDocument($item)) [$item$item], #end {{/velocity}} must list all documents having ${doc.parent} as parent. So, included in a page ICT.WebHome, must list all child documents having ICT.WebHome as parent, mustn't it? Well, I get nothing by including this snippet in such ICT.WebHome page. And there are 50 documents that have this age as parent page! Please, where am I wrong? One more things. Please, how is it possible to compare doc.id and $doc.parent? As far as I understand, doc.id maps to XWD_ID in xwikidoc table (it is a bigint(20) field). And $doc.parent invokes getParent() and gets a string in the form Space.Document. Thus, how is it possible to compare both values? Thanks for your help! Thank you, Chris On Thu, Nov 4, 2010 at 3:36 AM, [Ricardo Rodriguez] eBioTIC. [via XWiki] ml-node+5704373-1764624309-299...@n2.nabble.comml-node%2b5704373-1764624309-299...@n2.nabble.com wrote: Sergiu Dumitriu wrote: On 11/03/2010 07:47 PM, Chris Wagner wrote: Hello, I am having some issues with the order by clause in HQL - the following query: $xwiki.searchDocuments(where doc.hidden = false and doc.id='${doc.parent}' order by doc.title asc) Please, Chris, what this query is designed for? And why do you use curly braces to wrap doc.parent? Thanks! is returning the expected set of documents, but the title order is erratic. The documents are reordered, but it is not alphabetized as anticipated. Instead, there are several alphabetized spurts -- for example, I have 'A', 'C', 'P', ... 'A', 'A', 'B', 'C', 'D', 'E', etc. Within one of these spans, no items appear out of order, but the 'span' separation is not expected or desired. Is there a common issue that I could be overlooking? There are two types of titles. Document titles are stored in the database as the doc.title field, and they are editable in the editor above the content. Display titles are computed from the document title, first heading from the content, or the document name, depending on which one exists, in this order. Unfortunately it is not possible to see the display title in queries. I'm not sure, but I think that your problem is caused by this difference between display
Re: [xwiki-users] Create application similar to attach file application
Just one more tip... You must be aware of this discussion and some other initiated by Caleb... http://markmail.org/thread/kexhs7bmww3i35ng I think it would help to understand how attachments work and it will be easy to propose to add the possibility of adding a description to each attached file in the new structure. Hope this helps! Ricardo Abel Solórzano Astorga wrote: Hi Ricardo, To use the application you should put the following code on your XWiki page: {{FileStorage/}} I tested on XWiki 2.3, 2.4 and 2.5 versions until now and is working fine. The application let you add a description to an attachment. It presents the user a textarea to write the description and a file input component to choose the file to attach. To attach the file with the description the user should click the Attach button. There is some kind of validation when the user try to attach the file. It is not posible to attach a file with an empty description or a description that is more than 255 characters. Below the component that let you attach files, there is a table that has two columns: File Name and Description of File. Next to each row there are two icons a pencil and a red cross (XWiki icons). If you click the pencil you can edit the description for the corresponding attachment (A modal box appears). If you click the red cross the attachment is deleted. The application use the same logic as the Attach files to this document components on the Attachments section at the bottom of the xwiki pages. So the attachment are also shown in the Attachments section. I had some problems uploading files bigger than 16M. So I follow the suggestions on the following page http://www.mail-archive.com/users@xwiki.org/msg04047.html. You can find an image of the application at http://dl.dropbox.com/u/3688604/file-storage.PNG. About the LightBox, I would preffer to use it instead of the ModalBox. But until now I couldn't find an example of how to use it. Somebody knows if there is some documentation regarding the LightBox component? Somebody knows which is the component that is used on the pop up dialog that is shown when you want to add a new user. Is that the LightBox component? Let me know if you need something else. Regards, Abel On Thu, Nov 4, 2010 at 2:02 AM, [Ricardo Rodriguez] eBioTIC. ricardo.rodrig...@ebiotic.net wrote: Abel Solórzano Astorga wrote: Hi, I finally finish a little application that let you attach files to an XWiki page and add, edit or delete a comment for the attachment. I didn't have much time to create a page for the app on the xwiki server. Maybe in the future. But I want to put the application online in case someone need that functionality (I know Ricardo need it :) ). Thanks! Please, Abel, even though you have no time to create now that page, could you provide some guideline about how to use your application and how we do must expect? I've downloaded it a imported in a XE 2.6-SNAPSHOT.32286 installation. ModalBox seems to work fine, but I'm not able to understand how to use your application. As for the use of ModalBox. Taking into account that XWiki is making extensive use of LightBox (http://www.lokeshdhakar.com/projects/lightbox2/), has you considered to use it to get a more consistent appearance? Thanks again! I would like to collaborate by creating a XWiki page for such an application once I understand how to use it! The xar file of the File Storage application (I called like that) is at http://dl.dropbox.com/u/3688604/file-storage.xar. By the way you need to have the ModalBox Application installed. The ModalBox application can be found at http://code.xwiki.org/xwiki/bin/view/Applications/ModalBoxApplication. Let me know if you have any doubt or comment. On Fri, Aug 20, 2010 at 12:20 AM, Abel Solórzano Astorga abelsolorz...@gmail.com wrote: Hi, I have the application almost working :). I just need to figure out one thing that I asked in here. I 'll be glad to share the code with the community and with you once it is finish. Regards, On Tue, Aug 10, 2010 at 1:14 PM, [Ricardo Rodriguez] eBioTIC. ricardo.rodrig...@ebiotic.net wrote: Hi! Abel Solórzano Astorga wrote: I appreciate you take the time to answer my question. You gave me part of the solution :). The other part is in here http://www.mail-archive.com/users@xwiki.org/msg02301.html, in case someone need to do a similar XWiki application. Great to know I've been of any help! :-) BTW, have you then manage to get this application working? Are you planning to share it with the community? At least it will be helpful for me to get fileUploadPlugin or an application allowing to add descriptions to the uploaded files. Thanks! Cheers, Ricardo -- Ricardo Rodríguez CTO eBioTIC
Re: [xwiki-users] Unexpected 'Order By' Results
Hi! Chris Wagner wrote: Hello, Sorry for the delay in reply. Sergiu, that was the case. Thank you very much. :) Ricardo, the query is to include a list of all child documents in order. I included the curly braces in the query simply because I find it easier to read. Thanks, Chris. Far clear the reason to use curly braces, but I am not able to understand the query. If I understand well, it lists all documents with a given patent. Thus... {{velocity}} #set($results=$xwiki.searchDocuments(where doc.hidden = false and doc.id='${doc.parent}' order by doc.title asc)) #foreach($item in $results) #set ($itemdoc = $xwiki.getDocument($item)) [$item$item], #end {{/velocity}} must list all documents having ${doc.parent} as parent. So, included in a page ICT.WebHome, must list all child documents having ICT.WebHome as parent, mustn't it? Well, I get nothing by including this snippet in such ICT.WebHome page. And there are 50 documents that have this age as parent page! Please, where am I wrong? One more things. Please, how is it possible to compare doc.id and $doc.parent? As far as I understand, doc.id maps to XWD_ID in xwikidoc table (it is a bigint(20) field). And $doc.parent invokes getParent() and gets a string in the form Space.Document. Thus, how is it possible to compare both values? Thanks for your help! Thank you, Chris On Thu, Nov 4, 2010 at 3:36 AM, [Ricardo Rodriguez] eBioTIC. [via XWiki] ml-node+5704373-1764624309-299...@n2.nabble.comml-node%2b5704373-1764624309-299...@n2.nabble.com wrote: Sergiu Dumitriu wrote: On 11/03/2010 07:47 PM, Chris Wagner wrote: Hello, I am having some issues with the order by clause in HQL - the following query: $xwiki.searchDocuments(where doc.hidden = false and doc.id='${doc.parent}' order by doc.title asc) Please, Chris, what this query is designed for? And why do you use curly braces to wrap doc.parent? Thanks! is returning the expected set of documents, but the title order is erratic. The documents are reordered, but it is not alphabetized as anticipated. Instead, there are several alphabetized spurts -- for example, I have 'A', 'C', 'P', ... 'A', 'A', 'B', 'C', 'D', 'E', etc. Within one of these spans, no items appear out of order, but the 'span' separation is not expected or desired. Is there a common issue that I could be overlooking? There are two types of titles. Document titles are stored in the database as the doc.title field, and they are editable in the editor above the content. Display titles are computed from the document title, first heading from the content, or the document name, depending on which one exists, in this order. Unfortunately it is not possible to see the display title in queries. I'm not sure, but I think that your problem is caused by this difference between display and document titles. The first set of documents has an empty document title, but in the UI you see their computed display title. The second set of documents is correctly ordered by their persisted document title. -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list [hidden email] http://user/SendEmail.jtp?type=nodenode=5704373i=0 http://lists.xwiki.org/mailman/listinfo/users -- View message @ http://xwiki.475771.n2.nabble.com/Unexpected-Order-By-Results-tp5702753p5704373.html To unsubscribe from Unexpected 'Order By' Results, click herehttp://xwiki.475771.n2.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_codenode=5702753code=ZWVsaG92ZXJjcmFmdEBnbWFpbC5jb218NTcwMjc1M3wtMTMzMDQxMjEwMQ==. -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Unexpected 'Order By' Results
Sergiu Dumitriu wrote: On 11/03/2010 07:47 PM, Chris Wagner wrote: Hello, I am having some issues with the order by clause in HQL - the following query: $xwiki.searchDocuments(where doc.hidden = false and doc.id='${doc.parent}' order by doc.title asc) Please, Chris, what this query is designed for? And why do you use curly braces to wrap doc.parent? Thanks! is returning the expected set of documents, but the title order is erratic. The documents are reordered, but it is not alphabetized as anticipated. Instead, there are several alphabetized spurts -- for example, I have 'A', 'C', 'P', ... 'A', 'A', 'B', 'C', 'D', 'E', etc. Within one of these spans, no items appear out of order, but the 'span' separation is not expected or desired. Is there a common issue that I could be overlooking? There are two types of titles. Document titles are stored in the database as the doc.title field, and they are editable in the editor above the content. Display titles are computed from the document title, first heading from the content, or the document name, depending on which one exists, in this order. Unfortunately it is not possible to see the display title in queries. I'm not sure, but I think that your problem is caused by this difference between display and document titles. The first set of documents has an empty document title, but in the UI you see their computed display title. The second set of documents is correctly ordered by their persisted document title. -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] This object is currently locked by - section editing
Hi! Piotr Dziubecki wrote: Hello :) I configured my XWiki instance in the following way: #-# This parameter will activate the sectional editing. xwiki.section.edit=1 #-# This parameter controls the depth of sections that have section editing. #-# By default level 1 and level 2 sections have section editing. xwiki.section.depth=6 I have many users working on documents simultaneously and in order to minimize document locking and possible merging I encourage them to edit sections/paragraphs instead. I noticed that when, for instance, two users edit different sections within the same page, the latter gets the message: This object is currently locked by user1 I checked and it's possible to force editing and save both of concurrent changes to that document, but the message itself is a bit confusing to the users. I'm asking if it's possible to change xwiki configuration to not display that message when the users edit different paragraphs within the same page ? To the best of my understanding locking is set a document level. So, if any user edits a section, all other users will receive that message. I think what you are doing is a bit risky. I've had here some problems following the same problem. When an user received this message, although she/he is editing only a section, there is no way of knowing if they are in the same section or in a different one. Even more, if you edit a document using the same user at two different locations, you won't receive the locking message. But the solution to this situation is on its way! Are you aware of this? http://markmail.org/thread/erlky73x5np3gllh Hope this helps! Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] This object is currently locked by - section editing
Piotr Dziubecki wrote: Hi :) W dniu 10-11-04 11:08, [Ricardo Rodriguez] eBioTIC. wrote: Hi! Piotr Dziubecki wrote: Hello :) I configured my XWiki instance in the following way: #-# This parameter will activate the sectional editing. xwiki.section.edit=1 #-# This parameter controls the depth of sections that have section editing. #-# By default level 1 and level 2 sections have section editing. xwiki.section.depth=6 I have many users working on documents simultaneously and in order to minimize document locking and possible merging I encourage them to edit sections/paragraphs instead. I noticed that when, for instance, two users edit different sections within the same page, the latter gets the message: This object is currently locked by user1 I checked and it's possible to force editing and save both of concurrent changes to that document, but the message itself is a bit confusing to the users. I'm asking if it's possible to change xwiki configuration to not display that message when the users edit different paragraphs within the same page ? To the best of my understanding locking is set a document level. So, if any user edits a section, all other users will receive that message. I think what you are doing is a bit risky. I've had here some problems following the same problem. When an user received this message, although she/he is editing only a section, there is no way of knowing if they are in the same section or in a different one. Even more, if you edit a document using the same user at two different locations, you won't receive the locking message. Yes, I came from the Media Wiki and section editing is pretty popular way of collaborative editing ( avoiding the whole page locks ). I also arrives to XWiki from MediaWiki years ago. So, with the current MediaWiki release, is it possible to do section edition and get a warning only if two users edit the same section? Thanks! In fact it was one of the reason I've chosen XWiki ( possibility to edit sections ). In my case, it could happen that several people work on the same document at once, so sections could preserve the separation of their work. But the solution to this situation is on its way! Are you aware of this? http://markmail.org/thread/erlky73x5np3gllh That is really interesting, will try it if that's possible. Hope this helps! Ricardo Thank you Ricardo ! Regards, Piotr ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] upgrade skipping versions
Hi, Wouter, Wouter Boasson wrote: Hi, Just a simple question: can I safely upgrade XWiki from a 2.2.x version to a 2.5.x (or newer) release, without upgrading step by step (e.g. go to 2.3.x ... , then 2.4.x ... 2.5)? Following this document... http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HUpgradinganXWikiInstallation It must be safe to do what you are planning to do provided you review those additional operations and are particularly observant with the WARNINGS on that file. As you can read... Note that the database schema is automatically upgraded when needed. All you need to do is to ensure your xwiki.cfg file is correctly configured to perform the migration. And, of course, backup your database and /xwiki application folder before proceeding! Hope this helps! Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Problem with search textfield
Hi! Werner Greßhoff wrote: Hello, I've installed a wiki farm and observed a minor problem: in the main wiki, when I click in the standard search textfield, the text (search...) vanishes. In my virtual wikis it doesn't. This is the tag (absolutely identical): input class=globalsearchinput withTip id=headerglobalsearchinput name=text value=search... size=15 type=text The text field from the panel is working fine (everywhere). I guess you are using colibri as skin. Please, what XE/XEM release are you using? I'm only have a XE/XEM 2.4.30451 here and can't reproduce the error (Firefox, Safari and OmniWeb on Mac OS X 10.5 and 10.6 here) Same tag: input type=text size=15 value=a buscar... name=text id=headerglobalsearchinput class=globalsearchinput withTip Cheers, Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] This object is currently locked by - section editing
Piotr Dziubecki wrote: W dniu 10-11-04 12:13, [Ricardo Rodriguez] eBioTIC. wrote: Piotr Dziubecki wrote: Hi :) W dniu 10-11-04 11:08, [Ricardo Rodriguez] eBioTIC. wrote: Hi! Piotr Dziubecki wrote: Hello :) I configured my XWiki instance in the following way: #-# This parameter will activate the sectional editing. xwiki.section.edit=1 #-# This parameter controls the depth of sections that have section editing. #-# By default level 1 and level 2 sections have section editing. xwiki.section.depth=6 I have many users working on documents simultaneously and in order to minimize document locking and possible merging I encourage them to edit sections/paragraphs instead. I noticed that when, for instance, two users edit different sections within the same page, the latter gets the message: This object is currently locked by user1 I checked and it's possible to force editing and save both of concurrent changes to that document, but the message itself is a bit confusing to the users. I'm asking if it's possible to change xwiki configuration to not display that message when the users edit different paragraphs within the same page ? To the best of my understanding locking is set a document level. So, if any user edits a section, all other users will receive that message. I think what you are doing is a bit risky. I've had here some problems following the same problem. When an user received this message, although she/he is editing only a section, there is no way of knowing if they are in the same section or in a different one. Even more, if you edit a document using the same user at two different locations, you won't receive the locking message. Yes, I came from the Media Wiki and section editing is pretty popular way of collaborative editing ( avoiding the whole page locks ). I also arrives to XWiki from MediaWiki years ago. So, with the current MediaWiki release, is it possible to do section edition and get a warning only if two users edit the same section? Thanks! To be sure, I did some tests here: http://www.mediawiki.org/wiki/Sandbox no warnings, you can even edit the same section but then you'll need to get through the merge phase. In that case you see such a message: Someone else has changed this page since you started editing it. The upper text area contains the page text as it currently exists. Your changes are shown in the lower text area. You will have to merge your changes into the existing text. Well, I don't see this blocking behaviour working with MediaWiki sandbox... I don't know why! In any case, MediaWiki is not the case here! Just summing up: 1. Simultaneous edition is possible, but not advisable with the current XWiki release. 2. Locking is done at document level. 3. A true real-time edition editor for XWiki is on its way and will solve all these issues! It will be great if some developer or more skilled user could review this statements to confirm/deny/complete them! Thanks! In fact it was one of the reason I've chosen XWiki ( possibility to edit sections ). In my case, it could happen that several people work on the same document at once, so sections could preserve the separation of their work. But the solution to this situation is on its way! Are you aware of this? http://markmail.org/thread/erlky73x5np3gllh That is really interesting, will try it if that's possible. Hope this helps! Ricardo Thank you Ricardo ! Regards, Piotr ___ 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 Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] upgrade skipping versions
Hi! Arnaud bourree wrote: Hi, 2010/11/4 [Ricardo Rodriguez] eBioTIC. ricardo.rodrig...@ebiotic.net: Hi, Wouter, Wouter Boasson wrote: Hi, Just a simple question: can I safely upgrade XWiki from a 2.2.x version to a 2.5.x (or newer) release, without upgrading step by step (e.g. go to 2.3.x ... , then 2.4.x ... 2.5)? Following this document... http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HUpgradinganXWikiInstallation It must be safe to do what you are planning to do provided you review those additional operations and are particularly observant with the WARNINGS on that file. As you can read... Sorry, but that didn't answered (nor the related page) if it safe to jump from version 2.2.x directly to last 2.5 version Arnaud. I've not tried myself any upgrade in the 2.y series. I did that in the 1.y one. I found some migration issues solved with the help of the dev community. By reading this document, I can only conclude that it is possible and safe to do that. But I've no experience with this exact process. I'm currently involved in a 1.y to 2.y migration. Different main releases, different databases releases, different servlet applications releases, different servers. In this case, a lot of problems mainly related with attachments have been found. In addition to the concerned AdminGuide section, I would recommend to check the health of the attachments database by using... http://code.xwiki.org/xwiki/bin/view/Snippets/AllBrokenAttachments ... prior the update. I've not checked the release notes from 2.2.x. to 2.5 releases myself. That's all I can say. Thanks. Note that the database schema is automatically upgraded when needed. All you need to do is to ensure your xwiki.cfg file is correctly configured to perform the migration. And, of course, backup your database and /xwiki application folder before proceeding! Hope this helps! Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ 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 -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Create application similar to attach file application
Thanks! Abel Solórzano Astorga wrote: Hi Ricardo, To use the application you should put the following code on your XWiki page: {{FileStorage/}} I tested on XWiki 2.3, 2.4 and 2.5 versions until now and is working fine. I've installed it in a 2.4 XE/XEM and once I see some oddities, I've move to a test environment running now a XE 2.6-SNAPSHOT.31892 installation. Please, see below. The application let you add a description to an attachment. It presents the user a textarea to write the description and a file input component to choose the file to attach. To attach the file with the description the user should click the Attach button. There is some kind of validation when the user try to attach the file. It is not posible to attach a file with an empty description or a description that is more than 255 characters. Below the component that let you attach files, there is a table that has two columns: File Name and Description of File. Next to each row there are two icons a pencil and a red cross (XWiki icons). If you click the pencil you can edit the description for the corresponding attachment (A modal box appears). If you click the red cross the attachment is deleted. The application use the same logic as the Attach files to this document components on the Attachments section at the bottom of the xwiki pages. So the attachment are also shown in the Attachments section. As far as I can see, it allows to add the description to documents attached by using this same application. I mean, if I call FileStorage/ from a document with already attached files, I can't use it to add a description to those files. This leads to a somehow inconsistent situation where the pencil theoretically allows edition of the description of newly attached files but do nothing for already attached ones that remains with an empty description or for newly attached files using the out-of-the-box attachments utility. Must I been able to edit the description for already attached files? Thanks. Another curious thing is that when I attach a document by using your application, it creates two versions of the attachment, let's call it 1.1 and 1.2. Each time I try to edit the description, two more releases are added: 1.3 an 1.4 in a second row and so on, so forth. I've not been able to get the description edited. The ModalBox opens curretly, it allows enter a new description, but the OK button add only two new attachment releases, but the description remains untouched. I had some problems uploading files bigger than 16M. So I follow the suggestions on the following page http://www.mail-archive.com/users@xwiki.org/msg04047.html. Well, this is a well know issue, but there are tones of smaller attachments, at least here, that could take profit of this application! :-) You can find an image of the application at http://dl.dropbox.com/u/3688604/file-storage.PNG. About the LightBox, I would preffer to use it instead of the ModalBox. But until now I couldn't find an example of how to use it. Somebody knows if there is some documentation regarding the LightBox component? Somebody knows which is the component that is used on the pop up dialog that is shown when you want to add a new user. Is that the LightBox component? I've not been able yet to get access and minimally understand XWiki code. But, do you know this? http://www.lokeshdhakar.com/projects/lightbox2/ Let me know if you need something else. I really find this application really useful. I really miss the possibility of adding descriptions to the attached files. It is currently possible to add a summary to a version of a document. Or tag it. But there is no way of adding a description to an attached file. As stated in a reply to a message in the developers list (http://markmail.org/thread/57f2kswlpg5oxvxx), it would be possible, for instance, extract meta information from an attached file, but, as a XWiki document could be tagged, or somehow added semantic, I miss something similar that could add at least a description to attached files. Of course there are a number of things that must be discussed, but your application is a first interesting approach (please, take into account that I'm not a dev, so my opinion is really weak) to solve, for me, a missing XWiki feature. Let's see if other could be interested in it! Ah! One more thing: attachment links in the File Storage table, points to Slimsoft wiki instead of the wiki where they are located. Check this and feel free to test it: http://epecnetcore.environmentalchange.net:8080/xwiki/bin/view/ICT/HasAttachment In the shake of security, I'll let it open only a couple of days. Communication with this server is a bit rudimentary, apologies for any failure! Thank you so much! Regards, Abel On Thu, Nov 4, 2010 at 2:02 AM, [Ricardo Rodriguez] eBioTIC. ricardo.rodrig...@ebiotic.net wrote: Abel Solórzano Astorga wrote: Hi, I finally
Re: [xwiki-users] where put macros?
Vincent Massol wrote: On Nov 2, 2010, at 11:12 PM, Jerome Velociter wrote: Hi Vincent, all, See below On Tue, Nov 2, 2010 at 10:46 PM, Vincent Massol vinc...@massol.net wrote: On Nov 2, 2010, at 7:47 PM, Thibaut Camberlin wrote: On Tue, Nov 2, 2010 at 3:05 PM, Jerome Velociter jer...@xwiki.com wrote: Actually I've been thinking maybe we could provide a Macros/ space with XE. The home page would be a improved version of the current XWiki.WikiMacros page (adding for example a ClassSheet for macros, a form to create a new macro, some documentation, etc.) WDYT? This polishing would empower a standard user to use this XWiki advanced feature. I don't quite agree. Standard users shouldn't see this space. it's something technical and 99% of wiki users don't want/need to see it (and they won't even understand it). So for me this space would need to be hidden from simple users (same as for other tech spaces). Then we should probably hide them from the WYSIWYG tooIbar too, I guess ;) Seriously, the space could be blacklisted, but it should be discussed, I'm not sure we want to have only admins seing it (personally I see that space as being documentation on macros existing in the wiki before being a place to create new macros - so not so technical in the end). The reason is simple. Most people come to the wiki as a place where to find information (not as contributors) and they'll see the list of spaces listed on the home page mixed with spaces containing real content for that wiki. All I want is a separation between business content and technical content. I'm fine if we have 2 space lists on the home page, one for each type of content. But I really don't like to mix the two kind of content. This categorization would also welcome here. It is been hard to me to explain to regular users what is the difference between business content and technical content as Vicent called that different nature documents. Even talking with tech-skilled people, is by no means easy to explain that one thing are contents produced by the community they are going to create/support by using a new XWiki installation and the contains produced/updated by the XWiki community in subsequent releases. To tag in any simple way those contents in a way they could be hidden/shown, could even also helps, IMO, the upgrade and backup operations. Just my two cents. Maybe in some distant future we should have an intermediary level between Normal users and Admins. BTW do users that chose to be Advanced Users in their profile see the blacklisted spaces ? yes. Maybe the intermediary level could be this one. I don't think we need one ATM. I'm not sure what the proposal is about exactly. Well it's not a proposal yet, rather an idea. Some open questions: Would the macros stay where they are currently located? If you ask me some should be moved already (like {{spaces}} and {{tags}}), since they are located in documents that already have another purpose, and thus can not benefit from a potential WikiMacroClassSheet (that for example could display the usage of the macro and its parameters ; thus becoming a sort of self-contained documentation for the held macro) Well I'm not sure. IMO the dashboard should be moved to a dashboard application and that spaces macro could be moved to that dashboard application. Recent Activity should be moved to an Activity application too and the activity macro there too. Basically I still believe strongly that we need to list all our default XE pages and assign them an application. I had done that exercise one and created the jira components in XE asa result. Maybe we should revisit this and do this mapping now? Shouldn't macros stay with their apps? Yes they should. Right now we don't even have a rule for where to put applications documents (in their own space ? with a Code suffix ? in the XWiki space ? somewhere else ?) Yes we need to define that too. We've been quite poor in term of wiki content organization and as a result I feel that our default wiki content is a bit of a disorganized mess. We should improve. Want to lead a proposal? I think the (not existing) UI at Macros.WebHome should retrieve and list documents from the entire wiki, not just the Macros space. I agree Same as the scheduler (I changed that behavior just recently by the way - I wanted my application scheduler jobs in my application space, not in the Scheduler space - see http://jira.xwiki.org/jira/browse/XASCH-56) Yep seen that and I agree. Does it mean a new platform/application in svn? There is already one : the wikibridge I think, with just one document now (the name is not correct though, I agree) Agree, it's a good place and it should be renamed or merged with
Re: [xwiki-users] [xwiki-devs] [Proposal] XE 3.0 and Roadmap leading to it
Hi! Sergiu Dumitriu wrote: On 11/01/2010 12:50 PM, Gregory GUENEAU wrote: Hi everyone, I am +1 to make stabilization work, on a couple of releases I am +1 to have soon a 3.0 release And i am +1 on the content vincent propose But my point of view is -1 stepping the release family number because the main purpose of what is discussed here is stabilization, and not showing the path of 3.x family. Therefore : - do we consider a january 2011 release to be stable enough ? - stabilization work wouldn'it be leading then to the last 2.x version instead of the first 3.x family version ? - is there behind it a consensus on what we will concentrate our effort in 3.x versions ? I mean thematics we can talk about. - therefore, are we in a situation where we can vote on the global thematics we will develop in 3.x releases ? - do we have a clear consensus short list of features that show the path of 3.x family ? - in consequence of that, is the release content here send a clear message to uneducated publics about what is in this future 3.x versions ? - do educated people care this much about release number, that we absolutely have to release a 3.0 with the content presented below ? From the committers' point of view, it makes perfect sense for 3.0 to be the culmination of the 2.x releases, but I'm not sure the users understand this as well, so I'm extending the question to the users list. Traditionally, proprietary software is developed behind the curtains, and it's normal to have one big release every two years, with lots of new features and some bugs which get fixed in subsequent bugfix releases. Marketing comes mostly from the proprietary software world, so from a marketing point of view, this is the normal way releases work. In the open source world, since the development is done in the open, it doesn't make sense to stash code away in a repository and only release it once every two years. Still, most big projects use a release versioning scheme similar to the proprietary products, but with a slight difference which deeply changes the meaning. While proprietary products use only a number (3, 8, 2010...), with eventual bugfixes versions (SP2, 5.5), open source usually has 3 numbers in its versions, with the following meanings: The first number changes rarely, and when it does, it signals a critical change, like a complete rewrite of the codebase, a change of paradigm, or major new features. The second number is the one that actually identifies a release. The third number is the bugfix version. So, when we say that PHP 5.3.2 was released, we actually say that version 3 of PHP5, which is a different thing than PHP4, has been released again, giving the second bugfix release. KDE 4.5.1 means version 5 of KDE4 saw its first bugfix release. Another tendency is for open source software to linger towards a major release. For example, lots of software have a lot of releases before 1.0, going nearer and nearer: 0.6, 0.9, 0.9.9... And everybody knows that 0.x comes before 1.0, and it's not just a bugfix version of an imaginary 0.0 release. A different topic is that of agile development, with very short releases (2-3 weeks) for which traditional version number make no sense, since such a product would reach version 42 in a couple of years. Either an identifier, such as the SCM version number is used, or a continuous counter (v1.42) is used. Since the software evolves in a fluid manner, without a breakthrough version coming out of the regular releases, a major version is released when the current features are stable and they mix well together in a coherent product. Since releases come so frequently, it's normal for users to be split into two categories: those that follow the releases and know how the software is evolving, and those that only monitor the major releases, and which see all the continuous improvements at once. While XWiki Enterprise is used in the enterprise environment, and it is backed by commercial companies, it is a true open source project, following an open source release model, so I don't think that a proprietary product release scheme is suited. Our development/release style is closer to the agile development practice, albeit with mixed release types. In the future, once the core is more stable than it is now, we'd like to move even closer to a full agile release process, with 2-3 weeks between final releases. Thus, I believe that the last release versioning strategy is the best for XWiki Enterprise. Note that we're already using this strategy in a more obvious way for smaller modules (applications, skins, tools), where we do have 1.32 as a stable version number. Also note that although 1.9 was followed by 2.0, this was just a coincidence, and not a natural version evolution, since we also felt that the code was mature enough to receive a major number
Re: [xwiki-users] [xwiki-devs] [Proposal] XE 3.0 and Roadmap leading to it
[Ricardo Rodriguez] eBioTIC. wrote: Hi! Sergiu Dumitriu wrote: On 11/01/2010 12:50 PM, Gregory GUENEAU wrote: Hi everyone, I am +1 to make stabilization work, on a couple of releases I am +1 to have soon a 3.0 release And i am +1 on the content vincent propose But my point of view is -1 stepping the release family number because the main purpose of what is discussed here is stabilization, and not showing the path of 3.x family. Therefore : - do we consider a january 2011 release to be stable enough ? - stabilization work wouldn'it be leading then to the last 2.x version instead of the first 3.x family version ? - is there behind it a consensus on what we will concentrate our effort in 3.x versions ? I mean thematics we can talk about. - therefore, are we in a situation where we can vote on the global thematics we will develop in 3.x releases ? - do we have a clear consensus short list of features that show the path of 3.x family ? - in consequence of that, is the release content here send a clear message to uneducated publics about what is in this future 3.x versions ? - do educated people care this much about release number, that we absolutely have to release a 3.0 with the content presented below ? From the committers' point of view, it makes perfect sense for 3.0 to be the culmination of the 2.x releases, but I'm not sure the users understand this as well, so I'm extending the question to the users list. Traditionally, proprietary software is developed behind the curtains, and it's normal to have one big release every two years, with lots of new features and some bugs which get fixed in subsequent bugfix releases. Marketing comes mostly from the proprietary software world, so from a marketing point of view, this is the normal way releases work. In the open source world, since the development is done in the open, it doesn't make sense to stash code away in a repository and only release it once every two years. Still, most big projects use a release versioning scheme similar to the proprietary products, but with a slight difference which deeply changes the meaning. While proprietary products use only a number (3, 8, 2010...), with eventual bugfixes versions (SP2, 5.5), open source usually has 3 numbers in its versions, with the following meanings: The first number changes rarely, and when it does, it signals a critical change, like a complete rewrite of the codebase, a change of paradigm, or major new features. The second number is the one that actually identifies a release. The third number is the bugfix version. So, when we say that PHP 5.3.2 was released, we actually say that version 3 of PHP5, which is a different thing than PHP4, has been released again, giving the second bugfix release. KDE 4.5.1 means version 5 of KDE4 saw its first bugfix release. Another tendency is for open source software to linger towards a major release. For example, lots of software have a lot of releases before 1.0, going nearer and nearer: 0.6, 0.9, 0.9.9... And everybody knows that 0.x comes before 1.0, and it's not just a bugfix version of an imaginary 0.0 release. A different topic is that of agile development, with very short releases (2-3 weeks) for which traditional version number make no sense, since such a product would reach version 42 in a couple of years. Either an identifier, such as the SCM version number is used, or a continuous counter (v1.42) is used. Since the software evolves in a fluid manner, without a breakthrough version coming out of the regular releases, a major version is released when the current features are stable and they mix well together in a coherent product. Since releases come so frequently, it's normal for users to be split into two categories: those that follow the releases and know how the software is evolving, and those that only monitor the major releases, and which see all the continuous improvements at once. While XWiki Enterprise is used in the enterprise environment, and it is backed by commercial companies, it is a true open source project, following an open source release model, so I don't think that a proprietary product release scheme is suited. Our development/release style is closer to the agile development practice, albeit with mixed release types. In the future, once the core is more stable than it is now, we'd like to move even closer to a full agile release process, with 2-3 weeks between final releases. Thus, I believe that the last release versioning strategy is the best for XWiki Enterprise. Note that we're already using this strategy in a more obvious way for smaller modules (applications, skins, tools), where we do have 1.32 as a stable version number. Also note that although 1.9 was followed by 2.0, this was just a coincidence, and not a natural version evolution, since we also felt
Re: [xwiki-users] Properties List of users and DB list (and DB Tree)
Hi! Erica Usui wrote: Hi! My property is just like a static list, but populated by another class - so, I used a DB List property. What I want to show on select is different from what I want the stored value to be, this is actually the purpose of DB List properties' id name and value name, but my experience showed the contrary... I've already seem these linkhttp://dev.xwiki.org/xwiki/bin/view/Drafts/DatabaseListProperties, and also found important information about this subject on this mailing ( http://lists.xwiki.org/pipermail/users/2008-February/010417.html). But didn't solve my problem. Have you checked this? http://www.xwiki.org/xwiki/bin/view/FAQ/HowToCreateAOneToManyRelationshipInXWiki I can't try it myself today. I'll be back to this issue ASAP. Thanks. Again, I just want to do the same as property List of users does, which is when selecting it is shown first_name+last_name, and when querying the result is XWiki.alias. I want to do something similar, but with my own class, not XWiki.XWikiUsers. For example: XWiki.dbClass [which has: property1 (string), property2 (string)]. XWiki.class1Class [which has: property3 (dbList)= XWiki class name: XWiki.dbClass, id field name: property1; value field name: property2)]. 2010/10/29 [Ricardo Rodriguez] eBioTIC. ricardo.rodrig...@ebiotic.net Hi, Erica Usui wrote: Hi! I'm trying to list the users' name in a form, but the name have complement (p.e. Name: Carlos Eduardo da Silva / HR - manager). As in a List of users property, I want to display, when someone is selecting a name, the full name and complement, but when displaying in the results I want it to show the user's Alias. So what I did was a class (XWiki.dbClass) with two properties: Name (String) (p.e. Carlos Eduardo da Silva / HR - manager) Alias (String) (p.e.Carlos) Which I used as a DataBase to the property Name in the other class (XWiki.formClass). So, I chose for this property: XWiki Class Name: XWiki.dbClass Id Field Name: Name Value Field Name: Alias But the result was not as in a List of Users property, in which when one choose for example Carlos Eduardo da Silva the result in the table is Carlos. The result was that both, selected and diplayed information, are in this example Carlos. Perhaps I'm missing something, Erica, but if you are dealing with XWiki users, what not simply modify XWiki.XWikiUsers class to host the new information you need to store? You must be careful when you updated this class at XWiki update time! Or create that new dbClass to store new data (position and alias) and instantiate it (add an instance of that class) to each XWiki user. I know this is not what you are asking for, but I'm trying to understand what do you want to do. I've tried this Database List properties type in a XE 2.6-SNAPSHOT.31892 and it seems to work a expected. When you talk about result in the table, what table are you talking about? Thanks! And another thing... I didn't understand the DB Tree property. One thing that worked was: XWiki Class Name: XWiki.dbClass Id Field Name: doc.fullName Value Field Name: Alias Parent Field Name: doc.parent But I don't understand the meaning of that... Can anyone help me ? This is the only file where I can find a reference to Tree Property in the XWiki ecosystem... http://dev.xwiki.org/xwiki/bin/view/Drafts/DatabaseListProperties But it is just in the title of the document. I've trying to get it working to no avail. It seems that it allows to assign a value of a property by selecting a document from a tree of documents. But I'm not able to get it working. Could you try with, let's say, a dbTree based on XWiki.XWikiUsers? Thanks! Just my two cents! Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] where put macros?
Hi! Jerome Velociter wrote: Actually I've been thinking maybe we could provide a Macros/ space with XE. The home page would be a improved version of the current XWiki.WikiMacros page (adding for example a ClassSheet for macros, a form to create a new macro, some documentation, etc.) WDYT? It will be really welcome! :-) I think any user will welcome any initiative that contribute to unveil XWiki scripting capabilities. You dev people are aware of all this nice stuff but we, regular users, struggle to get them working! Cheers! Jerome On Tue, Nov 2, 2010 at 2:03 PM, Arnaud bourree arnaud.bour...@gmail.com wrote: 2010/11/2 Thomas Mortagne thomas.morta...@xwiki.com: On Tue, Nov 2, 2010 at 10:14, Caleb James DeLisle calebdeli...@lavabit.com wrote: If you're contributing a macro then just log in and fgo to this page. http://code.xwiki.org/xwiki/bin/view/Macros/CreateMacro It will put the macro in the Macros space and automatically add it to the index. Thanks for contributing to code.xwiki.org ;) I think Thomas was talking about his how macro space, not where to put contributed macro documentation. Yes, thanks Thomas, I decided to used Macros space. Arnaud. Caleb On 11/02/2010 04:57 AM, Arnaud bourree wrote: 2010/11/2 Caleb James DeLisle calebdeli...@lavabit.com: In your own wiki I think you want to put macros in a space where you will be able to find them easily. The XWiki space is full of important internals and I wouldn't recommend putting any macros in there. Macros sounds like a fine choice. I ask question more for macro we contribute to Arnaud. Caleb On 11/02/2010 04:40 AM, Arnaud bourree wrote: Hello, Where is the best space to put macros? I check in some macro from code.xwiki.org, and find that macros are commonly put in XWiki, Macros or Macro space. I've a preference for Macros as it self explanatory and I think XWiki space more dedicated to XE pages. What do you think? Regards, Arnaud. ___ 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 ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Thomas Mortagne ___ 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 -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Properties List of users and DB list (and DB Tree)
Hi! Erica Usui wrote: I'm sorry, but that's just what I was talking about from the begining... Sure! I was just trying to reproduce the error. It doesn't work properly... It was suposed to store the property of Id Field Name and to display on select list the property of Value Field Name. But it seems to display and store the the chosen one for Value Field Name. That's why I've created http://jira.xwiki.org/jira/browse/XE-732 after trying XE 2.6-SNAPSHOT.31892 and XE 2.6-SNAPSHOT.32286. Do you agree with the description of the issue? Please, fill free to vote for it, to watch or to comment it: Let's hope more people consider this important for their work! 2010/11/2 [Ricardo Rodriguez] eBioTIC. ricardo.rodrig...@ebiotic.net Hi! Erica Usui wrote: Hi! My property is just like a static list, but populated by another class - so, I used a DB List property. What I want to show on select is different from what I want the stored value to be, this is actually the purpose of DB List properties' id name and value name, but my experience showed the contrary... I've already seem these linkhttp://dev.xwiki.org/xwiki/bin/view/Drafts/DatabaseListProperties, and also found important information about this subject on this mailing ( http://lists.xwiki.org/pipermail/users/2008-February/010417.html). But didn't solve my problem. Have you checked this? http://www.xwiki.org/xwiki/bin/view/FAQ/HowToCreateAOneToManyRelationshipInXWiki I can't try it myself today. I'll be back to this issue ASAP. Thanks. Again, I just want to do the same as property List of users does, which is when selecting it is shown first_name+last_name, and when querying the result is XWiki.alias. I want to do something similar, but with my own class, not XWiki.XWikiUsers. For example: XWiki.dbClass [which has: property1 (string), property2 (string)]. XWiki.class1Class [which has: property3 (dbList)= XWiki class name: XWiki.dbClass, id field name: property1; value field name: property2)]. 2010/10/29 [Ricardo Rodriguez] eBioTIC. ricardo.rodrig...@ebiotic.net Hi, Erica Usui wrote: Hi! I'm trying to list the users' name in a form, but the name have complement (p.e. Name: Carlos Eduardo da Silva / HR - manager). As in a List of users property, I want to display, when someone is selecting a name, the full name and complement, but when displaying in the results I want it to show the user's Alias. So what I did was a class (XWiki.dbClass) with two properties: Name (String) (p.e. Carlos Eduardo da Silva / HR - manager) Alias (String) (p.e.Carlos) Which I used as a DataBase to the property Name in the other class (XWiki.formClass). So, I chose for this property: XWiki Class Name: XWiki.dbClass Id Field Name: Name Value Field Name: Alias But the result was not as in a List of Users property, in which when one choose for example Carlos Eduardo da Silva the result in the table is Carlos. The result was that both, selected and diplayed information, are in this example Carlos. Perhaps I'm missing something, Erica, but if you are dealing with XWiki users, what not simply modify XWiki.XWikiUsers class to host the new information you need to store? You must be careful when you updated this class at XWiki update time! Or create that new dbClass to store new data (position and alias) and instantiate it (add an instance of that class) to each XWiki user. I know this is not what you are asking for, but I'm trying to understand what do you want to do. I've tried this Database List properties type in a XE 2.6-SNAPSHOT.31892 and it seems to work a expected. When you talk about result in the table, what table are you talking about? Thanks! And another thing... I didn't understand the DB Tree property. One thing that worked was: XWiki Class Name: XWiki.dbClass Id Field Name: doc.fullName Value Field Name: Alias Parent Field Name: doc.parent But I don't understand the meaning of that... Can anyone help me ? This is the only file where I can find a reference to Tree Property in the XWiki ecosystem... http://dev.xwiki.org/xwiki/bin/view/Drafts/DatabaseListProperties But it is just in the title of the document. I've trying to get it working to no avail. It seems that it allows to assign a value of a property by selecting a document from a tree of documents. But I'm not able to get it working. Could you try with, let's say, a dbTree based on XWiki.XWikiUsers? Thanks! Just my two cents! Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http
Re: [xwiki-users] Properties List of users and DB list (and DB Tree)
Hi Erica! Erica Usui wrote: Hi! My property is just like a static list, but populated by another class - so, I used a DB List property. What I want to show on select is different from what I want the stored value to be, this is actually the purpose of DB List properties' id name and value name, but my experience showed the contrary... I've been doing some research with running XE/XEM 2.4.30451 installation working with my own classes and I am not able to get running a DBList with an ID Field and an alternative Value Field. What I sent in Value Field is both set as selecting value and value stored in the property. This is only valid for built-in classes as XWiki.XWikiUsers. What I get for a List of Users is first_name+last_name for the list (I always get a box with a scroll bar whatever selection I check) and the full docname as stored value (XWiki.fjrodriguezf,XWiki.juancrujeiras,...). I'll do more research next week after installing a new XE snapshot. I've already seem these linkhttp://dev.xwiki.org/xwiki/bin/view/Drafts/DatabaseListProperties, and also found important information about this subject on this mailing ( http://lists.xwiki.org/pipermail/users/2008-February/010417.html). But didn't solve my problem. Again, I just want to do the same as property List of users does, which is when selecting it is shown first_name+last_name, and when querying the result is XWiki.alias. I want to do something similar, but with my own class, not XWiki.XWikiUsers. For example: XWiki.dbClass [which has: property1 (string), property2 (string)]. XWiki.class1Class [which has: property3 (dbList)= XWiki class name: XWiki.dbClass, id field name: property1; value field name: property2)]. That is clear to me. What I was proposing was to work with a well known class to have a common point for comparing results. 2010/10/29 [Ricardo Rodriguez] eBioTIC. ricardo.rodrig...@ebiotic.net Hi, Erica Usui wrote: Hi! I'm trying to list the users' name in a form, but the name have complement (p.e. Name: Carlos Eduardo da Silva / HR - manager). As in a List of users property, I want to display, when someone is selecting a name, the full name and complement, but when displaying in the results I want it to show the user's Alias. So what I did was a class (XWiki.dbClass) with two properties: Name (String) (p.e. Carlos Eduardo da Silva / HR - manager) Alias (String) (p.e.Carlos) Which I used as a DataBase to the property Name in the other class (XWiki.formClass). So, I chose for this property: XWiki Class Name: XWiki.dbClass Id Field Name: Name Value Field Name: Alias But the result was not as in a List of Users property, in which when one choose for example Carlos Eduardo da Silva the result in the table is Carlos. The result was that both, selected and diplayed information, are in this example Carlos. Perhaps I'm missing something, Erica, but if you are dealing with XWiki users, what not simply modify XWiki.XWikiUsers class to host the new information you need to store? You must be careful when you updated this class at XWiki update time! Or create that new dbClass to store new data (position and alias) and instantiate it (add an instance of that class) to each XWiki user. I know this is not what you are asking for, but I'm trying to understand what do you want to do. I've tried this Database List properties type in a XE 2.6-SNAPSHOT.31892 and it seems to work a expected. When you talk about result in the table, what table are you talking about? Thanks! And another thing... I didn't understand the DB Tree property. One thing that worked was: XWiki Class Name: XWiki.dbClass Id Field Name: doc.fullName Value Field Name: Alias Parent Field Name: doc.parent But I don't understand the meaning of that... Can anyone help me ? This is the only file where I can find a reference to Tree Property in the XWiki ecosystem... http://dev.xwiki.org/xwiki/bin/view/Drafts/DatabaseListProperties But it is just in the title of the document. I've trying to get it working to no avail. It seems that it allows to assign a value of a property by selecting a document from a tree of documents. But I'm not able to get it working. Could you try with, let's say, a dbTree based on XWiki.XWikiUsers? Thanks! Just my two cents! Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Properties List of users and DB list (and DB Tree)
[Ricardo Rodriguez] eBioTIC. wrote: Hi Erica! Erica Usui wrote: Hi! My property is just like a static list, but populated by another class - so, I used a DB List property. What I want to show on select is different from what I want the stored value to be, this is actually the purpose of DB List properties' id name and value name, but my experience showed the contrary... I've been doing some research with running XE/XEM 2.4.30451 installation working with my own classes and I am not able to get running a DBList with an ID Field and an alternative Value Field. What I sent in Value Field is both set as selecting value and value stored in the property. This is only valid for built-in classes as XWiki.XWikiUsers. What I get for a List of Users is first_name+last_name for the list (I always get a box with a scroll bar whatever selection I check) and the full docname as stored value (XWiki.fjrodriguezf,XWiki.juancrujeiras,...). I'll do more research next week after installing a new XE snapshot. Same behavior working with XE 2.6-SNAPSHOT.32286 I've created http://jira.xwiki.org/jira/browse/XE-732 Thanks. I've already seem these linkhttp://dev.xwiki.org/xwiki/bin/view/Drafts/DatabaseListProperties, and also found important information about this subject on this mailing ( http://lists.xwiki.org/pipermail/users/2008-February/010417.html). But didn't solve my problem. Again, I just want to do the same as property List of users does, which is when selecting it is shown first_name+last_name, and when querying the result is XWiki.alias. I want to do something similar, but with my own class, not XWiki.XWikiUsers. For example: XWiki.dbClass [which has: property1 (string), property2 (string)]. XWiki.class1Class [which has: property3 (dbList)= XWiki class name: XWiki.dbClass, id field name: property1; value field name: property2)]. That is clear to me. What I was proposing was to work with a well known class to have a common point for comparing results. 2010/10/29 [Ricardo Rodriguez] eBioTIC. ricardo.rodrig...@ebiotic.net Hi, Erica Usui wrote: Hi! I'm trying to list the users' name in a form, but the name have complement (p.e. Name: Carlos Eduardo da Silva / HR - manager). As in a List of users property, I want to display, when someone is selecting a name, the full name and complement, but when displaying in the results I want it to show the user's Alias. So what I did was a class (XWiki.dbClass) with two properties: Name (String) (p.e. Carlos Eduardo da Silva / HR - manager) Alias (String) (p.e.Carlos) Which I used as a DataBase to the property Name in the other class (XWiki.formClass). So, I chose for this property: XWiki Class Name: XWiki.dbClass Id Field Name: Name Value Field Name: Alias But the result was not as in a List of Users property, in which when one choose for example Carlos Eduardo da Silva the result in the table is Carlos. The result was that both, selected and diplayed information, are in this example Carlos. Perhaps I'm missing something, Erica, but if you are dealing with XWiki users, what not simply modify XWiki.XWikiUsers class to host the new information you need to store? You must be careful when you updated this class at XWiki update time! Or create that new dbClass to store new data (position and alias) and instantiate it (add an instance of that class) to each XWiki user. I know this is not what you are asking for, but I'm trying to understand what do you want to do. I've tried this Database List properties type in a XE 2.6-SNAPSHOT.31892 and it seems to work a expected. When you talk about result in the table, what table are you talking about? Thanks! And another thing... I didn't understand the DB Tree property. One thing that worked was: XWiki Class Name: XWiki.dbClass Id Field Name: doc.fullName Value Field Name: Alias Parent Field Name: doc.parent But I don't understand the meaning of that... Can anyone help me ? This is the only file where I can find a reference to Tree Property in the XWiki ecosystem... http://dev.xwiki.org/xwiki/bin/view/Drafts/DatabaseListProperties But it is just in the title of the document. I've trying to get it working to no avail. It seems that it allows to assign a value of a property by selecting a document from a tree of documents. But I'm not able to get it working. Could you try with, let's say, a dbTree based on XWiki.XWikiUsers? Thanks! Just my two cents! Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] issue with xwiki.getURLContent()
Arnaud bourree wrote: 2010/10/29 [Ricardo Rodriguez] eBioTIC. ricardo.rodrig...@ebiotic.net: Arnaud bourree wrote: Hello Ricardo, 2010/10/29 [Ricardo Rodriguez] eBioTIC. ricardo.rodrig...@ebiotic.net: Hi! Arnaud bourree wrote: Hello, I write the following test page: = Goovy = {{groovy}} println xwiki.getURLContent(http://localhost:8080/xwiki/bin/download/Sandbox/ReportMacro/report2xwiki.xsl;) {{/groovy}} = Velocity = {{velocity}} $xwiki.getURLContent(http://localhost:8080/xwiki/bin/download/Sandbox/ReportMacro/report2xwiki.xsl;) {{/velocity}} And it doesn't return attachment file content. If I change URL to http://www.google.com;, both returns Google page If I curl URL from console, then I get my attachment file content. What's wrong? Don't we allowed to used absolute URL to our wiki? I run XWiki 2.5 with Tomcat 6.0.28, Mysql 5.1.49, Ubuntu 10.10 Here what I see: it does work in a XE/XEM 2.4.30451 installation... http://ebiotic.net/bin/ICT/GetAttachmentContent But id doesn't in a XE 2.6-SNAPSHOT.31892... http://epecnetcore.environmentalchange.net:8080/xwiki/bin/view/ICT/GetAttachmentContent Does this provide any clue? It looks that could be regression introduce by correction http://jira.xwiki.org/jira/browse/XWIKI-5405 As it it closed to doc.getAttachement() Arnaud. Or something new as it is fixed in trunk for 2.6 (warning: I've not a clear idea about what this means concerning snapshots!) Let's see what others has to say about this! I'll update the snapshot I've in my develop environment ASAP and try gain. I'm afraid that won't happens before next Tuesday though. By chance I can used URL later in my code without retrieving content. So, I can do without, but I will follow correction. Arnaud. Testing XE 2.6-SNAPSHOT.32286: it does work without a glitch. Thanks! Arnaud. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ 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 -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ 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 -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] groups: mailing them
Hi! Joris Dirks wrote: I intend to make more use of groups and updating the members on changes relevant to them by sending them e-mail. Watchlists look too technical/difficult and forcing group members to use them is too cumbersome, so I'd like to start simple: exporting the mail addresses and mailing them the old-fashioned way. Now for the coding: I started with http://code.xwiki.org/xwiki/bin/view/Snippets/CsvExportOfUsersSnippet yet group membership is only enclosed in the objects of the respective group pages. Any suggestions how to either export only members of a set group, or include subscribed groups as a column? I think you should be aware of this... http://markmail.org/thread/dnwgtgfq4nnwz7nv HTH, Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Problems with the dashboard spaces panel ( using reverse proxy )
Hi! Piotr Dziubecki wrote: Dear all, I have a little problem with the behavior of the Spaces panel in the Dashboard section. First of all, let me describe my portal configuration: On my host I have one portal which takes the standard :80 port, then it's Xwiki on :28181 Unfortunately I cannot make xwiki port ( 28181 ) public so I created a reverse proxy in the following way: ProxyPass /xwiki/ http://localhost:28181/xwiki/ ProxyPassReverse /xwiki/ http://localhost:28181/xwiki/ ProxyPass /xwiki http://localhost:28181/xwiki ProxyPassReverse /xwiki http://localhost:28181/xwiki Then I can access to my Xwiki with the following url: apps.man.poznan.pl/xwiki From the internal network I can use that one as well: apps.man.poznan.pl:28181 Now I can describe my problem: when I access xwiki with the port, everything works as expected. Unfortunately when I use /xwiki url I'm getting the view as on the attached screenshot. It seems that somehow the links for those little icons are broken. Those links are still active but it doesn't look that good. Even though I'm sure more experienced users are already aware of what you are describing, please, take into account that attachments are not allowed in this list so we haven't received the screenshot. Perhaps you could grant access to unregistered users to some document in your wiki to see that online? Or simply the screenshot sent to me and I'll make it available for the community. Thanks! I imagine this a minor glitch but if someone has any ideas how to fix that.. Thanks, Piotr ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Problems with the dashboard spaces panel ( using reverse proxy )
Hi! Piotr Dziubecki wrote: Oops, sorry, thanks for the info, Ricardo :) just to not bother you more I've uploaded my screenshot here: http://i.imgur.com/l7DSH.png I forgot to mention, I'm using XWiki Enterprise 2.4.3.31377 That's funny because it is possible to access to the icons from here. I'm seeing the icons correctly... http://apps.man.poznan.pl/xwiki/resources/icons/silk/cog.gif http://apps.man.poznan.pl/xwiki/resources/icons/silk/book_open.gif When you get this error, are you trying to access your site from the Internet, a host outside your own network, or from a host inside the network? Thanks, Piotr W dniu 10-10-29 11:38, [Ricardo Rodriguez] eBioTIC. wrote: Hi! Piotr Dziubecki wrote: Dear all, I have a little problem with the behavior of the Spaces panel in the Dashboard section. First of all, let me describe my portal configuration: On my host I have one portal which takes the standard :80 port, then it's Xwiki on :28181 Unfortunately I cannot make xwiki port ( 28181 ) public so I created a reverse proxy in the following way: ProxyPass /xwiki/ http://localhost:28181/xwiki/ ProxyPassReverse /xwiki/ http://localhost:28181/xwiki/ ProxyPass /xwiki http://localhost:28181/xwiki ProxyPassReverse /xwiki http://localhost:28181/xwiki Then I can access to my Xwiki with the following url: apps.man.poznan.pl/xwiki From the internal network I can use that one as well: apps.man.poznan.pl:28181 Now I can describe my problem: when I access xwiki with the port, everything works as expected. Unfortunately when I use /xwiki url I'm getting the view as on the attached screenshot. It seems that somehow the links for those little icons are broken. Those links are still active but it doesn't look that good. Even though I'm sure more experienced users are already aware of what you are describing, please, take into account that attachments are not allowed in this list so we haven't received the screenshot. Perhaps you could grant access to unregistered users to some document in your wiki to see that online? Or simply the screenshot sent to me and I'll make it available for the community. Thanks! I imagine this a minor glitch but if someone has any ideas how to fix that.. Thanks, Piotr ___ 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 -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] issue with xwiki.getURLContent()
Hi! Arnaud bourree wrote: Hello, I write the following test page: = Goovy = {{groovy}} println xwiki.getURLContent(http://localhost:8080/xwiki/bin/download/Sandbox/ReportMacro/report2xwiki.xsl;) {{/groovy}} = Velocity = {{velocity}} $xwiki.getURLContent(http://localhost:8080/xwiki/bin/download/Sandbox/ReportMacro/report2xwiki.xsl;) {{/velocity}} And it doesn't return attachment file content. If I change URL to http://www.google.com;, both returns Google page If I curl URL from console, then I get my attachment file content. What's wrong? Don't we allowed to used absolute URL to our wiki? I run XWiki 2.5 with Tomcat 6.0.28, Mysql 5.1.49, Ubuntu 10.10 Here what I see: it does work in a XE/XEM 2.4.30451 installation... http://ebiotic.net/bin/ICT/GetAttachmentContent But id doesn't in a XE 2.6-SNAPSHOT.31892... http://epecnetcore.environmentalchange.net:8080/xwiki/bin/view/ICT/GetAttachmentContent Does this provide any clue? Arnaud. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Successful FreeBSD (Tomcat) to Solaris (Glassfish) migration
Hi Kaya, Kaya Saman wrote: [...] yes you can add content to any wiki on xwiki.org. Just be careful to add good quality doc ;) Thanks for your help, that's great! -Vincent [...] Have signed up now but can't figure out how to create my own page?? Basically the documentation I have is already compiled and want to copy/paste it into my own Space if possible rather then adding to the already very congested Xwiki Admin Installation guide. I don't have rights to do this though so I'm wondering what the best way to go is as my stuff doesn't really fit I feel to what's up already?? It's basically a combination of Install and Configuration together compiled into a howto rather then broken up section by section. Has anyone got any ideas of the best approach?? Please, check this... http://dev.xwiki.org/xwiki/bin/view/Drafts/XWikiOrgDocumentationStandard http://dev.xwiki.org/xwiki/bin/view/Drafts/ Hope this helps! Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] PDF export question
Hi! ccoreggioli wrote: Hi all, when exporting info macros or warning macros to PDF, these components aren't rendered as they are in browser, in facts the box edge, the background color and the related icons aren't printed in resulting pdf document. In this way, the will of highlighting some text isn't ported to the pdf (and rtf) export. is this a bug or simply this feature haven't been developed yet? i'm testing XE 2.5M2 on Centos 5 64bit, tomcat 6.0.26 and jdk 1.6.0_20. IE7 on client side. thanks, claudio Please, have you checked this? http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HCustomizingthePDFexportLook26Feel I'm not able yet of telling you if this is a bug or it is simple not supported with the current export architecture. Print preview does its job without a glitch, the rendered page is ok. So, I only find one option: The pdf*.vm templates out strip these macro layouts and we do need another customized template/templates to get them rendered with the current architecture. But I don't know yet what changes are required. Any idea will be welcome! The new architecture will solve this issue! http://code.xwiki.org/xwiki/bin/view/Modules/RenderingModule Cheers, Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Error number 4001 in 4: Error while parsing velocity page
Hi! Ken McWilliams wrote: Sorry I left Error number 4001 in 4: Error while parsing velocity page... This is NOT the current issue. The current issue is the upload for XAR does not add it to the available packages. Please, checked max_allowed_packet for your MySQL instance. See this... http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationMySQL On Fri, 2010-10-29 at 16:46 -0600, Ken McWilliams wrote: I have a new XWiki installation on Windows XP, Glassfish 3.0.1 Xwiki version xwiki-enterprise-web-2.5.war, MySQL 5.1.35 The Issue: I have a new empty wiki... on the page : http://IPADDR:8080/xwiki/bin/import/XWiki/XWikiPreferences Which says : Your wiki seems empty. You may want to import the default XWiki Enterprise wiki which... So in the dialogue box I browse to a downloaded backup of the wiki in a xar file and try to import it but it returns back to the main screen as if nothing happened (it does seem to upload but it is not listed as an Available package after this. So I then try to default set of pages at http://maven.xwiki.org/releases/com/xpn/xwiki/products/xwiki-enterprise-wiki/2.5/xwiki-enterprise-wiki-2.5.xar and this does not work either. I've set up Xwiki successfully before (although the other installation was on linux) and it went without issue. As a clue I was getting this error first: Error number 4001 in 4: Error while parsing velocity page /templates/importinline.vm Wrapped Exception: Failed to evaluate content with id [/templates/importinline.vm] I noticed that I needed to start up the windows Glassfish service manually... So I changed the user to be the Administrator account (Under options for the Windows Glassfish Service) and then the template error went away... Go figure... anyways the above error prevented the file upload dialogue from even appearing but now... there is this issue. Any suggestions? Other than not using Windows ;) because I tried that suggestion already. ___ 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 -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Display current date on page
Hi! Lockie wrote: Hi all, Is there a date property I can use to automatically display the current date on a page? I would do it in javascript but you can't embed script tags in {{html}} so is there a way of doing it in velocity? I can't seem to find any info on this. Thanks, Lockie I think it is worth to keep an eye on this: http://platform.xwiki.org/xwiki/bin/view/DevGuide/Scripting#HVelocitySpecificInformation Check Comparison Date Tool methods. HTH, Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Lucene File Indexing
Hi! Thomas Höschele wrote: Hallo, I noticed that lucene is capable of Indexing various office files (excel, word, outlook mails); however, this doesn’t happen automatically. When I add the file it does not get indexed no matter how long I wait. When I rebuild the Index via the administration terminal the files get indexed. Please, Thomas, could you give more details about your installation? XWiki release? Servlet container/application server (Jetty, Tomcat, GlassFish,..)? Database? Also I get an error in the logs (error getting content of attachment … of doc …). Could you also check if you have broken attachments and those are the ones causing these errors? You can use this: http://code.xwiki.org/xwiki/bin/view/Snippets/AllBrokenAttachments Is this an Lucene Error or has it something todo with my configuration? I had the same type of errors here (XE/XEM 2.4.1 running on a Suse Linux 10sp3 box with Apache Tomcat 5.5.27 and Java 1.5.0 ). All but a small bunch where related with broken attachments. Among these, three Excel spreadsheets with xlsb format. The rest, PDF files. You talk about Microsoft Office files, let's see if we can reproduce the error! I'll try in a new installation running the last XE snapshot ASAP. I'll keept this thread posted. If you could confirm that some xlsb files are causing problems in Lucene, I think it will be worth to create a new Jira issue on this. Thanks! Thomas ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] conditional redirect after login
Hi! Gerritjan Koekkoek wrote: Hi, I really appreciate your interest, this really helps me; Thanks You are very right, If users are redirected to their profile they are not forced to enter any extra data. But we will put a text in the profile page that it would be very helpfull if they did; If they do not, we will not add them to to more functional group, so, i hope, it is also in their interest if they want more functionality. This is, by means a manual process, we do not want that the WIKI is crowded with visitors that do not ADD to our community I think Curriki people have done a nice work to create a custimized registering process. Do you know Curriki? Check this... http://www.curriki.org Register yourself and will see the look and feel of the process. One principle is that I try to do everything from within the WIKI and stay away from configuration files. WE are hosting our wiki on a external system, so it is difficult to get access to filesystem anyway! Second; we are fully happy with the default behaviour of to what groups a registered user is added after registration I do agree with this approach. It also helps in the upgrade process. There are a number of extension things playing around lately in XWiki that is worth to pay attention to! For JavaScript and Stylesheet extensions seam simply great... even though I'm not able to use them yet! :-) The Extensions Manager will ease the process. Regarding the modification of the login.vm, I think it is quite simple to copy login.vm to a customized skin. Regarding the login.vm modification (snippet from default login.vm in XWIKI 2.5 #if ($xcontext.user != 'XWiki.XWikiGuest') #if ($request.xredirect) $response.sendRedirect($request.xredirect) #else $response.sendRedirect($xwiki.getURL('Main.WebHome')) #end #elseif($doc.fullName != 'XWiki.XWikiLogin') #set($qs = $!{request.queryString}) #if(!$request.getParameter('xredirect')) #set($qs = xredirect=$escapetool.url($doc.getURL('view'))${qs}) #end $response.sendRedirect($xwiki.getURL('XWiki.XWikiLogin', 'login', $qs)) #else ### ### Login page ### ### ... #end I think I should inject the code after #if ($xcontext.user != 'XWiki.XWikiGuest') You think I could use #includeInContext('YourSpace.YourDocument') or would a macro make more sense? I'm always trying to keep standard XWIKI code as supplied with the product as standard as possible, otherwise I'm facing more complex upgrade paths? Have you tried this? I'm not able to get it working. Or there is some more element involved in the login process, or I don't understand the first code chunk behaviour. I've substitute this block... #if ($xcontext.user != 'XWiki.XWikiGuest') #if ($request.xredirect) $response.sendRedirect($request.xredirect) #else $response.sendRedirect($xwiki.getURL('Main.WebHome')) #end #elseif($doc.fullName != 'XWiki.XWikiLogin') #set($qs = $!{request.queryString}) #if(!$request.getParameter('xredirect')) #set($qs = xredirect=$escapetool.url($doc.getURL('view'))${qs}) #end $response.sendRedirect($xwiki.getURL('XWiki.XWikiLogin', 'login', $qs)) #else with this one... #if ($xcontext.user != 'XWiki.XWikiGuest') $response.sendRedirect($xwiki.getURL('XWiki.RogerGoldman')) #else And I keep being redirected to the homepage after log in. XWiki.RogerGoldman is a dummy user and it exists. It works when included in a regular document. See this.. http://epecnetcore.environmentalchange.net:8080/xwiki/bin/view/ICT/Redirect Please, do you understand why? Thanks! Gerritjan Op 25 okt 2010, om 23:59 heeft [Ricardo Rodriguez] eBioTIC. het volgende geschreven: Gerritjan Koekkoek wrote: Hi, The condition is: After user has registered he/she only belongs to XWikiAllGroup (right?) Right, by default. You should want to consider these two parameters in xwiki.cfg (as stated in its preamble, commented parameters show the default value) #-# List of groups that a new user should be added to by default after registering. Comma-separated list of group document #-# names. # xwiki.users.initialGroups=XWiki.XWikiAllGroup #-# Should all users be considered members of XWiki.XWikiAllGroup, even if they don't have an associated object in the #-# group's document? # xwiki.authentication.group.allgroupimplicit=0 If this condition is true; we would like to ask the user to 'tell us more about yourself' by re-directing to the profile But redirecting to her/his profile doesn't enforce more information to be entered. Please, how are you planning to get that? Users can just arrive to their profiles and to enter nothing. Updating the userprofile with extra data; with this data we can then add the user to appropriate group(s) I understand : the $query will give all groups in the wiki except XWikiAllGroup Yes, the query retrieves all documents with an instance
Re: [xwiki-users] Lucene File Indexing
Hi! Thomas Höschele wrote: Hallo, checked broken attachments. There some put these are picture files only, which should not be affected by the lucene engine. I've seen issues with PDF files including only images. I'd fix all and every problem with attachments before debugging problems with Lucene. I guess you can configure Lucene to exclude some file extensions, but I don't now how to do that. Also how can I make the rebuild with the scheduler, my code does not seem to work. My Search Administration don't work neither with Lucene as default search engine. To force a rebuild of the index, simply delete its files and restart your applications server/servlet container. About index files location, xwiki.cfg reads: #-# Lucene search engine #-# Location where to place the lucene index files. The default is the lucene subdirectory in the container's work Please, could you tell something else about your installation? Thanks! Thanks for your answer. Thomas -Ursprüngliche Nachricht- Von: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] Im Auftrag von [Ricardo Rodriguez] eBioTIC. Gesendet: Donnerstag, 28. Oktober 2010 11:54 An: XWiki Users Betreff: Re: [xwiki-users] Lucene File Indexing Hi! Thomas Höschele wrote: Hallo, I noticed that lucene is capable of Indexing various office files (excel, word, outlook mails); however, this doesn't happen automatically. When I add the file it does not get indexed no matter how long I wait. When I rebuild the Index via the administration terminal the files get indexed. Please, Thomas, could you give more details about your installation? XWiki release? Servlet container/application server (Jetty, Tomcat, GlassFish,..)? Database? Also I get an error in the logs (error getting content of attachment ... of doc ...). Could you also check if you have broken attachments and those are the ones causing these errors? You can use this: http://code.xwiki.org/xwiki/bin/view/Snippets/AllBrokenAttachments Is this an Lucene Error or has it something todo with my configuration? I had the same type of errors here (XE/XEM 2.4.1 running on a Suse Linux 10sp3 box with Apache Tomcat 5.5.27 and Java 1.5.0 ). All but a small bunch where related with broken attachments. Among these, three Excel spreadsheets with xlsb format. The rest, PDF files. You talk about Microsoft Office files, let's see if we can reproduce the error! I'll try in a new installation running the last XE snapshot ASAP. I'll keept this thread posted. If you could confirm that some xlsb files are causing problems in Lucene, I think it will be worth to create a new Jira issue on this. Thanks! Thomas ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] conditional redirect after login
[Ricardo Rodriguez] eBioTIC. wrote: Hi! Gerritjan Koekkoek wrote: Hi, I really appreciate your interest, this really helps me; Thanks You are very right, If users are redirected to their profile they are not forced to enter any extra data. But we will put a text in the profile page that it would be very helpfull if they did; If they do not, we will not add them to to more functional group, so, i hope, it is also in their interest if they want more functionality. This is, by means a manual process, we do not want that the WIKI is crowded with visitors that do not ADD to our community I think Curriki people have done a nice work to create a custimized registering process. Do you know Curriki? Check this... http://www.curriki.org Register yourself and will see the look and feel of the process. One principle is that I try to do everything from within the WIKI and stay away from configuration files. WE are hosting our wiki on a external system, so it is difficult to get access to filesystem anyway! Second; we are fully happy with the default behaviour of to what groups a registered user is added after registration I do agree with this approach. It also helps in the upgrade process. There are a number of extension things playing around lately in XWiki that is worth to pay attention to! For JavaScript and Stylesheet extensions seam simply great... even though I'm not able to use them yet! :-) The Extensions Manager will ease the process. Regarding the modification of the login.vm, I think it is quite simple to copy login.vm to a customized skin. Regarding the login.vm modification (snippet from default login.vm in XWIKI 2.5 #if ($xcontext.user != 'XWiki.XWikiGuest') #if ($request.xredirect) $response.sendRedirect($request.xredirect) #else $response.sendRedirect($xwiki.getURL('Main.WebHome')) #end #elseif($doc.fullName != 'XWiki.XWikiLogin') #set($qs = $!{request.queryString}) #if(!$request.getParameter('xredirect')) #set($qs = xredirect=$escapetool.url($doc.getURL('view'))${qs}) #end $response.sendRedirect($xwiki.getURL('XWiki.XWikiLogin', 'login', $qs)) #else ### ### Login page ### ### ... #end I think I should inject the code after #if ($xcontext.user != 'XWiki.XWikiGuest') You think I could use #includeInContext('YourSpace.YourDocument') or would a macro make more sense? I'm always trying to keep standard XWIKI code as supplied with the product as standard as possible, otherwise I'm facing more complex upgrade paths? Have you tried this? I'm not able to get it working. Or there is some more element involved in the login process, or I don't understand the first code chunk behaviour. I've substitute this block... #if ($xcontext.user != 'XWiki.XWikiGuest') #if ($request.xredirect) $response.sendRedirect($request.xredirect) #else $response.sendRedirect($xwiki.getURL('Main.WebHome')) #end #elseif($doc.fullName != 'XWiki.XWikiLogin') #set($qs = $!{request.queryString}) #if(!$request.getParameter('xredirect')) #set($qs = xredirect=$escapetool.url($doc.getURL('view'))${qs}) #end $response.sendRedirect($xwiki.getURL('XWiki.XWikiLogin', 'login', $qs)) #else with this one... #if ($xcontext.user != 'XWiki.XWikiGuest') $response.sendRedirect($xwiki.getURL('XWiki.RogerGoldman')) #else And I keep being redirected to the homepage after log in. XWiki.RogerGoldman is a dummy user and it exists. It works when included in a regular document. See this.. http://epecnetcore.environmentalchange.net:8080/xwiki/bin/view/ICT/Redirect Please, do you understand why? Thanks! Nothing to do with the script. 've had to restart the server due to a java.lang.OutOfMemoryError: PermGen space error and now it does work. I'll try later to inject the script in this template. Gerritjan Op 25 okt 2010, om 23:59 heeft [Ricardo Rodriguez] eBioTIC. het volgende geschreven: Gerritjan Koekkoek wrote: Hi, The condition is: After user has registered he/she only belongs to XWikiAllGroup (right?) Right, by default. You should want to consider these two parameters in xwiki.cfg (as stated in its preamble, commented parameters show the default value) #-# List of groups that a new user should be added to by default after registering. Comma-separated list of group document #-# names. # xwiki.users.initialGroups=XWiki.XWikiAllGroup #-# Should all users be considered members of XWiki.XWikiAllGroup, even if they don't have an associated object in the #-# group's document? # xwiki.authentication.group.allgroupimplicit=0 If this condition is true; we would like to ask the user to 'tell us more about yourself' by re-directing to the profile But redirecting to her/his profile doesn't enforce more information to be entered. Please, how are you planning to get
Re: [xwiki-users] documentation wiki user account
Hi, jminne wrote: Oh! so xwiki.org has a register link, but the sub wikis only have a login link. That seems odd to me. Yeap, perhaps the register link should be available in all and every page a guest visit in the first visits to the xwiki.org ecosystem. As happens to you, if you decide to log in a site other than the main wiki, xwiki.org, you only see a log in link, but not the register one. It is not a problem for people understanding the environment, but it is by no means obvious for first time or occasional visitors. Let see what others have to say! Anyway, that worked and now I have an account. Thanks. -John I do hope you enjoy XWiki! Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users