Re: [xwiki-users] [UX] TipsTricks
This is a snippet that I found very useful for navigational purposes: Title: Space menu Level: Intermediate Target: Developer/User Since: N/A Description: Lists pages in the current space: {{velocity}} |=Menu #set($sql = where doc.parent = '${doc.web}.${doc.name}') #foreach($item in $xwiki.searchDocuments($sql)) |[[${item}]] #end {{/velocity}} Regards Lockie - Lockie -- View this message in context: http://xwiki.475771.n2.nabble.com/UX-Tips-Tricks-tp6603500p6617108.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Can't contact farm administration wiki anymore
Hello, I've a strange effect with our wiki farm: I can't contact the farm administration wiki anymore! All other wikis are available! Xwiki seems to think the xwiki wiki is not available and forwards me to the error page (this wiki is not available, as configured in xwiki.cfg). Is there a way to figure out what's happening here? Same system is running on a staging system and the farm admin is working well! -- Mit freundlichen Grüßen Werner Greßhoff Dezernat 2 - Digitale Dienste Universitäts- und Landesbibliothek Münster ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Can't contact farm administration wiki anymore
Hello, I've a strange effect with our wiki farm: I can't contact the farm administration wiki anymore! All other wikis are available! Xwiki seems to think the xwiki wiki is not available and forwards me to the error page (this wiki is not available, as configured in xwiki.cfg). Is there a way to figure out what's happening here? Same system is running on a staging system and the farm admin is working well! -- Mit freundlichen Grüßen Werner Greßhoff Dezernat 2 - Digitale Dienste Universitäts- und Landesbibliothek Münster ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Filesystem Storage vs Database Storage
Hello everyone, since we have a lot of large attachments (10 MB +) inside our wiki, we are considering the new filesystem based attachment storage engine. As described here: http://extensions.xwiki.org/xwiki/bin/view/Extension/Filesystem+Attachment+Porter it is still experimental. I was wondering if anyone has any experiences which he/she could share with me so I am not losing any data and make the same mistakes? Has anyone used the extension to transfer their files from the database to the filesystem? Thank you for your feedback, Chris ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Document parent name changing on edit.
Hello All, At the top of some pages, I have three html buttons for the options to 'go to parent page', 'edit current', and 'delete current'. go to parent page works fine when the document is first created. However if someone tries to edit the page (which is necessary at some points) the parent of the page is wiped when the page is saved again. i.e. on clicking 'Save View' the parent value is wiped and set as the page itself. Any ideas why this would be happening? These are the buttons if there is something I am doing wrong here.. {{html}} #if($context.action==view) button style=width:100;height:65 onClick=window.location='$doc.getParentURL()' bBack to Hub/b /button button style=width:100;height:65 onClick=window.location='$doc.getExternalURL('inline')' bEdit Current/b /button button style=width:100;height:65 onClick=window.location='$doc.getExternalURL('delete')' bDelete Current/b /button #end {{/html}} Thanks, Adam ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Watchlist App Email Notification generates incorrect document links in XE3.1 farm
On 07/22/2011 08:56 AM, Tim Jones wrote: When using the Watchlist Application in XWiki Enterprise 3.1 with Enterprise Manager, the changed document links in the notification emails have incorrect URLs There are 2 problems: duplicated /bin/ element in link URL e.g. http://subwiki.server.com/bin/bin/view/SpaceName/PageName This might be caused by an incorrect configuration in the httpd frontend. I guess you're trying to shorten URLs by rewriting URLs, right? incorrect wiki e.g. changed doc in wiki#1, but server component of link url points to wiki#2 Is either of these the main wiki? Does it always happen in the same way, like wiki#1 is the main wiki, and wiki#2 is one of the virtual wikis? We are using both global and local users in the subwikis. Do these problems happen for both kinds of users? Using tomcat 7 with mysql (both setup as in install guide) Everything else works fine. Has anyone any idea what is going wrong and how I might correct? One possibility is that the main wiki doesn't have a proper wiki descriptor, thus its own base URL is not explicitly set. When this happens, the URL factory gets initialized with values from the first URL that is accessed when the application starts, and so it could wrongly set an URL used for a virtual wiki as the base for the main wiki. Thanks, Tim -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Can't contact farm administration wiki anymore
Hi Werner, Maybe it's an alias issue. Can you try to access the wiki with ip address instead of name? If you can reach the farm this way, check the WikiManager page and the alias given for Main Wiki (Domain Name column). It should be the same name as the one you were trying to reach. Regards, Guillaume Fenollar 2011/7/25 Werner Greßhoff werner.gressh...@uni-muenster.de Hello, I've a strange effect with our wiki farm: I can't contact the farm administration wiki anymore! All other wikis are available! Xwiki seems to think the xwiki wiki is not available and forwards me to the error page (this wiki is not available, as configured in xwiki.cfg). Is there a way to figure out what's happening here? Same system is running on a staging system and the farm admin is working well! -- Mit freundlichen Grüßen Werner Greßhoff Dezernat 2 - Digitale Dienste Universitäts- und Landesbibliothek Münster ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Guillaume Fenollar XWiki SysAdmin ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] [UX] TipsTricks
Here's another (simpler?) way of doing this: |=Menu #foreach ($page in $xwiki.getSpaceDocsName($doc.space)) |$page #end Thanks -Vincent On Jul 25, 2011, at 6:23 AM, Lockie wrote: This is a snippet that I found very useful for navigational purposes: Title: Space menu Level: Intermediate Target: Developer/User Since: N/A Description: Lists pages in the current space: {{velocity}} |=Menu #set($sql = where doc.parent = '${doc.web}.${doc.name}') #foreach($item in $xwiki.searchDocuments($sql)) |[[${item}]] #end {{/velocity}} Regards Lockie - Lockie ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Filesystem Storage vs Database Storage
Hi Chris, We (xwiki devs) would love to get such feedback too. We've developed and tested the feature but haven't used it in the wild with various configurations. So, has anyone used the filesystem attachment store already and do you have any feedback? Thanks -Vincent PS: Would be great if you could try it Chris. Make sure you backup your DB first just in case, if you want to roll back. On Jul 25, 2011, at 8:03 PM, w...@yellowhippy.com wrote: Hello everyone, since we have a lot of large attachments (10 MB +) inside our wiki, we are considering the new filesystem based attachment storage engine. As described here: http://extensions.xwiki.org/xwiki/bin/view/Extension/Filesystem+Attachment+Porter it is still experimental. I was wondering if anyone has any experiences which he/she could share with me so I am not losing any data and make the same mistakes? Has anyone used the extension to transfer their files from the database to the filesystem? Thank you for your feedback, Chris ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Can't contact farm administration wiki anymore
Hi Guillaume, thanks a lot for your answer! It's working locally with wget now, which is better than anything I achieved so far. Alias is set as localhost without any domain. I would expect that to work, as this is forwarded from the apache frontend (it has for XWiki 2.x). On our staging system all worked out of the box (named xwiki, so it should w/o any alias :) ) and that had puzzled me. I think, I figured out now how to set the alias. Am 26.07.2011 09:13, schrieb Guillaume Fenollar: Hi Werner, Maybe it's an alias issue. Can you try to access the wiki with ip address instead of name? If you can reach the farm this way, check the WikiManager page and the alias given for Main Wiki (Domain Name column). It should be the same name as the one you were trying to reach. Regards, Guillaume Fenollar 2011/7/25 Werner Greßhoffwerner.gressh...@uni-muenster.de Hello, I've a strange effect with our wiki farm: I can't contact the farm administration wiki anymore! All other wikis are available! Xwiki seems to think the xwiki wiki is not available and forwards me to the error page (this wiki is not available, as configured in xwiki.cfg). Is there a way to figure out what's happening here? Same system is running on a staging system and the farm admin is working well! -- Mit freundlichen Grüßen Werner Greßhoff Dezernat 2 - Digitale Dienste Universitäts- und Landesbibliothek Münster ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Mit freundlichen Grüßen Werner Greßhoff Dezernat 2 - Digitale Dienste Universitäts- und Landesbibliothek Münster ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Document parent name changing on edit.
On 07/25/2011 02:47 PM, Adam Kozuch wrote: Hello All, At the top of some pages, I have three html buttons for the options to 'go to parent page', 'edit current', and 'delete current'. go to parent page works fine when the document is first created. However if someone tries to edit the page (which is necessary at some points) the parent of the page is wiped when the page is saved again. i.e. on clicking 'Save View' the parent value is wiped and set as the page itself. Any ideas why this would be happening? Does this happen only on the documents that have these buttons? Check the HTML source of the page displayed in edit mode, and check how many inputs with the name parent are there, and what's their value. These are the buttons if there is something I am doing wrong here.. {{html}} #if($context.action==view) button style=width:100;height:65 onClick=window.location='$doc.getParentURL()' bBack to Hub/b /button button style=width:100;height:65 onClick=window.location='$doc.getExternalURL('inline')' bEdit Current/b /button button style=width:100;height:65 onClick=window.location='$doc.getExternalURL('delete')' bDelete Current/b /button #end {{/html}} Thanks, Adam ___ 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
Re: [xwiki-users] Document parent name changing on edit.
I did just that and that was my problem. There was a : input type=hidden name=parent value=${doc.name}/ That was setting the page parent its own name (I was using $request.someVar to gather and set values on creating a new page). I had figured it out last night but forgot to reply back to myself saying it was solved. On a different note, are the html buttons I am using the most efficient (best method calls?) to edit, delete, and navigate to a parent page? Thanks, Adam On Tue, Jul 26, 2011 at 3:29 AM, Sergiu Dumitriu ser...@xwiki.com wrote: On 07/25/2011 02:47 PM, Adam Kozuch wrote: Hello All, At the top of some pages, I have three html buttons for the options to 'go to parent page', 'edit current', and 'delete current'. go to parent page works fine when the document is first created. However if someone tries to edit the page (which is necessary at some points) the parent of the page is wiped when the page is saved again. i.e. on clicking 'Save View' the parent value is wiped and set as the page itself. Any ideas why this would be happening? Does this happen only on the documents that have these buttons? Check the HTML source of the page displayed in edit mode, and check how many inputs with the name parent are there, and what's their value. These are the buttons if there is something I am doing wrong here.. {{html}} #if($context.action==view) button style=width:100;height:65 onClick=window.location='$doc.getParentURL()' bBack to Hub/b /button button style=width:100;height:65 onClick=window.location='$doc.getExternalURL('inline')' bEdit Current/b /button button style=width:100;height:65 onClick=window.location='$doc.getExternalURL('delete')' bDelete Current/b /button #end {{/html}} Thanks, Adam ___ 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
Re: [xwiki-users] Watchlist App Email Notification generates incorrect document links in XE3.1 farm
Sergiu, Thanks very much for your response. I have answered your questions inline below On 24 Jul 2011, at 23:32, Sergiu Dumitriu wrote: On 07/22/2011 08:56 AM, Tim Jones wrote: When using the Watchlist Application in XWiki Enterprise 3.1 with Enterprise Manager, the changed document links in the notification emails have incorrect URLs There are 2 problems: duplicated /bin/ element in link URL e.g. http://subwiki.server.com/bin/bin/view/SpaceName/PageName This might be caused by an incorrect configuration in the httpd frontend. I guess you're trying to shorten URLs by rewriting URLs, right? Actually no, in Apache I am merely using ProxyPass and ProxyPassReverse to map / to the correct server and port : ProxyPass / http://localhost:/ ProxyPassReverse / http://localhost:/ ProxyPreserveHost on I am not using mod_rewrite at all Incidentally xwiki application is in $TOMCAT_HOME/webapps/xwiki - it is not the ROOT app. I have also *not* modified web.xml to do anything non-standard incorrect wiki e.g. changed doc in wiki#1, but server component of link url points to wiki#2 Is either of these the main wiki? Does it always happen in the same way, like wiki#1 is the main wiki, and wiki#2 is one of the virtual wikis? It seems to consistently map doc change events in the main wikis to one of the subwikis in the URL of the link to the modified document.. N.B. This is despite actually naming the correct (main) Wiki correctly higher up in the notification email (i.e. next to the world icon) The links to changed documents in the other subwiki are correct. The links to changed documents in the subwiki to which notifications from the main wiki are being incorrectly ascribed are correct. We are using both global and local users in the subwikis. Do these problems happen for both kinds of users? Since the links to changed documents,which are being incorrectly ascribed to the alias of a subwiki, are in the main wiki, there are no local users affected (as users in the main wiki are global) Using tomcat 7 with mysql (both setup as in install guide) Everything else works fine. Has anyone any idea what is going wrong and how I might correct? One possibility is that the main wiki doesn't have a proper wiki descriptor, thus its own base URL is not explicitly set. When this happens, the URL factory gets initialized with values from the first URL that is accessed when the application starts, and so it could wrongly set an URL used for a virtual wiki as the base for the main wiki. The fields in the WikiManager entry for the main wiki (at http://server.domain.co/bin/view/XWiki/XWikiServerXwiki) all seem correct What should I be looking for and correcting? Thanks, Tim -- 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
[xwiki-users] Cannot Configure WYSIWYG Editor in standalone installation of XE3.1
Hi, folks. I’m experimenting with a standalone installation of XE3.1 and trying to increase the control that users would have over the appearance of the pages they add. I’d love to do this primarily with the WYSIWYG editor, since that would be the most user-friendly avenue in my opinion. So I tried to add the “font” and “style” plugins and then make the associated changes in the tool bar, but nothing I do seems to have any effect on the WYSIWYG editor. When I leave the WYSIWYG Editor administration page and then return, my changes are still there… they just don’t appear in the editor itself. I’ve reviewed the WYSIWYG Editor Configuration page in the documentation, but nothing there has helped me. I’ve even taken a look in the templates/macros.vm file, but could not locate any of the lines the WYSIWYG Editor Configuration page said I should see. Can someone help me out? Thanks. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Cannot Configure WYSIWYG Editor in standalone installation of XE3.1
Hi, On 07/26/2011 07:49 PM, Campbell, John wrote: Hi, folks. I’m experimenting with a standalone installation of XE3.1 and trying to increase the control that users would have over the appearance of the pages they add. I’d love to do this primarily with the WYSIWYG editor, since that would be the most user-friendly avenue in my opinion. So I tried to add the “font” and “style” plugins and then make the associated changes in the tool bar, but nothing I do seems to have any effect on the WYSIWYG editor. When I leave the WYSIWYG Editor administration page and then return, my changes are still there… they just don’t appear in the editor itself. I’ve reviewed the WYSIWYG Editor Configuration page in the documentation, but nothing there has helped me. I’ve even taken a look in the templates/macros.vm file, but could not locate any of the lines the WYSIWYG Editor Configuration page said I should see. Can someone help me out? For enabling the font name and the font size you have to add font to the list of plugins and add fontname and fontsize to the tool bar. For enabling custom styles you have to add style to the list of plugins, stylename to the tool bar and then configure the styles at the bottom of the configuration section. XWiki Enterprise doesn't provide any default styles so you have to add some. The style name is a CSS class name from your skin and the style label is the text that appears in the styles list box on the WYSIWYG editor tool bar. Don't forget to save after updating the configuration. Hope this helps, Marius Thanks. ___ 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] Cannot Configure WYSIWYG Editor in standalone installation of XE3.1
Hi, On 07/26/2011 07:49 PM, Campbell, John wrote: Hi, folks. I’m experimenting with a standalone installation of XE3.1 and trying to increase the control that users would have over the appearance of the pages they add. I’d love to do this primarily with the WYSIWYG editor, since that would be the most user-friendly avenue in my opinion. So I tried to add the “font” and “style” plugins and then make the associated changes in the tool bar, but nothing I do seems to have any effect on the WYSIWYG editor. When I leave the WYSIWYG Editor administration page and then return, my changes are still there… they just don’t appear in the editor itself. I’ve reviewed the WYSIWYG Editor Configuration page in the documentation, but nothing there has helped me. I’ve even taken a look in the templates/macros.vm file, but could not locate any of the lines the WYSIWYG Editor Configuration page said I should see. Can someone help me out? For enabling the font name and the font size you have to add font to the list of plugins and add fontname and fontsize to the tool bar. For enabling custom styles you have to add style to the list of plugins, stylename to the tool bar and then configure the styles at the bottom of the configuration section. XWiki Enterprise doesn't provide any default styles so you have to add some. The style name is a CSS class name from your skin and the style label is the text that appears in the styles list box on the WYSIWYG editor tool bar. Don't forget to save after updating the configuration. Hope this helps, Marius --- Thanks, Marius. I was able to get the changes to appear in the editor... that's fantastic. You mentioned that I would have to add some styles - what is the most efficient process to do that? Can it be done from the global administration interface? I really appreciate the help. John ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Problems migration from XWiki 1.3 to 3.1
Hi We are trying to migrate XWiki 1.3 to 3.1. Getting the following error message: Near the start of the stack trace: paste begin com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize main XWiki context Wrapped Exception: Error number 3201 in 3: Exception while saving document xwiki:XWiki.XWikiRights Wrapped Exception: Failed to commit or rollback transaction. Root cause [] com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:424) com.xpn.xwiki.XWiki.getXWiki(XWiki.java:493) paste end And getting the following at the end of the same stack trace: paste begin Caused by: java.sql.BatchUpdateException: Column 'XWP_NAME' cannot be null at com.mysql.jdbc.PreparedStatement.executeBatchSerially(PreparedStatement.java:1666) at com.mysql.jdbc.PreparedStatement.executeBatch(PreparedStatement.java:1082) paste end Is there some way of identifying what the core issue is? Can this be corrected, or are we stuck not being able to migrate our XWiki? David Weiler-Thiessen Nestlé Purina PetCare phone: 306-933-0232 cell: 306-291-9770 This e-mail, its electronic document attachments, and the contents of its website linkages may contain confidential information. This information is intended solely for use by the individual or entity to whom it is addressed. If you have received this information in error, please notify the sender immediately and promptly destroy the material and any accompanying attachments from your system. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Watchlist App Email Notification generates incorrect document links in XE3.1 farm
On 07/26/2011 09:49 AM, Tim Jones wrote: Sergiu, Thanks very much for your response. I have answered your questions inline below On 24 Jul 2011, at 23:32, Sergiu Dumitriu wrote: On 07/22/2011 08:56 AM, Tim Jones wrote: When using the Watchlist Application in XWiki Enterprise 3.1 with Enterprise Manager, the changed document links in the notification emails have incorrect URLs There are 2 problems: duplicated /bin/ element in link URL e.g. http://subwiki.server.com/bin/bin/view/SpaceName/PageName This might be caused by an incorrect configuration in the httpd frontend. I guess you're trying to shorten URLs by rewriting URLs, right? Actually no, in Apache I am merely using ProxyPass and ProxyPassReverse to map / to the correct server and port : ProxyPass / http://localhost:/ ProxyPassReverse / http://localhost:/ ProxyPreserveHost on I am not using mod_rewrite at all Incidentally xwiki application is in $TOMCAT_HOME/webapps/xwiki - it is not the ROOT app. I have also *not* modified web.xml to do anything non-standard incorrect wiki e.g. changed doc in wiki#1, but server component of link url points to wiki#2 Is either of these the main wiki? Does it always happen in the same way, like wiki#1 is the main wiki, and wiki#2 is one of the virtual wikis? It seems to consistently map doc change events in the main wikis to one of the subwikis in the URL of the link to the modified document.. N.B. This is despite actually naming the correct (main) Wiki correctly higher up in the notification email (i.e. next to the world icon) The links to changed documents in the other subwiki are correct. The links to changed documents in the subwiki to which notifications from the main wiki are being incorrectly ascribed are correct. We are using both global and local users in the subwikis. Do these problems happen for both kinds of users? Since the links to changed documents,which are being incorrectly ascribed to the alias of a subwiki, are in the main wiki, there are no local users affected (as users in the main wiki are global) Using tomcat 7 with mysql (both setup as in install guide) Everything else works fine. Has anyone any idea what is going wrong and how I might correct? One possibility is that the main wiki doesn't have a proper wiki descriptor, thus its own base URL is not explicitly set. When this happens, the URL factory gets initialized with values from the first URL that is accessed when the application starts, and so it could wrongly set an URL used for a virtual wiki as the base for the main wiki. The fields in the WikiManager entry for the main wiki (at http://server.domain.co/bin/view/XWiki/XWikiServerXwiki) all seem correct What should I be looking for and correcting? Edit webapps/xwiki/WEB-INF/xwiki.cfg and search for the section about xwiki.home; uncomment and set a proper value for it. Restart Tomcat, and see if it works. Thanks, Tim -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users