Re: [xwiki-users] Restore skin
Hi, As described in http://code.xwiki.org/xwiki/bin/view/Skins/ToucanSkin To change the them go to the Administration page, select the Skin section and in the Default Stylesheet field replace the value style.css I replaced the value style.css with a typo-error and saved it. The skin changed to a style where I can not access the Skin Section anymore (or any section other than the top parameters) Gerritjan On 22 jun 2008, at 22:13, Vincent Massol wrote: On Jun 22, 2008, at 9:55 PM, Gerritjan Koekkoek wrote: Hi, This does not work! It did work when I tried to change the skin But this time I changed the parameter of the skin where you can change the color-scheme I don't understand. Can you explain exactly what you changed and what parameter? Thanks -Vincent On 22 jun 2008, at 21:47, Vincent Massol wrote: Hi, You can always force a skin by passing the skin parameter in the URL and you can use default to mean the default skin. For ex: http://localhost:8080/xwiki/bin/view/Main/?skin=default Hope it helps, -Vincent On Jun 22, 2008, at 8:59 PM, Gerritjan Koekkoek wrote: I modified one of the skin preferences (Toucan) to change the color scheme. Made a typo Now the skin has changed to something that does not navigate to the same entry to correct my typo? What do you suggest 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
[xwiki-users] International site
On the xwiki.org there is limited information about multi-language. I understand that the pages, the user content, can be in many languages But how to translate the user interface, the buttons etc... thx Gerritjan ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] International site
Thx very much And do you know where to put them in order to get them operational How is the process, download the ApplicationResources*.properties? Gerritjan Koekkoek On 25 jun 2008, at 22:20, Artem Melentyev wrote: Gerritjan Koekkoek wrote: On the xwiki.org there is limited information about multi-language. I understand that the pages, the user content, can be in many languages But how to translate the user interface, the buttons etc... They are already translated for some languages. Look at http://svn.xwiki.org/svnroot/xwiki/xwiki-platform/core/trunk/xwiki-core/src/main/resources/ ApplicationResources*.properties files You can add other languages or modify existed. -- Artem Melentyev ___ 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] Registration
We are working on a xwiki with user registration. What if a user forgets a password, how can he/she get a new or temporary password to get back in the system? Gerritjan ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] multi platform
Hi, Could somebody explain to me what risk we have when Xwiki application developped on windows/mySql/jetty would be deployed on linux/postgresql/apache/tomcat? I have the naieve assumption that if the xwiki out-of-the-box application runs on this Linux environment it can run any xwiki application? Gerritjan ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Platform dependancies
Hi, Could somebody explain to me what risk we have when Xwiki application developped on windows/mySql/jetty would be deployed on linux/postgresql/apache/tomcat? I have the naieve assumption that if the xwiki out-of-the-box application runs on this Linux environment it can run any xwiki application? Gerritjan ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] ApplicationResources file
Hi, I need a copy of the ApplicationResources.properties file used in Xwiki 1.6 I need to create several English languages; Canada, USA, Australian, etcetera... How can I get it? thx Gerritjan ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] registration mail lost
Hi, If a visitor reports that, after registration, he/she never got the e- mail with the registration-confirmation link? (probably due to spam filters of his/her organisation) What can/should a administrator do to enable the account anyway? Is there a object setting that can be set to confirmed? (or anything alike) Gerritjan ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Polish not displaying correctly
Hi, We are busy building a multilanguage xWiki. My polish friends are complaining about the fact that the words are not displaying correctly Is it due to ApplicationResources_pl.properties supplied in xWiki 1.6.1? Or is a setting ? Gerritjan ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Polish not displaying correctly
Hi Sergiu I've solved my problem by changing the web.xml and the xwiki.cfg setting from ISO... to UTF-8 Maybe it is a good idea to change the default distribution setting of xWiki to UTF-8, what do you think? Gerritjan On 7 nov 2008, at 22:19, Sergiu Dumitriu wrote: Gerritjan Koekkoek wrote: Hi, We are busy building a multilanguage xWiki. My polish friends are complaining about the fact that the words are not displaying correctly Is it due to ApplicationResources_pl.properties supplied in xWiki 1.6.1? Or is a setting ? Gerritjan ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users You should specify what you mean by words not displaying correctly. One possible cause may be the presence of non-ascii characters in the .properties file. Resource files must not contain such characters, unicode escapes need to be used instead. You should run native2ascii ApplicationResources_pl.properties to obtain the escaped version. Please give more details if this does not solve your problem. -- 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] registration mail lost
Hi Sergiu Thank you, this helped solving my issue. Gerritjan On 7 nov 2008, at 22:22, Sergiu Dumitriu wrote: Gerritjan Koekkoek wrote: Hi, If a visitor reports that, after registration, he/she never got the e- mail with the registration-confirmation link? (probably due to spam filters of his/her organisation) What can/should a administrator do to enable the account anyway? Is there a object setting that can be set to confirmed? (or anything alike) Yes. Edit the user's page with the object editor, and set the active property to 1. Gerritjan -- 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] Linking to Google (Analytics and search)
All, Where and how would you suggest to link a xWiki to google analytics? Besides that, How can I control what content is indexed by external search engines (like Google, Yahoo) I have specific content that I would like to exclude from indexes, although it is on public accessible pages. In our system it is accessible by clcking a disclosure (because it contains medical advise) Gerritjan ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] display user profile(s)
Hi, Does anybody have experience on how to show in a public user page - a list of users of a certain group with links to a page that will show some details per user: (like Name(s), phone, e-mail and photo) What is the best way to layout such a card, create a stylesheet with div's? Gerritjan ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Counting deleted documents
Hi, #set($countQuery =select count(doc) from XWikiDocument as doc where doc.creator='$context.user') will give me the number of documents created by a user. The question; can I also count the number of documents ever created by the user (including deleted documents) I would like to use the resulting number to create a unique document name somenying like #set($part1 = $username) #set($part2 = _doc) #set($part3 = $docCount) #set($aboutToCreate = $part1+$part2+$part3) where doccount would be doccount of every created document by user (including deleted) + 1 Gerritjan ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] danish, norsk and swedisch languages
Hi, Are the languagefiles for configuring xwiki in the subject languages? Please help... Gerritjan Koekkoek ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] danish, norsk and swedisch languages
We have created a dutch (nl) properties file, can you import these into the tool? Gerritjan On 29 jan 2009, at 23:36, Ludovic Dubost wrote: Unfortunately not.. If there are any volunteers to help with the translations, we can setup a space to translate to that language on our translation tool http://l10n.xwiki.org/xwiki/bin/view/XE/ We are also looking for volunteers for other languages. Ludovic Gerritjan Koekkoek a écrit : Hi, Are the languagefiles for configuring xwiki in the subject languages? Please help... Gerritjan Koekkoek ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Ludovic Dubost Blog: http://blog.ludovic.org/ XWiki: http://www.xwiki.com Skype: ldubost GTalk: ldubost ___ 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] Migrating articles into xwiki
Hi. We have a repository of articles (our Old CMS) we would like to import into xwiki automatically. These Articles are in a propietary XML format, one XML file per article. What would be the best approach? We have ability to restructure/transform xml into another xml by means of xslt. Which approaches could we research? Gerritjan ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Migrating articles into xwiki
Hi, I understand the concept, but what do I do with relations; Creator, Translation, translator. I also have some markup-tags like Title, Quote, Bulleted list, Information, Contact-information How would you develop a xml-schema for this; could I look at the database structure and assume required, optional constraints Are there any enumerations used in xwiki (list of possible values) for a field What is the best way to find-out about the standard POSSIBLE attributes of a xwiki document Gerritjan On 14 feb 2009, at 18:55, Guillaume Lerouge wrote: Hi, XWiki Pages are stored as XML files. You can look at the XML representation of a standard XWiki pages (export as XAR, rename to ZIP, unzip, look inside the folder). Then try to find which XWL fields from your original XML format could be converted into XWiki document fields (especially web, name, title, creation date and content). Once you've decided which mapping to use, write and launch your XSLT script. Then you'll have a bunch of XWiki pages as XML. Look at the output of a XWiki XAR export to see what the description file looks like and write one with the name of your pages inside. Put everything into a folder, zip it, rename it to .xar, try importing it. If the import fails, try splitting it into a number of smaller XARs. Hope this helps, Guillaume On Sat, Feb 14, 2009 at 12:10 PM, Gerritjan Koekkoek gerritjankoekk...@gmail.com wrote: Hi. We have a repository of articles (our Old CMS) we would like to import into xwiki automatically. These Articles are in a propietary XML format, one XML file per article. What would be the best approach? We have ability to restructure/transform xml into another xml by means of xslt. Which approaches could we research? Gerritjan ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Guillaume Lerouge Product Manager - XWiki Skype ID : wikibc http://guillaumelerouge.com/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Language effect
I have a problem with a multi-language xwiki. I've added a new space and some documents in that space. .WebHome is the startpage in that space A few documents have graphical attachments and one has a pdf attachment As a guest of this website I do not see the full text, and sometimes the geaphics are lost. Als the PDF is lost. When I edit the documents they are still there, saving does not resolve the problem I made a XAR export of the xwiki, and I noticed something remarkable (taken from package.xml) file defaultAction=0 language=CdLSWorld. Index of Questions/file file defaultAction=0 language=CdLSWorld.BookingForm/file file defaultAction=0 language=enCdLSWorld.BookingForm/file file defaultAction=0 language=CdLSWorld.ConferenceVenue/file file defaultAction=0 language=enCdLSWorld.ConferenceVenue/file file defaultAction=0 language=CdLSWorld.ContactDetails/file file defaultAction=0 language=enCdLSWorld.ContactDetails/file file defaultAction=0 language=CdLSWorld.GettingThere/file file defaultAction=0 language=CdLSWorld.GrowthCharts/file file defaultAction=0 language=CdLSWorld.MedicalProfessional/file file defaultAction=0 language=enCdLSWorld.MedicalProfessional/ file file defaultAction=0 language=CdLSWorld.Professional/file file defaultAction=0 language=enCdLSWorld.Professional/file file defaultAction=0 language=CdLSWorld.ScientificFederation/ file file defaultAction=0 language=enCdLSWorld.ScientificFederation/ file file defaultAction=0 language=CdLSWorld.TheFamilyConference/file file defaultAction=0 language=enCdLSWorld.TheFamilyConference/ file file defaultAction=0 language=CdLSWorld.WebHome/file file defaultAction=0 language=enCdLSWorld.WebHome/file file defaultAction=0 language=CdLSWorld.What is CdLS/file file defaultAction=0 language=CdLSWorld.World conference/file file defaultAction=0 language=enCdLSWorld.World conference/file file defaultAction=0 language=CdLSWorld.hotel/file file defaultAction=0 language=enCdLSWorld.hotel/file Example: file defaultAction=0 language=CdLSWorld.BookingForm/file file defaultAction=0 language=enCdLSWorld.BookingForm/file The BookingForm document contains my PDF, but I see two instances of them in the XAR (while expecting only one) One has the language= and the other language=en My xwiki has en as default language, but in the XAR only my new space has documents with en The other space(s) are like; file defaultAction=0 language=Main.AllDocs/file file defaultAction=0 language=Main.BlogRss/file file defaultAction=0 language=Main.Dashboard/file file defaultAction=0 language=Main.EventCalendar/file file defaultAction=0 language=Main.LuceneSearch/file file defaultAction=0 language=Main.RecentMembers/file or file defaultAction=0 language=CdlsatdPublic.GerritjanKoekkoek_FAQ12/file file defaultAction=0 language=CdlsatdPublic.GerritjanKoekkoek_FAQ13/file file defaultAction=0 language=CdlsatdPublic.GerritjanKoekkoek_FAQ14/file file defaultAction=0 language=CdlsatdPublic.GerritjanKoekkoek_FAQ15/file file defaultAction=0 language=CdlsatdPublic.GerritjanKoekkoek_FAQ16/file file defaultAction=0 language=CdlsatdPublic.GerritjanKoekkoek_FAQ17/file file defaultAction=0 language=CdlsatdPublic.GerritjanKoekkoek_FAQ178/file file defaultAction=0 language=CdlsatdPublic.GerritjanKoekkoek_FAQ179/file The last type of files have many translations inside, but not as seperate documents What is the reason of this? Could it explain why 'view' does not display the same as 'edit' I was heavily switsching between WYSIWIG and WIKI editor and switching from xwiki1 and xwiki2 syntax? Could this have lead to this problem How do I remove the en files or should I not do that? Gerritajn ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Including a specific photo from Flickr
Hi, We would like to include photo's from flickr into the xwiki What would be the best approach? The flickr macro's seem a good start, but would like a little more visual control For us it is important to be able to also get description and owner of the photo into the display Gerritjan ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Rights in XWIKI space
Hi, Is there a explanation on how to set the rights on the xwiki space in a site that has registration enabled. If I disable view rights for non registered users on xwiki space the site skin is no longer used If I enable view rights on xwiki space, every non-registered visitor can see PROFILE PAGES of registered users (they are in the XWIKI space) How should I deal with this, probably a mistake in our software or a mistake in Xwiki? Gerritjan ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Watchlist feature problem
Hi, Since changing the security setting of Xwiki-space i'm a bit in trouble... The goal was to secure the xwiki.{username}, since we need to protect the privacy of our users. So I revoked the permision of Guests to xwiki space. But since this I had problems, I can solve them one.by.one by granting read access of a specific page to guest or group Now the RSS FEED and notification of the watchlist does not work anymore, I do not get notifications of changed pages. How can I set a watchlist on a space? If somebody adds a page or modifies a page I would like to get notified Gerritjan ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Original translation
HI, I have a page that should be readable for multiple translations. Currently it has a translation 'en' (for english) which is the default for the xwiki. The problem is that it also claims that the original version is '.' (this page is empty) 1) How can such a 'original' version have been created? (to prevent it) 2) How can I remove this version, so the 'en' version is seen as the original 3) Or is the '.' original 'good' behaviour? Gerritjan Koekkoek ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Original translation
Hi, THx for the help. For me the option to remove the whole document worked best I followed following procedure; - Edit in the WIKI editor... - Copy Content to a text-editor (for each translation, already in the system - Action, Delete Document and really delete... - Go to page where a link to deleted document sits. - Create document (default language is now correct) - Copy Content from text editor into WIKI editor and Save (For each translation) On 2 mei 2009, at 18:17, Sergiu Dumitriu wrote: Gerritjan Koekkoek wrote: HI, I have a page that should be readable for multiple translations. Currently it has a translation 'en' (for english) which is the default for the xwiki. The problem is that it also claims that the original version is '.' (this page is empty) 1) How can such a 'original' version have been created? (to prevent it) No idea. I've never seen this so far. 2) How can I remove this version, so the 'en' version is seen as the original In older versions of XWiki (pre-1.0) there was an input for specifying the default language. Now, you can only access that property if you know how. Try visiting this URL: /xwiki/bin/save/Your/Document?default_language=en (replace Your/Document with the real document name). However, this may create a ghost, since it renames the language of the default document, while also leaving the existing en translation in place. So you have 3 choices: - do this rename and live with the ghost - do nothing and live with the fake default - copy data from the en translatio to the default ., then delete the en translation and rename the default_language - remove the whole document and recreate it from scratch You should make a backup of your data first, if it is important. 3) Or is the '.' original 'good' behaviour? No, that's not good at all. -- 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] Google Analytics
My Footer has #if($context.getMode()==0) # End I tried to paste the google script after the #end... It does not show in my browser when I view the HTML code I tried to paste it before the #End code I get nasty error code after saving (so I quickly removed it) Any suggestions Gerritjan On 29 apr 2009, at 00:10, Ludovic Dubost wrote: Sorry you don't even need to override anaytics.vm, you can copy the google analytics code snippet into header.vm or footer.vm which is already present as a field in skins Ludovic Ludovic Dubost a écrit : You need to create a skin in your wiki and override the analytics.vm template. Check out the skin guide on xwiki.org Ludovic Vitantonio Messa a écrit : And what about a wiki-farm? My problem is that I have to use this for one wiki in our wiki- farm: I guess if I put that code in the templates/analytics.vm it will index all the wikis in the farm. Is it possible to embed the code in template/analytics.vm directly on the page of the wiki I want to address? We need to count visits only on the main page of the wiki. Vito Sergiu Dumitriu wrote: Vitantonio Messa wrote: Hi all, how can I embed the Google Analytics code in XWiki? Thanks, Check out templates/analytics.vm All you need to do is uncomment the code (remove #* and *#) and put the right _uacct value. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Ludovic Dubost Blog: http://blog.ludovic.org/ XWiki: http://www.xwiki.com Skype: ldubost GTalk: ldubost ___ 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] Tomcat-Xwiki
My Configuration MAC OS X 10.5.7 Tomcat 5.5 MySQL XWIKI 1.8.3 I'm trying to import a XAR file of approx 6.2 MB I had a heap-size error, but changed the tomcat startupscript as follows #!/bin/sh export CATALINA_HOME=/usr/local/apache-tomcat-5.5.27 export JAVA_HOME=/usr export JAVA_OPTS=-Xmx512m $CATALINA_HOME/bin/startup.sh Now I get following error? A problem occurred while trying to process your request. Please contact the webmaster if this happens again. Detailed information: Error number 3232 in 3: Exception while saving attachment 20090516.xar of document XWiki.Import Wrapped Exception: Could not execute JDBC batch update com.xpn.xwiki.XWikiException: Error number 3232 in 3: Exception while saving attachment 20090516.xar of document XWiki.Import Wrapped Exception: Could not execute JDBC batch update Any suggestions? Gerritjan ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Velocity templates for skin
Hi, First: could you validate my understanding. When a document url is requested XWIKI will get the document from the database and start applying velocity-templates. It will look, according to skin-setting, down a template path and if a programmer did not put a modified template on the path it will end in the templates directory (xwiki/templates) A programmer can put a template on the path by putting a rightly-named *.vm file in a directory in skins directory (xwiki/skins/toucan or xwiki/skins/#) (where # is the name of the skin) A programmer can also put a template as a object in a xwiki-page of class XWiki.XWikiSkins You create a TextArea with the same name as the original template, without the vm extension The mother(s) of all templates are view.vm, edit.vm, preview.vm and save.vm? xwiki will always only apply the first found template of a certain name, meaning if you put some script in header object in the xwiki page of your skin it will ignore the header.vm files on the file system? This would imply that you best first copy the orginal script into the text-area field and then make your changes? Would this practise not lead to missing out on features of newer xwiki versions, assuming that the template-scripts are also improved? Or is the programmer forced to, with each upgrade, examine his/her scripts against the scripts in the templates directory? What is best practise here? Second; If you put also graphical elements, CSS scripts in the XWiki.XWikiSkins page of your skin how does xwiki know if it is a velocity-script, a css or a graphical element? Gerritjan ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Korean and Japanese language
Hi, Is XWIKI in general and sites hosted at XWIKI.com specifically able to del with Korean and Japanese as language? If so what needs to be done other then andding the languagecode to my preferences? Below is some tip I found on the WEB korean uses the ko character set. kr is the ISO 3166 Country Code for Korea. Don't confuse the two. Although Google Korea seems to get away with UTF-8 encoding, most of the sites I've seen use the euc-kr charset. The safe way forward looks like this: meta http-equiv=content-language content=ko meta http-equiv=content-type content=text/html; charset=euc-kr Gerritjan Koekkoek ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] ApplicationResources_ko.properties
Hi, I tried to create a Korean language file. In Textmate it looks OK saved with UTF-8 encoding on Mac OS X 10.6 , I've put the file into WEBINF/classes. In Xwiki the prompts do not look korean but like a strange mix of deck of cards with german letters with umlauts etc.. Is there a trick i've missed. The same procedure worked fine with western languages Gerritjan ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Registration program flow
Hi, I would like to understand which places are best suited to customize the registration workflow. We would like to see the following; 1) Visitor clicks on register 2) Next to xwiki default we would like the visitor to fill in what country, what language 3) When submit we would like the system to send confirmationlink with translated text 4a) when confirmation link is submitted by user a welcome message in translated text 5) We would like to see newly registered users in a dynamic table where we can accept users manually by clicking line by line 6) after accepting the user should receive information about Gerritjan ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Add imported users to XWikiAllGroup
Hi, I notice that when you import a XAR file with 'users' these users are not automatically added to XWikiAllGroup? Is this by design, and if so how do you restore them as members of this group (have 100 users) Is there a script or macro to add users to a group? Gerritjan ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] default xwiki classes
Hi, Is there a reference document describing the default classes of xwiki I'm specifically interested in XWiki.XWikiUsers. In the version we have developped in (1.6) i see a property (or class attribute) Country In the new version 2.1.1 I do not see that property (or attribute) Is this because our developer has customized the class in 1.6 or does the class editor not show all the properties of the class in 2.1.1 ? Gerritjan ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Add imported users to XWikiAllGroup
Thx, but it looks the code adds the users to all groups, is that correct understanding. I our case the loop should be constructed on all XWiki.usernames documents (except administrator) that have a userclass object and are activated; how can i do that? Take a look at http://code.xwiki.org/xwiki/bin/view/Snippets/Create200DummyUsersSnippet Arnaud Hi, I notice that when you import a XAR file with 'users' these users are not automatically added to XWikiAllGroup? Is this by design, and if so how do you restore them as members of this group (have 100 users) Is there a script or macro to add users to a group? 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
Re: [xwiki-users] Add imported users to XWikiAllGroup
thx Op 30 dec 2009, om 15:06 heeft Arnaud bourree het volgende geschreven: 2009/12/30 Gerritjan Koekkoek gerritjankoekk...@gmail.com: Thx, but it looks the code adds the users to all groups, is that correct understanding. No it add users to group XWiki.XWikiAllGroup which is not all groups I our case the loop should be constructed on all XWiki.usernames documents (except administrator) that have a userclass object and are activated; how can i do that? def allGroup = xwiki.getDocument('XWiki.XWikiAllGroup') for(udoc in xwiki.search(select doc from XWikiDocument doc, BaseObject obj where obj.name = doc.fullName and obj.className = 'XWiki.XWikiUsers' and doc.fullName 'XWiki.Admin' )) { gObj = allGroup.newObject('XWiki.XWikiGroups') gObj.set('member',udoc.fullName) } allGroup.save() Take a look at http://code.xwiki.org/xwiki/bin/view/Snippets/Create200DummyUsersSnippet Arnaud Hi, I notice that when you import a XAR file with 'users' these users are not automatically added to XWikiAllGroup? Is this by design, and if so how do you restore them as members of this group (have 100 users) Is there a script or macro to add users to a group? 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 ___ 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] Registration feature fails
I've migrated a application from xwiki 1.7 to xwiki 2.1.1 The process i've executed is started with a clean distribution of xwiki2.0 If configured the wiki to multi language and that registration is required Use of email verificatiion to Yes Check Active fields for authentication to Yes I've manually copied the scripts of welcome and confirmation to the Validation e-mail content and Confirmation e-mail content After that i've exported the wiki and importing the XAR; making sure I did not overwrite any document in XWiki space. Testing the registration gives the following result (we use gmail as SMTP service) User registers and receives the request for validation; result OK User clicks on the link to activate the account The website shows up OK but the validation fails with message; There was a problem validationg your account, please contact a administrator The link in the email is the following; http://cdlsworld.devxwiki.com/xwiki/bin/view/XWiki/AccountValidation?validkey=77Qvbyu69MSjI2Rgxwikiname=AnneKoekkoek Since i'm hosting the site at XWIKI.com i have no access to the file system to check if the key is as expected from xwiki.cfg file How to solve; help greatly appreciated Gerritjan ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Registration feature fails
Question and Answer; Op 1 jan 2010, om 00:45 heeft Sergiu Dumitriu het volgende geschreven: On 12/31/2009 01:58 PM, Sergiu Dumitriu wrote: On 12/31/2009 01:00 PM, Gerritjan Koekkoek wrote: I've migrated a application from xwiki 1.7 to xwiki 2.1.1 The process i've executed is started with a clean distribution of xwiki2.0 If configured the wiki to multi language and that registration is required Use of email verificatiion to Yes Check Active fields for authentication to Yes I've manually copied the scripts of welcome and confirmation to the Validation e-mail content and Confirmation e-mail content After that i've exported the wiki and importing the XAR; making sure I did not overwrite any document in XWiki space. Testing the registration gives the following result (we use gmail as SMTP service) User registers and receives the request for validation; result OK User clicks on the link to activate the account The website shows up OK but the validation fails with message; There was a problem validationg your account, please contact a administrator The link in the email is the following; http://cdlsworld.devxwiki.com/xwiki/bin/view/XWiki/AccountValidation?validkey=77Qvbyu69MSjI2Rgxwikiname=AnneKoekkoek Since i'm hosting the site at XWIKI.com i have no access to the file system to check if the key is as expected from xwiki.cfg file How to solve; help greatly appreciated Just tried to register a new account, and noticed that the activation key is stored as a hash in the database, although it is expected to be plain text in the code. This means that the XWikiUsers class must be changed so that the Validation Key property has PlainText storage type. This means that all users who tried to register while this hash was active will have to re-register with a different account. If this implies I have to ask all registered users to register again, this is not an option! Or do you mean only the new users on the new 2.1.1 system? (not a problem at all) I've imported all the users of the 1.7 instance to the new 2.1.1 instance since my question as submitted This also explains why AnneKoekkoek was 'active'; this is because i overwrite with the import the not activated account I've tested some of these imported users, did not give a problem to login or wrk with the system 2.1.1 Changing the xwiki class xwikiusers does sound like a tricky exercise; I submitted a question about this class two, three days ago... I wonder what will happen if you export users that are created on a certain class definition of xwikiusers and import them into a xwiki with a new defined or changed class defenition of xwikiusers (by example the type of the hashkey?) This should be fixed on our side too, so that the validation code also works with hashed keys. See http://jira.xwiki.org/jira/browse/XWIKI-4712 That particular user (AnneKoekkoek) seems to be activated already (try logging in), Explained above... but the activation key in the object is different than the one from the mail. This means that somewhere a different key was generated. Explained above; I think you see the key of the 1.7 instance; and in the mail the key was generated by the 2.1.1. instance What is the best way -Change the class definition of key to plaintext (if this implies asking all existing users to re-create a new account, this is not a option) - Change the code of the validation script; can I do that my self? I need some instruction on how? -- 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] Lucene serach problem
I'm migrating a xwiki from 1.7 to 2.1.1 I've started with a fresh system and have imported the Lucene search pages from the XAR export of 1.7 The statement: #if($lucene) #set($searchresults = $lucene.getSearchResults(${query} $!{reqspace}, $wikinames, $languages, $xwiki)) ... #else #error(Lucene plugin not found. Make sure it's defined in your xwiki.cfg file.) #end seems to deliver a empty $searchresults while the parameters are exactly the same as on the 1.7 instance with exception of the last ${query} = reflux (my search text) $!reqspace = AND web:CdlsatdPublic $wikinames = xwiki $languages = default, en, de $xwiki = com.xpn.xwiki.api.xw...@15dd813 The conclusion the $searchresults is empty is coming from the fact that the code does not enter the foreach #foreach($objFrmLst in $results) #end the if(lucene) test seems to exclude that lucene is not working? Help on this is greatly appreciated ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Lucene serach problem
Op 2 jan 2010, om 21:13 heeft Thomas Mortagne het volgende geschreven: On Sat, Jan 2, 2010 at 15:49, Gerritjan Koekkoek gerritjankoekk...@gmail.com wrote: I'm migrating a xwiki from 1.7 to 2.1.1 I've started with a fresh system and have imported the Lucene search pages from the XAR export of 1.7 Why don't you use 2.1.1 Lucene search page ? It changed a lot since 1.7 and is way better. If you have some custom code in it you should reapply it from 2.1.1 version page or even propose a patch if it's a generic enough improvement modification. How can I do this? Is there a Lucene page in 2.1.1? And where is a good how to ...? Most important, do you expect it to solve my problem? The statement: #if($lucene) #set($searchresults = $lucene.getSearchResults(${query} $!{reqspace}, $wikinames, $languages, $xwiki)) ... #else #error(Lucene plugin not found. Make sure it's defined in your xwiki.cfg file.) #end seems to deliver a empty $searchresults while the parameters are exactly the same as on the 1.7 instance with exception of the last ${query} = reflux (my search text) $!reqspace = AND web:CdlsatdPublic $wikinames = xwiki $languages = default, en, de $xwiki = com.xpn.xwiki.api.xw...@15dd813 The conclusion the $searchresults is empty is coming from the fact that the code does not enter the foreach #foreach($objFrmLst in $results) #end the if(lucene) test seems to exclude that lucene is not working? Help on this is greatly appreciated ___ 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
Re: [xwiki-users] Lucene serach problem
Op 2 jan 2010, om 21:55 heeft Thomas Mortagne het volgende geschreven: On Sat, Jan 2, 2010 at 21:42, Gerritjan Koekkoek gerritjankoekk...@gmail.com wrote: Op 2 jan 2010, om 21:13 heeft Thomas Mortagne het volgende geschreven: On Sat, Jan 2, 2010 at 15:49, Gerritjan Koekkoek gerritjankoekk...@gmail.com wrote: I'm migrating a xwiki from 1.7 to 2.1.1 I've started with a fresh system and have imported the Lucene search pages from the XAR export of 1.7 Why don't you use 2.1.1 Lucene search page ? It changed a lot since 1.7 and is way better. If you have some custom code in it you should reapply it from 2.1.1 version page or even propose a patch if it's a generic enough improvement modification. How can I do this? Is there a Lucene page in 2.1.1? I don't understand, aren't you upgrading from 1.7 to 2.1.1 ? Lucene search page is part of the default XE xar (since way before 1.7) you are supposed to import when you upgrade. Exactly what I did; use import to get the search script calling lucene from 1.7 into 2.1.1 I thought you meant that the code below would not work with Lucene 2.1.1 because of the calling parameters I did not find a Lucene page in the xwiki.space where should i find it; we only have a script and results page in the space we are searching? And where is a good how to ...? Did you looked at http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HUpgradinganXWikiInstallation ? Yes, but found it of little use; most of it is about the system, not about the objects like searchpages, users, preferences The system is upgraded by XWIKI.COM; since we host our application there! So all database, WAR etc is luckily done for us... Most important, do you expect it to solve my problem? I did not looked closely at your issue, what i know is that Lucene is working well in XE 2.1.1 The statement: #if($lucene) #set($searchresults = $lucene.getSearchResults(${query} $!{reqspace}, $wikinames, $languages, $xwiki)) ... #else #error(Lucene plugin not found. Make sure it's defined in your xwiki.cfg file.) #end seems to deliver a empty $searchresults while the parameters are exactly the same as on the 1.7 instance with exception of the last ${query} = reflux (my search text) $!reqspace = AND web:CdlsatdPublic $wikinames = xwiki $languages = default, en, de $xwiki = com.xpn.xwiki.api.xw...@15dd813 The conclusion the $searchresults is empty is coming from the fact that the code does not enter the foreach #foreach($objFrmLst in $results) #end the if(lucene) test seems to exclude that lucene is not working? Help on this is greatly appreciated ___ 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 -- 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
[xwiki-users] xwiki 2.1 Lucene search
I'm trying to figure out how I can achieve the following with the new Lucene search Baseline; When i test the standard main.LuceneSearch page and I type a search text, pick a space and hit search I get all the documents i'm expecting with document.title, a nice graphical relevancy score (nice), the wiki, space , document title and when last modified by ad last modified date I would like to achieve the following; 1) exclude spaces to search ad remove the space selector 2) add a language selector that takes all the languages from the xwiki preferences and add a line for any language (goal; as a example the user can limit the search to german) 3) conditional in which space the document is replace the document title with an object attribute (in our case FAQ.subject) 4) (under same condition as in 3, look at the language and pick the right object, since in our application we have implemented multilanguage-versions of ONE document as ONE object of FAQ for each language in ONE document (so a document can have up to n objects of FAQ where n=number of languages in the xwiki) If possible help me on these 4 items, but if you only can help me on 1 or more ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Lucene defaultpage fails
Navigating to the Main.LuceneSearch page brings up the following error? Failed to execute macro: velocity org.xwiki.rendering.macro.MacroExecutionException: Failed to evaluate Velocity Macro for content [$xwiki.jsfx.use(uicomponents/search/search.js, true)## $xwiki.ssfx.use(uicomponents/search/search.css, true)## The page has worked, but what can be wrong now. The page itself is not changed from the distribution? Gerritjan ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Lucene defaultpage fails
See below for extended error-report I also paste the code Op 17 jan 2010, om 18:12 heeft Flavius Olaru het volgende geschreven: On Sun, Jan 17, 2010 at 1:35 PM, Gerritjan Koekkoek gerritjankoekk...@gmail.com wrote: Navigating to the Main.LuceneSearch page brings up the following error? Failed to execute macro: velocity org.xwiki.rendering.macro.MacroExecutionException: Failed to evaluate Velocity Macro for content [$xwiki.jsfx.use(uicomponents/search/search.js, true)## $xwiki.ssfx.use(uicomponents/search/search.css, true)## The page has worked, but what can be wrong now. The page itself is not changed from the distribution? Gerritjan ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users Hi Gerritjan, Can you paste in more information about the error? -- Flavius Olaru ## Disable the document extra data: comments, attachments, history... #set($docextras = []) ## === ## Lucene search ## === ## Inputs : $request.text ## Outputs : $list, $isScored ## === ## Uncomment this line to overload the maximum list of wiki where to search (also the one listed in the wikis combobox) ## #set($allwikinamelist = [xwiki, wiki1, wiki2]) ## ## Uncomment this line to overload the wikis where to search ## #set($wikinames = xwiki,wiki,wiki) ## ## Uncomment this line to overload the languages to search ## #set($languages = default,en,de) #set ($rssmode = ($!request.xpage == 'plain')) ## --- ## Space filtering ## --- #set($extraClause = '') #set($selectedSpace = $!request.space) #if($selectedSpace != '' !$blacklistedSpaces.contains($selectedSpace)) #set($extraClause = AND web:${selectedSpace}) #end ## -- ## Exclude Blacklisted spaces ($blacklistedSpaces is set in xwikivars.vm) ## Also exclude WebPreferences. ## -- #foreach ($blacklistedSpace in $blacklistedSpaces) #set ($extraClause = AND NOT web:${blacklistedSpace}${extraClause}) #end #if(!$hasAdmin !$isAdvancedUser) #set ($extraClause = AND NOT name:WebPreferences${extraClause}) #end ## --- ## Space macros ## --- #macro(spaceoption $space $selectedSpace) option value=${space} #if($selectedSpace == $space)selected=selected#end$space/option #end #macro(spaceselect $selectedSpace $spaces) select name=space title=$msg.get('xe.search.bar.spaces.title') option value= #if($selectedSpace == '')selected=selected#end$msg.get('xe.search.bar.spaces.all')/option #foreach($space in $xwiki.spaces) #if (!$blacklistedSpaces.contains($space)) #spaceoption($space $selectedSpace) #end #end /select #end ## --- ## Wikis filtering ## --- #set($wikinamelist = []) #if(!$wikinames) #set($wikinametable = $request.getParameterValues(wikinames)) #if(!$wikinametable || $request.wikinames == ) #set($wikinametable = $allwikinamelist) #end #set($wikinames = ) #foreach($wikiname in $wikinametable) #set($ok = $wikinamelist.add($wikiname)) #if($wikinames != ) #set($wikinames = $wikinames + ,) #end #set($wikinames = $wikinames + $wikiname) #end #else #set($wikinametable = $wikinames.split(, )) #foreach($wikiname in $wikinametable) #set($ok = $wikinamelist.add($wikiname)) #end #end ## #if($xwiki.isVirtualMode()) #if(!$allwikinamelist) #set($currentwikiname = $context.database) #set($ok = $context.setDatabase($context.mainWikiName)) #set($allwikilist = $xwiki.searchDocuments(, BaseObject as obj, StringProperty as prop where doc.fullName=obj.name and obj.className='XWiki.XWikiServerClass' and prop.id.id=obj.id and prop.id.name='server')) #set($ok = $context.setDatabase($currentwikiname)) ## #set($allwikinamelist = []) #foreach($wiki in $allwikilist) #set($ok = $allwikinamelist.add($wiki.substring(17).toLowerCase())) #end #if(!$allwikinamelist.contains($context.mainWikiName)) #set($ok = $allwikinamelist.add($context.mainWikiName)) #end #end ## --- ## Wikis macros ## --- #macro(wikinamesoption $wikiname $wikinamelist) option value=$wikiname #if($wikinamelist.contains($wikiname))selected=selected#end$wikiname/option #end #macro(wikinamesselect $allwikinamelist $wikinamelist) select name=wikinames option value= selected=selectedAll/option #foreach($wikiname in $allwikinamelist) #wikinamesoption($wikiname $wikinamelist) #end /select #end #else #if($wikinames == ) #set($wikinames = $context.mainWikiName) #end #end ## --- ## Query preparation ## --- #set($text = $!request.getParameter('text')) #set($query = $text) #set($utext = $util.encodeURI($query)) #set($defaultItemsPerPage = 30) #set($itemsPerPage
Re: [xwiki-users] Lucene defaultpage fails
The following command (thanks Pete) worked en reinitialized Lucene after that lucenesearch worked again. Hope to hear soon how to prevent that Lucene is not initialized? xwiki.getXWiki().getPluginManager().getPlugin(lucene).init(xwiki.getXWikiC ontext()) Op 18 jan 2010, om 10:46 heeft Guillaume Lerouge het volgende geschreven: Hi, yes, I'm frequently hitting this error too and I'm not sure why. Thomas Mortagne looked at it last week but he doesn't have a fix yet. I was provided with a workaround last friday, I'll see if I can post it on code.xwiki.org Guillaume On Mon, Jan 18, 2010 at 10:05 AM, Petteri Karttunen petteri.karttu...@gmail.com wrote: Hi, I'm also encountering this problem randomly since XWiki 2.0 but so far haven't been able to find the initial cause. See also http://www.mail-archive.com/users@xwiki.org/msg09549.html. As Marius suggests it might have something to do with the plugin initialization because re-initializing the plugin under those circumstances helps in my case: ... xwiki.getXWiki().getPluginManager().getPlugin(lucene).init(xwiki.getXWikiC ontext()) ... but this of course doesn't solve the problem behind. -Pete -Alkuperäinen viesti- Lähettäjä: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] Puolesta Gerritjan Koekkoek Lähetetty: 17. tammikuuta 2010 21:26 Vastaanottaja: XWiki Users Aihe: Re: [xwiki-users] Lucene defaultpage fails See below for extended error-report I also paste the code Op 17 jan 2010, om 18:12 heeft Flavius Olaru het volgende geschreven: On Sun, Jan 17, 2010 at 1:35 PM, Gerritjan Koekkoek gerritjankoekk...@gmail.com wrote: Navigating to the Main.LuceneSearch page brings up the following error? Failed to execute macro: velocity org.xwiki.rendering.macro.MacroExecutionException: Failed to evaluate Velocity Macro for content [$xwiki.jsfx.use(uicomponents/search/search.js, true)## $xwiki.ssfx.use(uicomponents/search/search.css, true)## The page has worked, but what can be wrong now. The page itself is not changed from the distribution? Gerritjan ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users Hi Gerritjan, Can you paste in more information about the error? -- Flavius Olaru ## Disable the document extra data: comments, attachments, history... #set($docextras = []) ## === ## Lucene search ## === ## Inputs : $request.text ## Outputs : $list, $isScored ## === ## Uncomment this line to overload the maximum list of wiki where to search (also the one listed in the wikis combobox) ## #set($allwikinamelist = [xwiki, wiki1, wiki2]) ## ## Uncomment this line to overload the wikis where to search ## #set($wikinames = xwiki,wiki,wiki) ## ## Uncomment this line to overload the languages to search ## #set($languages = default,en,de) #set ($rssmode = ($!request.xpage == 'plain')) ## --- ## Space filtering ## --- #set($extraClause = '') #set($selectedSpace = $!request.space) #if($selectedSpace != '' !$blacklistedSpaces.contains($selectedSpace)) #set($extraClause = AND web:${selectedSpace}) #end ## -- ## Exclude Blacklisted spaces ($blacklistedSpaces is set in xwikivars.vm) ## Also exclude WebPreferences. ## -- #foreach ($blacklistedSpace in $blacklistedSpaces) #set ($extraClause = AND NOT web:${blacklistedSpace}${extraClause}) #end #if(!$hasAdmin !$isAdvancedUser) #set ($extraClause = AND NOT name:WebPreferences${extraClause}) #end ## --- ## Space macros ## --- #macro(spaceoption $space $selectedSpace) option value=${space} #if($selectedSpace == $space)selected=selected#end$space/option #end #macro(spaceselect $selectedSpace $spaces) select name=space title=$msg.get('xe.search.bar.spaces.title') option value= #if($selectedSpace == '')selected=selected#end$msg.get('xe.search.bar.spaces.all')/option #foreach($space in $xwiki.spaces) #if (!$blacklistedSpaces.contains($space)) #spaceoption($space $selectedSpace) #end #end /select #end ## --- ## Wikis filtering ## --- #set($wikinamelist = []) #if(!$wikinames) #set($wikinametable = $request.getParameterValues(wikinames)) #if(!$wikinametable || $request.wikinames == ) #set($wikinametable = $allwikinamelist) #end #set($wikinames = ) #foreach($wikiname in $wikinametable) #set($ok = $wikinamelist.add($wikiname)) #if($wikinames != ) #set($wikinames = $wikinames + ,) #end #set($wikinames = $wikinames + $wikiname) #end #else #set($wikinametable = $wikinames.split(, )) #foreach($wikiname in $wikinametable) #set($ok = $wikinamelist.add($wikiname)) #end #end ## #if($xwiki.isVirtualMode
Re: [xwiki-users] Lucene defaultpage fails
In my case I have no control over the xwiki; it's hosted at xwiki.sas (or xwiki.com) I think the advantage is that Thomas has access to all the systemdata? Op 19 jan 2010, om 13:48 heeft Thomas Mortagne het volgende geschreven: On Tue, Jan 19, 2010 at 13:26, Petteri Karttunen petteri.karttu...@gmail.com wrote: Hello, My issues seem to happen randomly but not at startup. Plugin works well from some hours to some days but I'm not sure what triggers this. I haven't been able to debug anything of interest in plugin's logs. Only potential clue I have is that plugin is leaving index files open which -at least- leads Tomcat finally to too many files open -error at some point. lsof | grep lucene gives me a bunch of these: ... java.bin 10095 tomcat 666r REG 104,1 60931511 15634869 /srv/www/DATA/xwiki/lucene/_5r7.cfs (deleted) java.bin 10095 tomcat 667r REG 104,1 60931507 15634870 /srv/www/DATA/xwiki/lucene/_5r9.cfs (deleted) java.bin 10095 tomcat 668r REG 104,1 60931507 15634871 /srv/www/DATA/xwiki/lucene/_5rb.cfs (deleted) ... Also, xwiki gets the plugin object normally during the malfunctional state but it seems it just cannot read index. Could it be that the plugin becomes unusable not before a deleted index file becomes overwritten by the system? That could be the reason why the time it works varies so much (depending on the other file system usage of the underlying operating system)? WDT? This one is http://jira.xwiki.org/jira/browse/XPLUCENE-30 but I don't see how it could be the source of the nullpointer exception issue. -Pete -Alkuperäinen viesti- Lähettäjä: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] Puolesta Thomas Mortagne Lähetetty: 19. tammikuuta 2010 13:20 Vastaanottaja: XWiki Users Aihe: Re: [xwiki-users] Lucene defaultpage fails Hi guys, getting some informations since i can't find just at looking at the code how this would append. When you have the issue, does it appending since the time you started XWiki or does it works and at some point it stops to work even if you did not restarted XWiki. Basically is it always a startup issue ? And in that case do you have anything in the beginning of the log like a warning or something indicating that something wrong append during lucene plugin initialization ? On Tue, Jan 19, 2010 at 07:20, Gerritjan Koekkoek gerritjankoekk...@gmail.com wrote: The following command (thanks Pete) worked en reinitialized Lucene after that lucenesearch worked again. Hope to hear soon how to prevent that Lucene is not initialized? xwiki.getXWiki().getPluginManager().getPlugin(lucene).init(xwiki.getXWikiC ontext()) Op 18 jan 2010, om 10:46 heeft Guillaume Lerouge het volgende geschreven: Hi, yes, I'm frequently hitting this error too and I'm not sure why. Thomas Mortagne looked at it last week but he doesn't have a fix yet. I was provided with a workaround last friday, I'll see if I can post it on code.xwiki.org Guillaume On Mon, Jan 18, 2010 at 10:05 AM, Petteri Karttunen petteri.karttu...@gmail.com wrote: Hi, I'm also encountering this problem randomly since XWiki 2.0 but so far haven't been able to find the initial cause. See also http://www.mail-archive.com/users@xwiki.org/msg09549.html. As Marius suggests it might have something to do with the plugin initialization because re-initializing the plugin under those circumstances helps in my case: ... xwiki.getXWiki().getPluginManager().getPlugin(lucene).init(xwiki.getXWikiC ontext()) ... but this of course doesn't solve the problem behind. -Pete -Alkuperäinen viesti- Lähettäjä: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] Puolesta Gerritjan Koekkoek Lähetetty: 17. tammikuuta 2010 21:26 Vastaanottaja: XWiki Users Aihe: Re: [xwiki-users] Lucene defaultpage fails See below for extended error-report I also paste the code Op 17 jan 2010, om 18:12 heeft Flavius Olaru het volgende geschreven: On Sun, Jan 17, 2010 at 1:35 PM, Gerritjan Koekkoek gerritjankoekk...@gmail.com wrote: Navigating to the Main.LuceneSearch page brings up the following error? Failed to execute macro: velocity org.xwiki.rendering.macro.MacroExecutionException: Failed to evaluate Velocity Macro for content [$xwiki.jsfx.use(uicomponents/search/search.js, true)## $xwiki.ssfx.use(uicomponents/search/search.css, true)## The page has worked, but what can be wrong now. The page itself is not changed from the distribution? Gerritjan ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users Hi Gerritjan, Can you paste in more information about the error? -- Flavius Olaru ## Disable the document extra data: comments, attachments, history... #set($docextras = []) ## === ## Lucene search
[xwiki-users] embed nabble
If I embed a nabble forum in the xwiki The users registered in xwiki, do they have automatic access to the nabble forum, I do not want anonymous forum members, but rather a 0ne:One relationship and preferably single signon ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] change colortheme
How do you test a colortheme in colibri skin (the ?... parameter in the url) How can you change the theme programatically in velocity? example if browser language = nl set theme to nl Gerritjan ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] groovy question
Hi, This code from http://code.xwiki.org/xwiki/bin/view/Snippets/Create200DummyUsersSnippet for(user in users){ fullName = user.get(0) + user.get(1) udoc = xwiki.getDocument(XWiki.+fullName) uobj = udoc.getObject(XWiki.XWikiUsers, true) uobj.set(first_name, user.get(0)) uobj.set(last_name , user.get(1)) print(* Registering * + udoc.fullName + *\n) udoc.save() gObj = allGroup.newObject('XWiki.XWikiGroups') gObj.set('member',udoc.fullName) } How to test if membership of group Xwiki.XWikiAllgroup already exists If I run the script twice I get two records in the group for the same person I would rather have the same behaviour as with getDocument; if not exists it creates a new one, otherwise a new version? Gerritjan ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] groovy question
Thx, this works... A related question to groups; allGroup seems to relate to XWikiAllGroup. How can I refer to a self created group; in my case CdlsAuthors? to add users to that group? Op 13 mrt 2010, om 13:52 heeft Sergiu Dumitriu het volgende geschreven: On 03/13/2010 01:03 PM, Gerritjan Koekkoek wrote: Hi, This code from http://code.xwiki.org/xwiki/bin/view/Snippets/Create200DummyUsersSnippet for(user in users){ fullName = user.get(0) + user.get(1) udoc = xwiki.getDocument(XWiki.+fullName) uobj = udoc.getObject(XWiki.XWikiUsers, true) uobj.set(first_name, user.get(0)) uobj.set(last_name , user.get(1)) print(* Registering * + udoc.fullName + *\n) udoc.save() if (allGroup.getObject('XWiki.XWikiGroups', 'member', udoc.fullName, false) == null) { gObj = allGroup.newObject('XWiki.XWikiGroups') gObj.set('member',udoc.fullName) } } How to test if membership of group Xwiki.XWikiAllgroup already exists If I run the script twice I get two records in the group for the same person I would rather have the same behaviour as with getDocument; if not exists it creates a new one, otherwise a new version? -- 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] groovy date setting
Hi, def vPublishDate = 2008/10/28 12:00:00 vObjArticle.set(publishDate,vPublishDate) But when I look at the page it shows 31/03/0034 12:00:00 Any explanation how to handle dates with groovy for xwiki? Gerritjan ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Assign blog category through groovy
Hi I need to assign a blog category to my document created by code? def vCategory = Informatie vObjArticle.set(category,vCategory) category is a special typed-attribute in BlogPostClass object of type database tree I have defined the blog category Informatie through the category editor of the blog application but after saving the document and inspecting the object it does not show the tekst Informatie, but it appears to be empty Is this the right way of setting such a attribute? If not, how to? Gerritjan ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Blog application Document creator
Hi, Most of your advise was accurate and has helped, Thank you, XWikiDocument articleDoc = vArticle.getDocument(); articleDoc.setAuthor(user); articleDoc.setCreator(user); aticleDoc.setContentDirty(false); aticleDoc.setMetaDataDirty(false); xwiki.getXWiki().saveDocument(articleDoc, xcontext.getContext); In Groovy; should I add the semicolon at the end of each line? Should I add this piece of code after the vArticle.save() statement? When I did I get the following error: Script22.groovy: 73: unable to resolve class XWikiDocument @ line 73, column 15. XWikiDocument articleDoc = vArticle.getDocument(); ^ the category and hidden tip did work Op 6 apr 2010, om 21:45 heeft Sergiu Dumitriu het volgende geschreven: On 04/03/2010 01:34 PM, Gerritjan Koekkoek wrote: Hi, I try to convert a website in xwiki.blog application For each page I create a groovy script that creates a blog post The script is successful with three exceptions; 1) Would like to maintain the original author So I create a xwiki.user (this works) Then I would like to set the document property with {{groovy}} ... (the first part of the script) vArticle.set(creator,'XWiki.FamilievandenMeulengraaf') vArticle.save() {{/groovy}} But looking at the post it still has creator as the user running the code Using the public API it's impossible to set a different creator/author than the current user. You need to get into the internal objects, and do something like: XWikiDocument articleDoc = vArticle.getDocument(); articleDoc.setAuthor(user); articleDoc.setCreator(user); aticleDoc.setContentDirty(false); aticleDoc.setMetaDataDirty(false); xwiki.getXWiki().saveDocument(articleDoc, xcontext.getContext); 2) Categories I've created a few categories in the blog application So I would like to set the category attribute, where the class-attribute definition of the post = Database Tree {{groovy}} ... vObjArticle.set(Category,'???') ... {{/groovy}} Does any body know what to put in '???', since a category can be multiple entries ??? If you want to put just one category, you can use the document name where the category is defined (in the blog each category is a document, look at the existing categories to see how they look like): vObjArticle.set('Category', 'Blog.MyNiceCategory') If you want to put multiple entries, you can use an array: vObjArticle.set('Category', ['Blog.Cat1', 'Blog.Cat2']) 3) When I run the script a postpage is created, I see a link in the new documents frame. When I go to it it displays OK, but when I go to the blog application it does not show in the blog indexes (recently, categories (explained under 2)) or historical) Only when I go to the page, click edit object and directly click save it will show up in he blog What could be the reason for this, Try also setting a value for the 'isHidden' property. The code looks like ( = title of the post) {{groovy}} vArticle = xwiki.getDocument(CdlsArticle.XX) vArticle.setContent('{{include document=CdlsArticle.ArticlePostSheet/}}') vArticle.setParent(CdlsArticle.WebHome) vArticle.set(language,nl) vArticle.set(translation,1) vObjArticle = vArticle.getObject(CdlsArticle.ArticlePostClass,true) ... def vTitle = X vObjArticle.set(title,vTitle) ... def vExtractHeader = '' def vExtractText = '' def vExtractPicture = 'image:photo.cdl...@.jpg vObjArticle.set(extract,vExtractHeader + vExtractText + vExtractPicture) .. etcetera .. vObjArticle.set(published,'1') vArticle.save() {{/groovy}} -- 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] CSS Styling in panel
Hi to bring it together... I have one panel document called: CdLSATDTopics It contains two objects; -PanelClass: called CdLSATDTopics (like document) -StyleSheetExtension: called PopupMenu If I check the Html page it does not yet contain a link to the stylesheet extension I used: $xwiki.ssx.use('PopupMenu') = should this name be extended with space.document.object? In the stylesheet extension I should refer to classes or ID's within the class as described by Raluca? Op 20 jun 2010, om 12:57 heeft Raluca Stavro het volgende geschreven: Hello, On Sun, Jun 20, 2010 at 12:41 PM, Gerritjan Koekkoek gerritjankoekk...@gmail.com wrote: Hi, Thxs, but is it also possible to use the stylesheet extension object to add CSS specifically to the panel, since it would keep my generic CSS more clean I was thinking of adding a stylesheet extension object to the document that holds the panel object, but it does not seem to to connect? I used; - name PopupMenu - Code: (the code from eric meyer) - Use this extension: on demand - Parse content: Yes You don't need 'Yes' value here unless you insert Velocity code inside the Stylesheet Extension. - Cashing policy: long My panel object is called : CdLSATDTopics, so I assume the CSS classname = CdLSATDTopics The class name is generated by using the Panel DOCUMENT NAME. So in your case, if the document that stores you're Panel object is named 'PopupMenu', then this should be the class name of your panel. Note: the full class name of a panel is formed out of 3 elements: * 'panel' * 'expanded' or 'collapsed' * 'panel_document_name' Example: 'panel expanded PopupMenu', where Panels.PopupMenu is the full name of the panel document. Raluca. right? Op 20 jun 2010, om 11:21 heeft Sergiu Dumitriu het volgende geschreven: On 06/20/2010 11:08 AM, Gerritjan Koekkoek wrote: Hi, I would like to apply some CSS styling to a panel only. I have some velocity code creating aul list I would like to use the CSS as documented on http://meyerweb.com/eric/css/edge/menus/demo.html but it should only apply to the panel, I use the same velocity code also on a document, and there the styling should not be applied Use proper CSS selectors. Each panel has a classname derived from the panel's name, which you can use to target just the panel. For example, My Recent Modifications has the classname MyRecentModifications. Use Firebug, or view page source, to see what classname your panel gets. Then, use this classname as a prefix in your selectors. Another option is to just use .panels as a prefix, which matches only the panels columns, -- 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 ___ 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] Failed to execute macro: include
Hi, Is there a smart way to find the error causing a Failed to execute macro: include When I click details of the error it displays a whole page of errorlines ending with ... 91 more I have the feeling important information is missing. for experts; the error codes i see; org.xwiki.rendering.macro.MacroExecutionException: Failed to get content for Document [CategorySheet] at org.xwiki.rendering.internal.macro.include.IncludeMacro.execute(IncludeMacro.java:143) at org.xwiki.rendering.internal.macro.include.IncludeMacro.execute(IncludeMacro.java:49) at org.xwiki.rendering.internal.transformation.MacroTransformation.transformOnce(MacroTransformation.java:175) at org.xwiki.rendering.internal.transformation.MacroTransformation.transform(MacroTransformation.java:120) at org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:72) at com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:5696) at com.xpn.xwiki.doc.XWikiDocument.performSyntaxConversion(XWikiDocument.java:5671) at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:569) at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:583) at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:475) at sun.reflect.GeneratedMethodAccessor265.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.ASTSetDirective.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:191) at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:156) at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:116) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1710) at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1631) at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:657) at sun.reflect.GeneratedMethodAccessor142.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 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:191) at
[xwiki-users] limit of around 10Mb for attached files
I'm trying to Import a backup of around 45 MB in a test environment of Xwiki It fails after clicking UPLOAD;I'm getting a message: XWiki has a default limit of around 10Mb for attached files. This limit can be changed using the upload_maxsize parameter. Check the FAQ for more information. I'm running XWiki Enterprise 2.4.2.31315 on mySQL 5.1 I've changed my.cnf of mySQL to increase max_allowed_packet # The MySQL server [mysqld] port= 3306 socket = /tmp/mysql.sock skip-locking key_buffer_size = 16M max_allowed_packet = 64M table_open_cache = 64 sort_buffer_size = 512K net_buffer_length = 8K read_buffer_size = 256K read_rnd_buffer_size = 512K myisam_sort_buffer_size = 8M This shows in when i run mysqld --verbose --help as: max_allowed_packet67108864 I've also used the class editor in xwiki to edit the parameter of the preferences Name: upload_maxsize (default) Pretty Name: Maximum Upload Size (default) Validation Regular Expression: (default) Validation Message: (default) Number Type: long (default) Size of the corresponding form element in edit mode : 2 (changed) any suggestions? ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] limit of around 10Mb for attached files
Thx for the help, but I already did that, do you think 2 is big enough? Op 26 sep 2010, om 18:06 heeft Caleb James DeLisle het volgende geschreven: Try going to yourwiki.com/xwiki/bin/edit/XWiki/XWikiPreferences?editor=object and then expand the Objects of type XWiki.XWikiPreferences (1) section, then find where it says: Maximum Upload Size That number is a number of bytes, I usually just make it really huge. Caleb Gerritjan Koekkoek wrote: I'm trying to Import a backup of around 45 MB in a test environment of Xwiki It fails after clicking UPLOAD;I'm getting a message: XWiki has a default limit of around 10Mb for attached files. This limit can be changed using the upload_maxsize parameter. Check the FAQ for more information. I'm running XWiki Enterprise 2.4.2.31315 on mySQL 5.1 I've changed my.cnf of mySQL to increase max_allowed_packet # The MySQL server [mysqld] port = 3306 socket= /tmp/mysql.sock skip-locking key_buffer_size = 16M max_allowed_packet = 64M table_open_cache = 64 sort_buffer_size = 512K net_buffer_length = 8K read_buffer_size = 256K read_rnd_buffer_size = 512K myisam_sort_buffer_size = 8M This shows in when i run mysqld --verbose --help as: max_allowed_packet67108864 I've also used the class editor in xwiki to edit the parameter of the preferences Name: upload_maxsize (default) Pretty Name: Maximum Upload Size (default) Validation Regular Expression: (default) Validation Message: (default) Number Type: long (default) Size of the corresponding form element in edit mode : 2 (changed) any suggestions? ___ 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] limit of around 10Mb for attached files
What is -Xmx? something of XWiki, Tomcat or mySql? Op 26 sep 2010, om 21:24 heeft Caleb James DeLisle het volgende geschreven: 200 megabytes (2) should be enough. There is another problem with memory exhaustion but usually you don't get the XWiki has a default limit of around 10Mb message when that happens. Just out of curiosity, what is your -Xmx set to? Caleb Gerritjan Koekkoek wrote: Thx for the help, but I already did that, do you think 2 is big enough? Op 26 sep 2010, om 18:06 heeft Caleb James DeLisle het volgende geschreven: Try going to yourwiki.com/xwiki/bin/edit/XWiki/XWikiPreferences?editor=object and then expand the Objects of type XWiki.XWikiPreferences (1) section, then find where it says: Maximum Upload Size That number is a number of bytes, I usually just make it really huge. Caleb Gerritjan Koekkoek wrote: I'm trying to Import a backup of around 45 MB in a test environment of Xwiki It fails after clicking UPLOAD;I'm getting a message: XWiki has a default limit of around 10Mb for attached files. This limit can be changed using the upload_maxsize parameter. Check the FAQ for more information. I'm running XWiki Enterprise 2.4.2.31315 on mySQL 5.1 I've changed my.cnf of mySQL to increase max_allowed_packet # The MySQL server [mysqld] port = 3306 socket = /tmp/mysql.sock skip-locking key_buffer_size = 16M max_allowed_packet = 64M table_open_cache = 64 sort_buffer_size = 512K net_buffer_length = 8K read_buffer_size = 256K read_rnd_buffer_size = 512K myisam_sort_buffer_size = 8M This shows in when i run mysqld --verbose --help as: max_allowed_packet67108864 I've also used the class editor in xwiki to edit the parameter of the preferences Name: upload_maxsize (default) Pretty Name: Maximum Upload Size (default) Validation Regular Expression: (default) Validation Message: (default) Number Type: long (default) Size of the corresponding form element in edit mode : 2 (changed) any suggestions? ___ 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 ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Localize watchlists
Hi, I'm getting complaints of users that they can not read what is in their watchlist notifications. We have a multi language setup; in this case my visitors would like to get notified in their local language. So if a user is registered with default language french will also get the watchlist notifications in french? Gerritjan ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Localize watchlists
Hi, Op 4 okt 2010, om 17:25 heeft [Ricardo Rodriguez] eBioTIC. het volgende geschreven: Hi! Anca Luca wrote: Le 4 oct. 2010 à 07:43, [Ricardo Rodriguez] eBioTIC. ricardo.rodrig...@ebiotic.ne t a écrit : Hi! Gerritjan Koekkoek wrote: Hi, I'm getting complaints of users that they can not read what is in their watchlist notifications. We have a multi language setup; in this case my visitors would like to get notified in their local language. So if a user is registered with default language french will also get the watchlist notifications in french? I'm not an expert on XWatch but have you check the availability of the language you are looking (http://l10n.xwiki.org/xwiki/bin/view/ XWatch/) That translate application is for xwiki watch, the feed reader (http://watch.xwiki.org ), which has nothing to do with watchlist. The confusion is quite frequent actually. Indeed the problem is with standard email notifications in standard XWIKI Enterprise It's clear once again that I'm not an expert ... :-( and how default language setting (edit an user in object mode, go to XWiki.XWikiUser class object) affects to the content that each user receives? Thus, only default user language settings and/or general default language seem could affect the language used for notification. I think I having some issues here as well... for instance, in Watchlist user preferences, do you see the settings for your notifier? I can edit this option, but I don't see the choose option. Another thing is that in our XWiki Enterprise 2.4.30451 it seems that the Last modifications feed for your watchlist feed is not valid. Please, what release are you using? We are using: XWiki Enterprise 2.1.1.25889 (Plan to upgrade soon) We have internationalisation page, but have no clue what variables the notification is using? Thanks!0 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
[xwiki-users] conditional redirect after login
Hi, We would like to, conditionally, redirect users who log in to their profile page. (in our case; XWiki.username) The condition is: User is not in ANY OTHER GROUP then XWikiAllGroup. How can I do this most elegantly, modifying as little as possible of the standard pages that come with a distribution of XWIKI Gerritjan Koekkoek ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] [Announcement] XWiki Enterprise 2.5 Release Candidate 1 Released
Hi I grabbed and installed the RC1. But I usually also import the newest XAR, so I tried to do it When uploading and after that clicking on the XAR does not invoke the import details. Only the header: package content appears on the right of the overview of imported XAR's I was migrating from the latest stable; 2.4.2 and the database is a mySQL database and I run on Tomcat 6.0.29 on MAC OS X Gerritjan Op 16 okt 2010, om 00:27 heeft Sergiu Dumitriu het volgende geschreven: The XWiki development team is pleased to announce the release of XWiki Enterprise 2.5 Release Candidate 1. Go grab it at http://www.xwiki.org/xwiki/bin/view/Main/Download Main changes since XWiki Enterprise 2.5 Milestone 2: * New macros for the Space List and Tag Cloud * Display user avatars in annotations * A few improvements to the Extension Manager * A few improvements to the User Directory * WYSIWYG and Rendering improvements * A few security and performance improvements For more information see the Release notes at http://www.xwiki.org/xwiki/bin/Main/ReleaseNotesXWikiEnterprise25RC1 Thanks -The XWiki dev team ___ 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] Livetable does not show results
Hi, i'm trying to use LiveTable to improve our user experience. This is my code: #set($collist = [name, email , subject, status, question, answer, generalize]) #set($colprops = { name : { type : text, size : 20, link : view}, email :{ type : text, size : 20, link : view}, subject :{ type : text, size : 20, link : none}, status :{ type : text, size : 20, link : none}, question :{ type : text, size : 20, link : none, html : true, sortable:false }, answer :{ type : text, size : 20, link : none, html : true, sortable:false }, generalize : { type : list, class: CdlsatdCode.CdLS_ATD_UserQuestionsClass} }) #set($options = { className:CdlsatdCode.CdLS_ATD_UserQuestionsClass, rowCount: 15 }) p/ #livetable(myLTQuestions $collist $colprops $options) It does show the table, but without any rows! The last column does recognize the List box as defined in the Class, because when I click it it shows the list of values defined in the class If I use a jsonQuery as in the example below, I get two records as defined in the filter. I tried to replace the above options value className with resultPage pointing to page containing the jsonQuery below... but with the same result, no rows returned === {{include document=XWiki.LiveTableResultsMacros /}} {{velocity}} #gridresultwithfilter(CdlsatdCode.CdLS_ATD_UserQuestionsClass $request.collist.split(,) and doc.creator='$context.user') {{/velocity}} the page I get shows me: { totalrows: 2, matchingtags: { }, tags : [ ], returnedrows: 0 , offset: 1, reqNo: $request.reqNo, rows: [ { doc_viewable : true, doc_name : GerritjanKoekkoek_doc261, doc_fullname : xwiki:CdlsatdPrivate.GerritjanKoekkoek_doc261, doc_space : CdlsatdPrivate, doc_url : \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/view\/CdlsatdPrivate\/GerritjanKoekkoek_doc261, doc_space_url : \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/view\/CdlsatdPrivate\/, doc_hasadmin : true, doc_edit_url : \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/inline\/CdlsatdPrivate\/GerritjanKoekkoek_doc261, doc_copy_url : \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/view\/XWiki\/CopyDocument?sourcedoc=xwiki%3ACdlsatdPrivate.GerritjanKoekkoek_doc261, doc_delete_url : \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/delete\/CdlsatdPrivate\/GerritjanKoekkoek_doc261, doc_rename_url : \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/view\/CdlsatdPrivate\/GerritjanKoekkoek_doc261?xpage=renamestep=1, doc_rights_url : \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/edit\/CdlsatdPrivate\/GerritjanKoekkoek_doc261?editor=rights, doc_author_url : \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/view\/XWiki\/GerritjanKoekkoek, doc_date : 2009\/07\/18 16:44, doc_title : GerritjanKoekkoek_doc261, doc_author : Gerritjan Koekkoek, doc_creationDate : 2009\/07\/17 22:08, doc_creator : Gerritjan Koekkoek } , { doc_viewable : true, doc_name : GerritjanKoekkoek_doc264, doc_fullname : xwiki:CdlsatdPrivate.GerritjanKoekkoek_doc264, doc_space : CdlsatdPrivate, doc_url : \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/view\/CdlsatdPrivate\/GerritjanKoekkoek_doc264, doc_space_url : \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/view\/CdlsatdPrivate\/, doc_hasadmin : true, doc_edit_url : \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/inline\/CdlsatdPrivate\/GerritjanKoekkoek_doc264, doc_copy_url : \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/view\/XWiki\/CopyDocument?sourcedoc=xwiki%3ACdlsatdPrivate.GerritjanKoekkoek_doc264, doc_delete_url : \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/delete\/CdlsatdPrivate\/GerritjanKoekkoek_doc264, doc_rename_url : \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/view\/CdlsatdPrivate\/GerritjanKoekkoek_doc264?xpage=renamestep=1, doc_rights_url : \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/edit\/CdlsatdPrivate\/GerritjanKoekkoek_doc264?editor=rights, doc_author_url : \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/view\/XWiki\/GerritjanKoekkoek, doc_date : 2009\/07\/20 14:22, doc_title : GerritjanKoekkoek_doc264, doc_author : Gerritjan Koekkoek, doc_creationDate : 2009\/07\/20 13:58, doc_creator : Gerritjan Koekkoek } ]} ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] [Announcement] XWiki Enterprise 2.5 Release Candidate 1 Released
I grabbed it, but noticed that when i'm on a page of version 1 syntax and containing velocity coding that logging out will redirect to e not existing page http://localhost:8080/xwiki-enterprise-web-2.5http://localhost:8080/xwiki-enterprise-web-2.5/bin/login/XWiki/XWikiLogin;jsessionid=D4A66E70138252BF6C8238EC18D01D76?srid=uUwDp0hsxredirect=%2Fxwiki%252Denterprise%252Dweb%252D2.5%2Fbin%2Fview%2FSandbox%2FUserQuestionList%3Fsrid%3DuUwDp0hs Gerritjan Op 16 okt 2010, om 00:27 heeft Sergiu Dumitriu het volgende geschreven: The XWiki development team is pleased to announce the release of XWiki Enterprise 2.5 Release Candidate 1. Go grab it at http://www.xwiki.org/xwiki/bin/view/Main/Download Main changes since XWiki Enterprise 2.5 Milestone 2: * New macros for the Space List and Tag Cloud * Display user avatars in annotations * A few improvements to the Extension Manager * A few improvements to the User Directory * WYSIWYG and Rendering improvements * A few security and performance improvements For more information see the Release notes at http://www.xwiki.org/xwiki/bin/Main/ReleaseNotesXWikiEnterprise25RC1 Thanks -The XWiki dev team ___ 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] Livetable does not show results
Hi Thibaut, The script works like magic, very nice. Copy and Paste from the link created some formatting challenges, but after fixing the script generated actually created a live table; BUT... Still there are no records displayed? Like with the script I put in this question. The pages where the objects are stored are in a space that has access forbidden for unregistered users? Off course I run the generated script as a registered user (actually as a admin user I'm running this on xwiki 2.5 Gerritjan Op 18 okt 2010, om 23:11 heeft Thibaut Camberlin het volgende geschreven: Hi Gerritjan, You can use the livetable generator code snippet http://code.xwiki.org/xwiki/bin/view/Snippets/LivetableGeneratorSnippet Hope this helps, -- Thibaut On Sun, Oct 17, 2010 at 2:23 PM, Gerritjan Koekkoek gerritjankoekk...@gmail.com wrote: Hi, i'm trying to use LiveTable to improve our user experience. This is my code: #set($collist = [name, email , subject, status, question, answer, generalize]) #set($colprops = { name : { type : text, size : 20, link : view}, email :{ type : text, size : 20, link : view}, subject :{ type : text, size : 20, link : none}, status :{ type : text, size : 20, link : none}, question :{ type : text, size : 20, link : none, html : true, sortable:false }, answer :{ type : text, size : 20, link : none, html : true, sortable:false }, generalize : { type : list, class: CdlsatdCode.CdLS_ATD_UserQuestionsClass} }) #set($options = { className:CdlsatdCode.CdLS_ATD_UserQuestionsClass, rowCount: 15 }) p/ #livetable(myLTQuestions $collist $colprops $options) It does show the table, but without any rows! The last column does recognize the List box as defined in the Class, because when I click it it shows the list of values defined in the class If I use a jsonQuery as in the example below, I get two records as defined in the filter. I tried to replace the above options value className with resultPage pointing to page containing the jsonQuery below... but with the same result, no rows returned === {{include document=XWiki.LiveTableResultsMacros /}} {{velocity}} #gridresultwithfilter(CdlsatdCode.CdLS_ATD_UserQuestionsClass $request.collist.split(,) and doc.creator='$context.user') {{/velocity}} the page I get shows me: { totalrows: 2, matchingtags: { }, tags : [ ], returnedrows: 0 , offset: 1, reqNo: $request.reqNo, rows: [ { doc_viewable : true, doc_name : GerritjanKoekkoek_doc261, doc_fullname : xwiki:CdlsatdPrivate.GerritjanKoekkoek_doc261, doc_space : CdlsatdPrivate, doc_url : \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/view\/CdlsatdPrivate\/GerritjanKoekkoek_doc261, doc_space_url : \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/view\/CdlsatdPrivate\/, doc_hasadmin : true, doc_edit_url : \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/inline\/CdlsatdPrivate\/GerritjanKoekkoek_doc261, doc_copy_url : \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/view\/XWiki\/CopyDocument?sourcedoc=xwiki%3ACdlsatdPrivate.GerritjanKoekkoek_doc261, doc_delete_url : \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/delete\/CdlsatdPrivate\/GerritjanKoekkoek_doc261, doc_rename_url : \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/view\/CdlsatdPrivate\/GerritjanKoekkoek_doc261?xpage=renamestep=1, doc_rights_url : \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/edit\/CdlsatdPrivate\/GerritjanKoekkoek_doc261?editor=rights, doc_author_url : \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/view\/XWiki\/GerritjanKoekkoek, doc_date : 2009\/07\/18 16:44, doc_title : GerritjanKoekkoek_doc261, doc_author : Gerritjan Koekkoek, doc_creationDate : 2009\/07\/17 22:08, doc_creator : Gerritjan Koekkoek } , { doc_viewable : true, doc_name : GerritjanKoekkoek_doc264, doc_fullname : xwiki:CdlsatdPrivate.GerritjanKoekkoek_doc264, doc_space : CdlsatdPrivate, doc_url : \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/view\/CdlsatdPrivate\/GerritjanKoekkoek_doc264, doc_space_url : \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/view\/CdlsatdPrivate\/, doc_hasadmin : true, doc_edit_url : \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/inline\/CdlsatdPrivate\/GerritjanKoekkoek_doc264, doc_copy_url : \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/view\/XWiki\/CopyDocument?sourcedoc=xwiki%3ACdlsatdPrivate.GerritjanKoekkoek_doc264, doc_delete_url : \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/delete\/CdlsatdPrivate\/GerritjanKoekkoek_doc264, doc_rename_url : \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/view\/CdlsatdPrivate\/GerritjanKoekkoek_doc264?xpage=renamestep=1, doc_rights_url : \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/edit\/CdlsatdPrivate\/GerritjanKoekkoek_doc264?editor=rights, doc_author_url : \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/view\/XWiki\/GerritjanKoekkoek, doc_date : 2009\/07\/20 14:22, doc_title : GerritjanKoekkoek_doc264, doc_author : Gerritjan Koekkoek, doc_creationDate : 2009\/07\/20 13:58, doc_creator : Gerritjan Koekkoek } ]} ___ users mailing list users
Re: [xwiki-users] Livetable does not show results
Hi I only have 2.5, deinstalled the old version In my situation It looks like it is only working on classes where the classes sit in the XWiki space and the documents holding the objects are in the same space? So it works with users, but not with panels.panelclass (or my own custom developed class). It does work brilliantly with tag-class Even get unexected goodies I do not think it's the generator script, but something with livetable? Gerritjan Op 20 okt 2010, om 01:05 heeft [Ricardo Rodriguez] eBioTIC. het volgende geschreven: Hi, Thibaut Camberlin wrote: Hi Gerritjan, Ludovic did that script not me I have to say! Did you test the same code on another version of XWiki ? If so what is the behaviour and the version ? Can you generate the livetable based on another class, say XWiki.XWikiUsers, what is the result ? It is working fine in a XE/XEM 2.4.1 system. Thibaut, you can check it here... http://ebiotic.net/bin/ICT/LiveTableUsers On Tue, Oct 19, 2010 at 7:48 PM, Gerritjan Koekkoek gerritjankoekk...@gmail.com wrote: Hi Thibaut, The script works like magic, very nice. Copy and Paste from the link created some formatting challenges, but after fixing the script generated actually created a live table; BUT... Still there are no records displayed? Like with the script I put in this question. The pages where the objects are stored are in a space that has access forbidden for unregistered users? Off course I run the generated script as a registered user (actually as a admin user I'm running this on xwiki 2.5 Gerritjan Op 18 okt 2010, om 23:11 heeft Thibaut Camberlin het volgende geschreven: Hi Gerritjan, You can use the livetable generator code snippet http://code.xwiki.org/xwiki/bin/view/Snippets/LivetableGeneratorSnippet Hope this helps, -- Thibaut On Sun, Oct 17, 2010 at 2:23 PM, Gerritjan Koekkoek gerritjankoekk...@gmail.com wrote: Hi, i'm trying to use LiveTable to improve our user experience. This is my code: #set($collist = [name, email , subject, status, question, answer, generalize]) #set($colprops = { name : { type : text, size : 20, link : view}, email :{ type : text, size : 20, link : view}, subject :{ type : text, size : 20, link : none}, status :{ type : text, size : 20, link : none}, question :{ type : text, size : 20, link : none, html : true, sortable:false }, answer :{ type : text, size : 20, link : none, html : true, sortable:false }, generalize : { type : list, class: CdlsatdCode.CdLS_ATD_UserQuestionsClass} }) #set($options = { className:CdlsatdCode.CdLS_ATD_UserQuestionsClass, rowCount: 15 }) p/ #livetable(myLTQuestions $collist $colprops $options) It does show the table, but without any rows! The last column does recognize the List box as defined in the Class, because when I click it it shows the list of values defined in the class If I use a jsonQuery as in the example below, I get two records as defined in the filter. I tried to replace the above options value className with resultPage pointing to page containing the jsonQuery below... but with the same result, no rows returned === {{include document=XWiki.LiveTableResultsMacros /}} {{velocity}} #gridresultwithfilter(CdlsatdCode.CdLS_ATD_UserQuestionsClass $request.collist.split(,) and doc.creator='$context.user') {{/velocity}} the page I get shows me: { totalrows: 2, matchingtags: { }, tags : [ ], returnedrows: 0 , offset: 1, reqNo: $request.reqNo, rows: [ { doc_viewable : true, doc_name : GerritjanKoekkoek_doc261, doc_fullname : xwiki:CdlsatdPrivate.GerritjanKoekkoek_doc261, doc_space : CdlsatdPrivate, doc_url : \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/view\/CdlsatdPrivate\/GerritjanKoekkoek_doc261, doc_space_url : \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/view\/CdlsatdPrivate\/, doc_hasadmin : true, doc_edit_url : \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/inline\/CdlsatdPrivate\/GerritjanKoekkoek_doc261, doc_copy_url : \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/view\/XWiki\/CopyDocument?sourcedoc=xwiki%3ACdlsatdPrivate.GerritjanKoekkoek_doc261, doc_delete_url : \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/delete\/CdlsatdPrivate\/GerritjanKoekkoek_doc261, doc_rename_url : \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/view\/CdlsatdPrivate\/GerritjanKoekkoek_doc261?xpage=renamestep=1, doc_rights_url : \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/edit\/CdlsatdPrivate\/GerritjanKoekkoek_doc261?editor=rights, doc_author_url : \/xwiki%2Denterprise%2Dweb%2D2.5\/bin\/view\/XWiki\/GerritjanKoekkoek, doc_date : 2009\/07\/18 16:44, doc_title : GerritjanKoekkoek_doc261, doc_author : Gerritjan Koekkoek, doc_creationDate : 2009\/07\/17 22:08, doc_creator : Gerritjan Koekkoek } , { doc_viewable : true, doc_name : GerritjanKoekkoek_doc264, doc_fullname : xwiki:CdlsatdPrivate.GerritjanKoekkoek_doc264, doc_space : CdlsatdPrivate, doc_url
Re: [xwiki-users] Livetable does not show results
Hi Thibault, I copied the script in a page in the sandbox environment... It should show a LiveTable on Panels.PanelClass NO, the script works fine, but there are NO records shown I also copied the script into the sandbox environment of our production instance: www.cdlswold.org It gives the same result as my test environment 2.5 production is on 2.1.1.25889 I guess it must be some kind of security? Or could it be that not all objects originated from the same class defenition? (i.o: The class was modified after initial objects are created?) Hope this helps tracking my problem down Gerritjan Op 22 okt 2010, om 16:15 heeft Thibaut Camberlin het volgende geschreven: Hi Gerritjan, I tested on Panels.PanelClass on a 2.5 M2 and it works fine. Can you test this code (generated by the script) {{velocity}} #set($columns = [ doc.title ,name ,type ,description ,content ,category ]) #set($columnsProperties = { name : { type : text, link : view, size : 10, filterable : true, sortable: true }, type : { type : list, link : view, size : 10, filterable : true, sortable: true }, description : { type : text, link : view, size : 10, filterable : true, sortable: true }, content : { type : text, link : view, size : 10, filterable : true, sortable: true }, category : { type : list, link : view, size : 10, filterable : true, sortable: true },_avatar : { type : none, link : none, html : true, sortable:false }, _images : { type : none, link : none, html : true, sortable:false }, _attachments : { type : none, link : none, html : true, sortable:false }, _actions : { type : none, link : none, html : true, sortable:false },doc.name : { type : text, link : view, size : 10, filterable : true, sortable: true }, doc.space : { type : text, link : view, size : 10, filterable : true, sortable: true }, doc.fullName : { type : text, link : view, size : 10, filterable : true, sortable: true }, doc.author : { type : text, link : view, size : 10, filterable : true, sortable: true }, doc.date : { type : text, link : view, size : 10, filterable : true, sortable: true }, doc.creator : { type : text, link : view, size : 10, filterable : true, sortable: true }, doc.creationDate : { type : text, link : view, size : 10, filterable : true, sortable: true }, doc.title : { type : text, link : view, size : 20, filterable : true, sortable: true } }) #set($options = { className:Panels.PanelClass, translationPrefix : panel.livetable., tagCloud : true, rowCount: 15, maxPages : 10, selectedColumn : doc.title, defaultOrder : asc }) #livetable(panel $columns $columnsProperties $options) {{/velocity}} You may have to hit ctrl + F5 to refresh the livetable. -- Thibaut On Wed, Oct 20, 2010 at 8:47 PM, Gerritjan Koekkoek gerritjankoekk...@gmail.com wrote: Hi I only have 2.5, deinstalled the old version In my situation It looks like it is only working on classes where the classes sit in the XWiki space and the documents holding the objects are in the same space? So it works with users, but not with panels.panelclass (or my own custom developed class). It does work brilliantly with tag-class Even get unexected goodies I do not think it's the generator script, but something with livetable? Gerritjan Op 20 okt 2010, om 01:05 heeft [Ricardo Rodriguez] eBioTIC. het volgende geschreven: Hi, Thibaut Camberlin wrote: Hi Gerritjan, Ludovic did that script not me I have to say! Did you test the same code on another version of XWiki ? If so what is the behaviour and the version ? Can you generate the livetable based on another class, say XWiki.XWikiUsers, what is the result ? It is working fine in a XE/XEM 2.4.1 system. Thibaut, you can check it here... http://ebiotic.net/bin/ICT/LiveTableUsers On Tue, Oct 19, 2010 at 7:48 PM, Gerritjan Koekkoek gerritjankoekk...@gmail.com wrote: Hi Thibaut, The script works like magic, very nice. Copy and Paste from the link created some formatting challenges, but after fixing the script generated actually created a live table; BUT... Still there are no records displayed? Like with the script I put in this question. The pages where the objects are stored are in a space that has access forbidden for unregistered users? Off course I run the generated script as a registered user (actually as a admin user I'm running this on xwiki 2.5 Gerritjan Op 18 okt 2010, om 23:11 heeft Thibaut Camberlin het volgende geschreven: Hi Gerritjan, You can use the livetable generator code snippet http://code.xwiki.org/xwiki/bin/view/Snippets/LivetableGeneratorSnippet Hope this helps, -- Thibaut On Sun, Oct 17, 2010 at 2:23 PM, Gerritjan Koekkoek gerritjankoekk...@gmail.com wrote: Hi, i'm trying to use LiveTable to improve our user experience. This is my code: #set($collist = [name, email , subject, status, question, answer, generalize
Re: [xwiki-users] conditional redirect after login
Hi, The script works fine; One modification required (#if($counter 0) == #if($counter == 0) But this only works when user login is on homepage, in our use cases there are also other pages where a guest can decide to login Is there a vm script that is always triggered when user does login? Gerritjan Op 24 okt 2010, om 01:52 heeft [Ricardo Rodriguez] eBioTIC. het volgende geschreven: Hi, Gerritjan Koekkoek wrote: Hi, We would like to, conditionally, redirect users who log in to their profile page. (in our case; XWiki.username) The condition is: User is not in ANY OTHER GROUP then XWikiAllGroup. How can I do this most elegantly, modifying as little as possible of the standard pages that come with a distribution of XWIKI This is not elegant, but I think it works: #set($counter = 0) #set($user = $xwiki.getUser()) #set($userContext = $context.user) #set($query = , BaseObject as obj, StringProperty as prop where doc.fullName = obj.name and obj.className='XWiki.XWikiGroups' and doc.fullName 'XWiki.XWikiGroupTemplate' and doc.fullName 'XWiki.XWikiAllGroup' order by doc.fullName asc) #set($results=$xwiki.searchDocuments($query)) p/ #foreach($item in $results) #if($user.isUserInGroup($item)) #set($counter = $counter+1) #end #end #if($counter 0) $response.sendRedirect($xwiki.getURL($userContext)) #end You could copy and paste in your WebHome or create an ad hoc document and use #includeInContext('YourSpace.YourDocument') to include it in your WebHome. 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 ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] conditional redirect after login
Hi, The condition is: After user has registered he/she only belongs to XWikiAllGroup (right?) If this condition is true; we would like to ask the user to 'tell us more about yourself' by re-directing to the profile 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 In the foreach you add 1 to the counter for each group the user is extra in? So if the counter 0 the user belongs to extra group so should NOT be redirected if the counter still == 0 then the redirect should happen? The login.vm seems indeed to be the place to be, I prefer to copy the vm into my skin, so I will override the login.vm on the disk Op 24 okt 2010, om 22:47 heeft [Ricardo Rodriguez] eBioTIC. het volgende geschreven: Hi, Gerritjan Koekkoek wrote: Hi, The script works fine; One modification required (#if($counter 0) == #if($counter == 0) I'm afraid I don't understand the condition yet! :-( Do you want that any user belonging to any group but XWikiAllGroup is redirected to his/her profile? Or should be only XWikAllGroup members whom must be redirected to his/her profile page? Just trying to understand why do you need == instead o . Thanks! But this only works when user login is on homepage, in our use cases there are also other pages where a guest can decide to login Is there a vm script that is always triggered when user does login? OK! I've not taken this into account! login.vm in your /templates folder seems to be the right place to tweak. Gerritjan Op 24 okt 2010, om 01:52 heeft [Ricardo Rodriguez] eBioTIC. het volgende geschreven: Hi, Gerritjan Koekkoek wrote: Hi, We would like to, conditionally, redirect users who log in to their profile page. (in our case; XWiki.username) The condition is: User is not in ANY OTHER GROUP then XWikiAllGroup. How can I do this most elegantly, modifying as little as possible of the standard pages that come with a distribution of XWIKI This is not elegant, but I think it works: #set($counter = 0) #set($user = $xwiki.getUser()) #set($userContext = $context.user) #set($query = , BaseObject as obj, StringProperty as prop where doc.fullName = obj.name and obj.className='XWiki.XWikiGroups' and doc.fullName 'XWiki.XWikiGroupTemplate' and doc.fullName 'XWiki.XWikiAllGroup' order by doc.fullName asc) #set($results=$xwiki.searchDocuments($query)) p/ #foreach($item in $results) #if($user.isUserInGroup($item)) #set($counter = $counter+1) #end #end #if($counter 0) $response.sendRedirect($xwiki.getURL($userContext)) #end You could copy and paste in your WebHome or create an ad hoc document and use #includeInContext('YourSpace.YourDocument') to include it in your WebHome. HTH, Ricardo Greetings! -- 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
Re: [xwiki-users] conditional redirect after login
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 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 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? 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 of class XWiki.XWikiGroups (obj.className='XWiki.XWikiGroups') but XWiki.XWikiGroupTemplate and XWiki.XWikiAllGroup In the foreach you add 1 to the counter for each group the user is extra in? Yes So if the counter 0 the user belongs to extra group so should NOT be redirected OK! I got the condition the other way round! if the counter still == 0 then the redirect should happen? OK. I understand now. The login.vm seems indeed to be the place to be, I prefer to copy the vm into my skin, so I will override the login.vm on the disk Op 24 okt 2010, om 22:47 heeft [Ricardo Rodriguez] eBioTIC. het volgende geschreven: Hi, Gerritjan Koekkoek wrote: Hi, The script works fine; One modification required (#if($counter 0) == #if($counter == 0) I'm afraid I don't understand the condition yet! :-( Do you want that any user belonging to any group but XWikiAllGroup is redirected to his/her profile? Or should be only XWikAllGroup members whom must be redirected to his/her profile page? Just trying to understand why do you need == instead o . Thanks! But this only works when user login is on homepage, in our use cases there are also other pages where a guest can decide to login Is there a vm script that is always triggered when user does login? OK! I've not taken this into account! login.vm in your /templates folder seems to be the right place to tweak. Gerritjan Op 24 okt 2010, om 01:52 heeft [Ricardo Rodriguez] eBioTIC. het volgende geschreven: Hi, Gerritjan Koekkoek wrote: Hi, We would like to, conditionally, redirect users who log in to their profile page. (in our case; XWiki.username) The condition is: User is not in ANY OTHER GROUP then XWikiAllGroup. How can I do this most elegantly, modifying as little as possible of the standard pages that come
Re: [xwiki-users] Import UserList stored in database to a XWikiUser document
I have developped a script XSLT that reads from a XML file. This script generates a groovy script that migrated our userdatabase into XWIKI The resulting groovy looked like this (I assume velocity will look alike from a structure perspective); vFullName = AnjevanderLugt userdoc = xwiki.getDocument(XWiki.+vFullName) userobj = userdoc.getObject(XWiki.XWikiUsers, true) userobj.set(first_name , Anje) userobj.set(last_name , van derLugt) userdoc.save() if (allGroup.getObject('XWiki.XWikiGroups', 'member', userdoc.fullName, false) == null) { gObj = allGroup.newObject('XWiki.XWikiGroups') gObj.set('member',userdoc.fullName) allGroup.save() } if (vAuthors.getObject('XWiki.XWikiGroups', 'member', userdoc.fullName, false) == null) { gObjAuthors = vAuthors.newObject('XWiki.XWikiGroups') gObjAuthors.set('member',userdoc.fullName) vAuthors.save() } What it does; It creates a document in XWIKI space On that document it creates a object of class XWIKI.XWIKIUSERS I also add the user to a few specific groups Note: these users are not yet added to XWIKIALLGROUP, there is a nice script on xwiki.org that does this Hope this helps. Gerritjan Op 26 okt 2010, om 12:11 heeft Bauyrzhan Matyganov het volgende geschreven: Hello dear friends and community I need your help with registering users. The question is: I have a database table wich contains a list of registered users to my website. Now, I want to import this list of users to my XWIKI application. But i dont know how to import it. I can select all user name and put them in an xwiki array or set. and then, i can write a script that will use a for loop to create users taking username from the array and putting a defualt pathword which users can change later. #set($userNames= {A,B,C,...}) #set($fields = []) ## #foreach($userName in $userNames) ## The first name field, no checking. #set($field = $userNames) #set($discard = $fields.add($field)) etc #createUser($fields, $request, $response, $doAfterRegistration) #end will it work? I am not proficient in XWiki and velocity programming, and I ask for your help. Any help will be appriciated. ___ 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] Strange remark 64 bits
Hi, We receive this remark from a visitor to www.cdlsworld.org (which runs on XWIKI 2.1.1, Hosted by Xwiki.com) Quote: I also just discovered that the site CDLSWorld.org does not work with 64 bits browser (at least with Internet Explorer) but only in 32 bits. Now Windows 7 and IE runs now in 64 bits. Now that more and more people are concerned, I suggest you inform the administrator. Unquote. We can not test it ourself, since we do not have Windows 64 bits? Has anybody experienced this complaint, I can not imagine that a 64 bit client would matter? If not, could it be a specific problem for our site? Gerritjan ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Strange remark 64 bits
We Will ask more details... Verstuurd vanaf mijn iPod Op 30 okt. 2010 om 23:03 heeft Sergiu Dumitriu ser...@xwiki.com het volgende geschreven: On 10/30/2010 08:59 PM, Gerritjan Koekkoek wrote: Hi, We receive this remark from a visitor to www.cdlsworld.org (which runs on XWIKI 2.1.1, Hosted by Xwiki.com) Quote: I also just discovered that the site CDLSWorld.org does not work with 64 bits browser (at least with Internet Explorer) but only in 32 bits. Now Windows 7 and IE runs now in 64 bits. Now that more and more people are concerned, I suggest you inform the administrator. Unquote. We can not test it ourself, since we do not have Windows 64 bits? Has anybody experienced this complaint, I can not imagine that a 64 bit client would matter? If not, could it be a specific problem for our site? If a browser is 32 or 64 bits should not matter at all. HTML is the same, so is JavaScript. Can you ask for more details from that visitor? What exactly doesn't work? By the way, looking at the site, there are failed to execute macro: include errors on http://www.cdlsworld.org/xwiki/bin/CdLSWorld/What+is+CdLS , probably only when browsing as a guest. You are right, only as guest, do you know hoe To solve? -- 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] Error on MapMacro
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 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.ASTSetDirective.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 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
Re: [xwiki-users] Error on MapMacro
Hi, I have to excuse myself on this error. When you restart Tomcat it works, there seems to be a known issue on importing macro's. THanks anyway Op 16 nov 2010, om 23:10 heeft Ricardo Rodriguez [eBioTIC.] het volgende geschreven: 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
[xwiki-users] Remove a translation
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
Re: [xwiki-users] Remove a translation
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. 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
Re: [xwiki-users] Remove SPAM registration
Hi Thx Marius, The script works; select distinct doc.fullName, prop.value from XWikiDocument as doc, BaseObject as obj, StringProperty as prop, IntegerProperty as acti where obj.className='XWiki.XWikiUsers' and obj.name=doc.fullName and prop.id.id=obj.id and prop.name='first_name' and prop.value is not empty and prop.value in ( select prop.value from StringProperty as prop2 where prop2.id.id=obj.id and prop2.name='last_name' and prop2.value=prop.value) and acti.id.id=obj.id and acti.name='active' and acti.value 1 )) This script will get all documents with object of class XWiki.XWikiUsers wher first-name = last name and Active is not true Typically these tend to be SPAM users A tip I got from Ludovic is to use it in a groovy script and put it in a scheduled task A improvement would be to add doc.created date to the query so users get enough time to validate the email sended. A improvement might also be to refine the class with some constraints scripting so spamming behaviour in user registration will get error like; this type of user information is used by Spammers also; please select other ... Anybody has done this ? Gerritjan Op 11 dec 2010, om 12:19 heeft Marius Dumitru Florea het volgende geschreven: Hi Gerritjan, On 12/10/2010 10:23 PM, Gerritjan Koekkoek wrote: Hi, I'm looking to build a script that will delete all registered users from our XWiki that did not complete the registration by replying to the email and look like SPAM registration (firstname = lastname) The property of the object of XWiki.XWikiUsers - active (of type boolean) is false Now this is my first attempt to HQL and i need some help #foreach($result in $xwiki.search( select distinct doc.fullName, prop.value from XWikiDocument as doc, BaseObject as obj, StringProperty as prop, BooleanProperty as acti where obj.className='XWiki.XWikiUsers' and obj.name=doc.fullName and prop.id.id=obj.id and prop.name='first_name' and prop.value is not empty and prop.value in ( select prop.value from StringProperty as prop2 where prop2.id.id=obj.id and prop2.name='last_name' and prop2.value=prop.value) and acti.id.id=obj.id and acti.name='active' and acti.value=false )) * $result.get(0) - $result.get(1) #end BooleanProperty is a wild guess of me looking at StringProperty as a example The query should look for users where first-name = last-name and active is false If possible I would like to check if the document creation date/time is more then 8 hours old I guess you've seen http://extensions.xwiki.org/xwiki/bin/view/Extension/Delete+Spam+Users but you missed http://extensions.xwiki.org/xwiki/bin/view/Extension/List+Inactive+Users . Shouldn't be hard to combine them. Hope this helps, Marius 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
[xwiki-users] Failed to execute the [html] macro
Hi I get this error (Failed to execute the [html] macro) if I change the following: #macro(ShowFlag $CountryCode) #set($ImageExtension = '.png') #set($CountryCodeFile = $CountryCode + $ImageExtension) {{html}} img src=../../download/CdLSAssociations/FlagAttachments/$CountryCodeFile alt=$CountryCode title=$CountryCode/ {{/html}} #end to this #macro(ShowFlag $CountryCode) #set($ImageExtension = '.png') #set($CountryCodeFile = $CountryCode + $ImageExtension) {{html clean=true}} div class=flags img src=../../download/CdLSAssociations/FlagAttachments/$CountryCodeFile alt=$CountryCode title=$CountryCode/ \div {{/html}} #end Why does adding the div class... and /div give this error? Gerritjan ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Failed to execute the [html] macro
Thx, The Inline versus Block makes sense. It fixes almost my problem The \div versus /div was a typo, not really creating the macro error. It just displayed the \div statement So now the macro seems to work with one strange problem... I call the macro in a foreach statement. It fails the first loop; displaying the same error! The second and all the other loops (32) present the result i want So I called the macro before I enter the loop once, now the loop woks fine. But the macro error on the initial call keeps coming. Is it because these empty-line block seperator So now my macro looks like; #macro(ShowFlag $CountryCode) #set($ImageExtension = '.png') #set($CountryCodeFile = $CountryCode + $ImageExtension) {{html clean=true}} div class=flags img src=../../download/CdLSAssociations/FlagAttachments/$CountryCodeFile alt=$CountryCode title=$CountryCode/ /div {{/html}} #end Note I only needed one preceeding empty-line. Marius suggested one-way-of-doing; what are other ways? Gerritjan Op 20 dec 2010, om 15:12 heeft Marius Dumitru Florea het volgende geschreven: Hi Gerritjan, On 12/20/2010 03:21 PM, Le Génie wrote: Hi, I don't know if it is the answer but in your copie of the code, you type \div in place of/div. Regards, Maxime 2010/12/20 Gerritjan Koekkoekgerritjankoekk...@gmail.com Hi I get this error (Failed to execute the [html] macro) if I change the following: #macro(ShowFlag $CountryCode) #set($ImageExtension = '.png') #set($CountryCodeFile = $CountryCode + $ImageExtension) {{html}} img src=../../download/CdLSAssociations/FlagAttachments/$CountryCodeFile alt=$CountryCode title=$CountryCode/ {{/html}} #end to this #macro(ShowFlag $CountryCode) #set($ImageExtension = '.png') #set($CountryCodeFile = $CountryCode + $ImageExtension) {{html clean=true}} clean=true by default so you don't need it. div class=flags img src=../../download/CdLSAssociations/FlagAttachments/$CountryCodeFile alt=$CountryCode title=$CountryCode/ \div {{/html}} #end Why does adding thediv class... and/div give this error? The HTML macro was generating in-line content (just an IMG tag) and now, due to your change, it generates block level content (DIV is a block level HTML element). You have to make sure the HTML macro is not called in an in-line context. One way to do this is to add an empty line before and after it (the empty line is a block separator in xwiki/2.0 syntax). Hope this helps, Marius 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 ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Failed to execute the [html] macro
Hi Thomas, This is good help, thank you. But still the fenomenon is the same; the first call to the macro fails with the same error message about inline THe code looks like this; {{include document=CdLSAssociations.Macros/}} {{velocity wiki=true}} #set($attachments = $doc.attachmentList) #ShowFlag(za 30) #foreach ($attach in $attachments) #set($tmpCountryCodeFileName = $attach.filename) #StripExtension($tmpCountryCodeFileName $FileNameWithoutExtension) #ShowFlag($FileNameWithoutExtension 30) #end {{/velocity}} The macro that gives the error is ShowFlag When I change the wiki=true for the macro to wiki=false the error dissappears and the output is like (pretty much what I expect, there seems to be no inline problem???; When i change false to true the first (south africa) will not display, but returns the error {{html clean=true}} div class=flags img src=../../download/CdLSAssociations/FlagAttachments/za.png alt=SOUTH AFRICA title=SOUTH AFRICA height=30 width=30/ /div {{/html}} {{html clean=true}} div class=flags img src=../../download/CdLSAssociations/FlagAttachments/au.png alt=AUSTRALIA title=AUSTRALIA height=30 width=30/ /div {{/html}} {{html clean=true}} div class=flags img src=../../download/CdLSAssociations/FlagAttachments/ar.png alt=ARGENTINA title=ARGENTINA height=30 width=30/ /div {{/html}} Op 21 dec 2010, om 16:23 heeft Thomas Mortagne het volgende geschreven: A good trick to see exactly what happen is tu put wiki=false in your velocity macro so that you see the exact result of velocity execution. On Mon, Dec 20, 2010 at 16:18, Gerritjan Koekkoek gerritjankoekk...@gmail.com wrote: Thx, The Inline versus Block makes sense. It fixes almost my problem The \div versus /div was a typo, not really creating the macro error. It just displayed the \div statement So now the macro seems to work with one strange problem... I call the macro in a foreach statement. It fails the first loop; displaying the same error! The second and all the other loops (32) present the result i want So I called the macro before I enter the loop once, now the loop woks fine. But the macro error on the initial call keeps coming. Is it because these empty-line block seperator So now my macro looks like; #macro(ShowFlag $CountryCode) #set($ImageExtension = '.png') #set($CountryCodeFile = $CountryCode + $ImageExtension) {{html clean=true}} div class=flags img src=../../download/CdLSAssociations/FlagAttachments/$CountryCodeFile alt=$CountryCode title=$CountryCode/ /div {{/html}} #end Note I only needed one preceeding empty-line. Marius suggested one-way-of-doing; what are other ways? Gerritjan Op 20 dec 2010, om 15:12 heeft Marius Dumitru Florea het volgende geschreven: Hi Gerritjan, On 12/20/2010 03:21 PM, Le Génie wrote: Hi, I don't know if it is the answer but in your copie of the code, you type \div in place of/div. Regards, Maxime 2010/12/20 Gerritjan Koekkoekgerritjankoekk...@gmail.com Hi I get this error (Failed to execute the [html] macro) if I change the following: #macro(ShowFlag $CountryCode) #set($ImageExtension = '.png') #set($CountryCodeFile = $CountryCode + $ImageExtension) {{html}} img src=../../download/CdLSAssociations/FlagAttachments/$CountryCodeFile alt=$CountryCode title=$CountryCode/ {{/html}} #end to this #macro(ShowFlag $CountryCode) #set($ImageExtension = '.png') #set($CountryCodeFile = $CountryCode + $ImageExtension) {{html clean=true}} clean=true by default so you don't need it. div class=flags img src=../../download/CdLSAssociations/FlagAttachments/$CountryCodeFile alt=$CountryCode title=$CountryCode/ \div {{/html}} #end Why does adding thediv class... and/div give this error? The HTML macro was generating in-line content (just an IMG tag) and now, due to your change, it generates block level content (DIV is a block level HTML element). You have to make sure the HTML macro is not called in an in-line context. One way to do this is to add an empty line before and after it (the empty line is a block separator in xwiki/2.0 syntax). Hope this helps, Marius 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 ___ 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
Re: [xwiki-users] Failed to execute the [html] macro
Hi Thomas, This solved the problem! But I do not really understand. {{Include...}} and {{velocity}} should be seperated by a empty line. But how did that create the error on the first call to macro only, all the following calls executed very well? Gerritjan Op 22 dec 2010, om 12:38 heeft Thomas Mortagne het volgende geschreven: On Wed, Dec 22, 2010 at 10:57, Gerritjan Koekkoek gerritjankoekk...@gmail.com wrote: Hi Thomas, This is good help, thank you. But still the fenomenon is the same; the first call to the macro fails with the same error message about inline THe code looks like this; {{include document=CdLSAssociations.Macros/}} {{velocity wiki=true}} When you do that you create a paragraph containing include and velocity macro, you should separate them with an empty line. #set($attachments = $doc.attachmentList) #ShowFlag(za 30) #foreach ($attach in $attachments) #set($tmpCountryCodeFileName = $attach.filename) #StripExtension($tmpCountryCodeFileName $FileNameWithoutExtension) #ShowFlag($FileNameWithoutExtension 30) #end {{/velocity}} The macro that gives the error is ShowFlag When I change the wiki=true for the macro to wiki=false the error dissappears and the output is like (pretty much what I expect, there seems to be no inline problem???; When i change false to true the first (south africa) will not display, but returns the error {{html clean=true}} div class=flags img src=../../download/CdLSAssociations/FlagAttachments/za.png alt=SOUTH AFRICA title=SOUTH AFRICA height=30 width=30/ /div {{/html}} {{html clean=true}} div class=flags img src=../../download/CdLSAssociations/FlagAttachments/au.png alt=AUSTRALIA title=AUSTRALIA height=30 width=30/ /div {{/html}} {{html clean=true}} div class=flags img src=../../download/CdLSAssociations/FlagAttachments/ar.png alt=ARGENTINA title=ARGENTINA height=30 width=30/ /div {{/html}} Op 21 dec 2010, om 16:23 heeft Thomas Mortagne het volgende geschreven: A good trick to see exactly what happen is tu put wiki=false in your velocity macro so that you see the exact result of velocity execution. On Mon, Dec 20, 2010 at 16:18, Gerritjan Koekkoek gerritjankoekk...@gmail.com wrote: Thx, The Inline versus Block makes sense. It fixes almost my problem The \div versus /div was a typo, not really creating the macro error. It just displayed the \div statement So now the macro seems to work with one strange problem... I call the macro in a foreach statement. It fails the first loop; displaying the same error! The second and all the other loops (32) present the result i want So I called the macro before I enter the loop once, now the loop woks fine. But the macro error on the initial call keeps coming. Is it because these empty-line block seperator So now my macro looks like; #macro(ShowFlag $CountryCode) #set($ImageExtension = '.png') #set($CountryCodeFile = $CountryCode + $ImageExtension) {{html clean=true}} div class=flags img src=../../download/CdLSAssociations/FlagAttachments/$CountryCodeFile alt=$CountryCode title=$CountryCode/ /div {{/html}} #end Note I only needed one preceeding empty-line. Marius suggested one-way-of-doing; what are other ways? Gerritjan Op 20 dec 2010, om 15:12 heeft Marius Dumitru Florea het volgende geschreven: Hi Gerritjan, On 12/20/2010 03:21 PM, Le Génie wrote: Hi, I don't know if it is the answer but in your copie of the code, you type \div in place of/div. Regards, Maxime 2010/12/20 Gerritjan Koekkoekgerritjankoekk...@gmail.com Hi I get this error (Failed to execute the [html] macro) if I change the following: #macro(ShowFlag $CountryCode) #set($ImageExtension = '.png') #set($CountryCodeFile = $CountryCode + $ImageExtension) {{html}} img src=../../download/CdLSAssociations/FlagAttachments/$CountryCodeFile alt=$CountryCode title=$CountryCode/ {{/html}} #end to this #macro(ShowFlag $CountryCode) #set($ImageExtension = '.png') #set($CountryCodeFile = $CountryCode + $ImageExtension) {{html clean=true}} clean=true by default so you don't need it. div class=flags img src=../../download/CdLSAssociations/FlagAttachments/$CountryCodeFile alt=$CountryCode title=$CountryCode/ \div {{/html}} #end Why does adding thediv class... and/div give this error? The HTML macro was generating in-line content (just an IMG tag) and now, due to your change, it generates block level content (DIV is a block level HTML element). You have to make sure the HTML macro is not called in an in-line context. One way to do this is to add an empty line before and after it (the empty line is a block separator in xwiki/2.0 syntax). Hope this helps, Marius Gerritjan ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo
[xwiki-users] Combining RSS feeds...
Hi, Within the CdLS community many related organizations publish their latest via RSS feeds. What is the best practise if we would like to achieve the following Register these feeds somewhere per language Create a combination of feeds per language and show it on a visitor accessible page like 10 latest news items with a little icon per source of the item off course clicking on the item would bring the visitor to a dynamic page showing the complete news item In that page the visitor could navigate to the real page on the web If I read the stuff on XWiki.org it looks like xwiki-watch is good for it; any alternatives? Is xwiki-watch multilanguage? can you add xwiki-watch to a existing xwiki installation version 2.7 or higher Gerritjan ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Can XWiki receive mail ?
Although the quote of Jamie Zawinski suggest 'bloated' software i'm not sure if that is the right direction. Would it not be much nicer if you just can integrate with a existing mail-service. Both as a client or as a workflow extension (like in Enterprise Content Management) A few services like; show list of mails in a box, show details of mail, store a specific mail as a XWiki document with metadata about mail Many mail servers already offer RSS feeds of mail boxes, many offer a webpage interface. A XWiki iFrame might be a very lightweight integration already. If you could add a few parameters to the iframe you could supply some identity and access data to dynamically log-in the service Gerritjan Op 2 mrt 2011, om 14:02 heeft Kevin P. Foote het volgende geschreven: The Apache James Project[1] could fit such a request. I've seen it integrated into a few large scale frameworks before. [1] http://james.apache.org/ -- thanks kevin.foote On Wed, 2 Mar 2011, Paul Libbrecht wrote: - I would be very interested to such a feature but I note that it is not a simple thing. - - The biggest importance of receiving mails is to respond to some notifications of actions that were originally created on the XWiki, to my feelings. This requires, for example, that a table is properly made to associate the responded mail and the action the notification is about. - - Another issue is to attribute the mail... sooo often are people using a different email! - - I note that such features as Drupal's MailHandler could be an example; they are very fragile. - - One of the worst examples is jira's mail receiving facilities: you can respond to jira notifications if this is enabled. This fails really easily and not well visibly when a slight change occurs! - - XWiki with its flexible programming might make it possible to make it better case by case. Let's hope. - - paul - - - Le 2 mars 2011 à 06:43, Caleb James DeLisle a écrit : - - Every program attempts to expand until it can read mail. Those programs which cannot so expand are - replaced by ones which can. Jamie Zawinski - - XWiki doesn't have any means of receiving mail at the moment, the mail sending facility is an - extension which is bundled by default and I see no reason why an extension for receiving mail could - not be implemented, it just needs to be written. - - Caleb - - On 03/02/2011 12:32 AM, Gérard Turmel wrote: - Hello - - I would like register somewhere in XWiki, the important mails of my mailbox. - For instance to save mail maybe with some attachements in a specific Space. - From my mail reader, just transfer the mail in xwiki mail adress and automatically - the mail would be save in a specific area. - - The idea under this function is for instance to manage a project and to maintain - a list of importants mail about the project (with attachements). - - Is there any solution to manage this functionality ? - - I am under XWiki Enterprise 3.0-milestone-2.34501 - - Thanks a lot. - - - - - - ** - Ce message et toutes les pieces jointes sont confidentiels et etablis à l'intention exclusive de ses destinataires. - Toute utilisation ou diffusion non autorisee est interdite. - Tout message electronique est susceptible d'alteration. - SISTEER decline toute responsabilite au titre de ce message s'il a ete altere, deforme ou falsifie. - Si vous n'etes pas le destinataire de ce message, merci de le detruire et d'informer l'expediteur. - ** - This message and any attachments are confidential and intended solely for the addressee(s). - Any unauthorised use or dissemination is prohibited. - E-mails are susceptible to alteration. - SISTEER shall not be liable for the message if altered, changed or falsified. - If you are not the intended addressee of this message, please cancel it immediately and inform the sender. - ** - - ___ - 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
[xwiki-users] Objects of registered users stored in XWiki-space
Hi, By default users that register on a privat XWiki will be added as a document with a XWiki.XWikiUsers object in the XWiki space Also they become automatic member of the group XWiki.XWikiAllGroup. Is it possible to have all registered users (except the default system-usewrs like admin) in a seperate space? If you do so, will this cause problems when upgrading xwiki, which would be my main driver to consider this. If people think this could or should be a best practise... My opinion is that the XWiki space becomes cluttered with users and also the requirement to have read access on many important system objects in XWiki space can conflict with some groups security policy on users and peoples privacy Would it be difficult to migrate users to a different space and keep all the group memberships and authorizations and passwords intact? Gerritjan ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Video macro in 2.7.1
We've upgraded our wiki from 2.1.1 to 2.7.1 The video macro stops working? I've a url to a vimeo video Workaround is a {{Html}} macro with the embedding code from vimeo Any reason why video macro stops working? gerritjan ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Video macro in 2.7.1
Hi Thomas Yes, it's that macro! Op 19 mrt 2011, om 11:33 heeft Thomas Mortagne het volgende geschreven: Hi gerritjan, Are you talking about http://extensions.xwiki.org/xwiki/bin/view/Extension/Video+Macro ? If that's the one I can see one error in it at least: the two probably supposedly standalone velocity macros are not separated by an empty line which make them inline and make the generated html macro not supporting non inline html content (I guess that's what object is, i don't know it very well). But adding empty line between the two velocity blocks did not help. I do not get error like not a inline macro! It does not show anything? (no error) If that works would be great if you could package it back and put it on http://extensions.xwiki.org/xwiki/bin/view/Extension/Video+Macro as version 1.2 for example. On Sat, Mar 19, 2011 at 09:09, Gerritjan Koekkoek gerritjankoekk...@gmail.com wrote: We've upgraded our wiki from 2.1.1 to 2.7.1 The video macro stops working? I've a url to a vimeo video Workaround is a {{Html}} macro with the embedding code from vimeo Any reason why video macro stops working? gerritjan ___ 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
[xwiki-users] Livetable dynamic column
Hi, I have the following livetable...(see below) (working perfectly!) My challenge is the following; the column countryCode is a string with a comma seperated list with country codes (1 to many) I've graphical flags representing a country and several macro's to display the flags when you feed them a string with countrycodes; #ArrayOfCounties($vCountryCodeString $vCountryCodeList) = translates a comma seperated string into a array #ShowAllFlags($vCountryCodeList) = shows all the flags of countryCodes in the array What is the best way to dynamically show (in the display of the livetable) the flags of the countries represented in the countryCode collumn? #set($columns = [countryName ,languageText ,countryCode, _actions ]) #set($columnsProperties = { countryName : { type : text, link : view, size : 10, filterable : true, sortable: true }, language : { type : text, link : view, size : 10, filterable : false, sortable: false }, countryCode : { type : text, link : view, size : 10, filterable : false, sortable: false }, languageText : { type : text, link : view, size : 10, filterable : true, sortable: true }, _avatar : { type : none, link : none, html : true, sortable:false }, _images : { type : none, link : none, html : true, sortable:false }, _attachments : { type : none, link : none, html : true, sortable:false }, _actions : { type : none, link : none, html : true, sortable:false }, doc.name : { type : text, link : view, size : 10, filterable : true, sortable: true }, doc.space : { type : text, link : view, size : 10, filterable : true, sortable: true }, doc.fullName : { type : text, link : view, size : 10, filterable : true, sortable: true }, doc.author : { type : text, link : view, size : 10, filterable : true, sortable: true }, doc.date : { type : text, link : view, size : 10, filterable : true, sortable: true }, doc.creator : { type : text, link : view, size : 10, filterable : true, sortable: true }, doc.creationDate : { type : text, link : view, size : 10, filterable : true, sortable: true }, doc.title : { type : text, link : view, size : 20, filterable : true, sortable: true }, _actions : {actions: [edit,delete], displayName : Change} }) #set($options = { className:CdLSAssociations.CdLS_ATD_CountryClass, translationPrefix : cdls_atd_country.livetable., tagCloud : true, rowCount: 20, maxPages : 10, selectedColumn : doc.title, defaultOrder : asc }) #livetable(cdls_atd_country $columns $columnsProperties $options) ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] tooltip setting in class editor
Hi in version 2.7 there seems no longer a tooltip per attribute. I can remember in older version (1.7?) there was such a setting per attribute. What is the best practise to configure internationalized tooltips for forms created with the class editor in relation with the forms generator? Gerritjan ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] textarea in firefox4
Hi, When I go to xwikipages containing inline form with textarea fields I get spinningwheels in each of these field, but no editor Same with some javascript driven imageslideshows Is this a firefox4 problem. (it used to work in firefox 3.x) Same pages work fine in google chrome Gerritjan ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] sorting livetable
Hi, What is the best way to have a livetable sorted when opened (the default sort) We would like to sort on a attribute that is not in the class/object the livetable is designed on. We have a livetable on WXikiUsers that will show all users It is now sorted on firstName We prefer a default sort on date/time of creation (registration moment) of the users so that latest registrations are on top of the list (first page) This collumn is not in the table and should not be in the table since it is not seen as relevant for the majority of records After the default sort (when you land on the page) the user can re-sort based on the columns Gerritjan ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] User Interface
Hi Andreas, This was very helpful. Indeed it requires including the document in each page. (except for pages that are object based; like Blog) then it only requires the Sheet/Template document I wonder if there is not a Sheet/Template like document where you could include this thx Gerritjan Op 10 mei 2011, om 22:29 heeft Andreas Hahn het volgende geschreven: Hi Gerrit, i can give you a partial anwer to your questions as I have also been struggling to adapt look feel of one of my sites. I tried as much as possible not to change the code in the VM templates as this requires access to the server and makes it harder to document all the places and survive a version upgrade. Basically I've created a page containing a velocity macro that contains all the restrictions. This page needs to be included in all pages where the restrictions shall apply. The restrictions are just css selectors to suppress visibility: {{velocity}} #if (!$hasEdit) {{html clean=false}} style #hierarchy {display:none;} #document-title {display:none;} #mainmenu .leftmenu {display: none;} #contentmenu {display: none;} /style {{/html}} #set ($docextras= []) #end {{/velocity}} No hierarchy, document-title, e.t.c. if you have no editing rights , e.g. you are not logged in. However you need to include the page on all pages where the restricitons shall apply: {{include document=Main.Restrictions/}} You might have a look at the results at http://shept.org enjoy Andreas Am 10.05.2011 13:27, schrieb Gerritjan Koekkoek: Hi, I'm looking into 'how to modify parts of the userinterface' of XWiki for a specific site/application We would like to achieve this with minimal impact/effort and stick to the colibri-skin as close as possible the following interface elements are of interest to us; The MENU-Bar's; both on the top of the screen as well as the one on top of a document, The Box that contains Comments, Attachments, History and Information The top of the document that shows Document navigation hierarchy, the document name or title the last modified and the summary of Comments, Attachments With regard to menubar; We would like to be able to add, show or hide elements depending on the Role and rights of the user AND the nature of the document Role; If user is a guest, author, moderator (typical roles you find in a Content Management System Rights; Has Edit Rights Document nature; if document is only velocity (like livetables, scripted page etc..) - maybe this should be managed by rights? The Box that... Document nature; if a document is scripted we would like to hide the box, so only real content pages should show that box The top of a document Document nature; If document nature is script; title, last modified by and summary of box makes no sense My question is what would be the best place(s) to do these things? What is a good source of information to learn about these elements and best practises to learn to modify them (which API functions do work on these elements) The VM template menuview seems to contain the structure of the menubars; is this the place to influence the behaviour It also contains #xwikitopmenuentrystart, #submenuitem etc.. where are these things defined (and/or documented)? thx 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
[xwiki-users] Parent icon does not show
Hi, We've recentlly been upgraded to XWiki 2.7.1... But I notice it does not quite look like the clean installed XWiki. Even when I undo all the skin changes, and use the default xwiki skin the userinterface is somewhat a mixed bag example (and seen as a problem by our users) When you edit a document there is no icon to see the parent, let alone change the parent in a userfriendly way Also the translations seem to be corrupted; The edit menu shows a entry: core.menu.edit.visual Can this be corrected? And how? Gerritjan ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Panels with xwiki syntax 2.0
Hi, When I set a panel to xwiki syntax 2.0 I am not able to have a number of links (in a navigation panel) seperated by new lines (or linefeeds) the syntax I use is; {{velocity filter=none}} {{html clean=false wiki=true}} #panelheader('PersonalServices') [[space.document]] [[space.document]] [[space.document]] #panelfooter() {{/html}} {{/velocity}} I've tried adding extra line feed. Add \\ after each line When I change panel to syntax 1.0 it works fine Gerritjan ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Panels with xwiki syntax 2.0
Hi, I know this will work, but in this case I try to avoud the list since it will ident the links to the right. Visually I do not like that. (i could, ofcourse, use some css to correct the ident; but that makes it really overcomplicated Are you suggesting linefeeds will not work in a panel? The syntax I used works in a 'normal' document with XWiki 2.0 syntax? Gerritjan Op 23 mei 2011, om 11:05 heeft Vincent Massol het volgende geschreven: Hi, On May 23, 2011, at 10:58 AM, Gerritjan Koekkoek wrote: Hi, When I set a panel to xwiki syntax 2.0 I am not able to have a number of links (in a navigation panel) seperated by new lines (or linefeeds) the syntax I use is; {{velocity filter=none}} {{html clean=false wiki=true}} #panelheader('PersonalServices') [[space.document]] [[space.document]] [[space.document]] #panelfooter() {{/html}} {{/velocity}} You should use a list instead. * [[xxx...]] * [[xxx...]] * [[xxx...]] I've tried adding extra line feed. Add \\ after each line When I change panel to syntax 1.0 it works fine Gerritjan Thanks -Vincent ___ 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] Panels with xwiki syntax 2.0
Hi, Op 23 mei 2011, om 13:14 heeft Vincent Massol het volgende geschreven: On May 23, 2011, at 1:10 PM, Gerritjan Koekkoek wrote: Hi, I know this will work, but in this case I try to avoud the list since it will ident the links to the right. Visually I do not like that. (i could, ofcourse, use some css to correct the ident; but that makes it really overcomplicated Are you suggesting linefeeds will not work in a panel? I don't know, you can check this easily with firebug for example. This is what is generated with xwiki2.0 syntax (inside a panel) div class=xwikipanelcontents img width=100% alt=2.jpg src=http://cdls-nl.org/xwiki/bin/download/Photos/CdLSWorldbanners/2.jpg; span class=wikilink a href=/xwiki/bin/view/BlogNL/Cdls+PersonenPersoonlijke verhalen/a /span span class=wikilink a href=/xwiki/bin/view/BlogNL/KontaktKom in kontakt/a /span span class=wikilink a href=/xwiki/bin/view/BlogNL/InformatieNieuwe Informatie/a /span /div I found the problem; the {{html clean=false wiki=true}} filters the linefeeds by putting {{\html}} just before the XWiki 2.0 syntax of the links and repeating {{html clean=false wiki=true}} just before #panelfooter() I was able to have the links in panel with XWiki 2.0 without the list trick; The syntax I used works in a 'normal' document with XWiki 2.0 syntax? You could try it to verify by yourself ;) Thx, I had done that, but realized it was without the {{velocity}} and {{html}} enclosing (pure xwiki syntax) Thanks -Vincent Gerritjan Op 23 mei 2011, om 11:05 heeft Vincent Massol het volgende geschreven: Hi, On May 23, 2011, at 10:58 AM, Gerritjan Koekkoek wrote: Hi, When I set a panel to xwiki syntax 2.0 I am not able to have a number of links (in a navigation panel) seperated by new lines (or linefeeds) the syntax I use is; {{velocity filter=none}} {{html clean=false wiki=true}} #panelheader('PersonalServices') [[space.document]] [[space.document]] [[space.document]] #panelfooter() {{/html}} {{/velocity}} You should use a list instead. * [[xxx...]] * [[xxx...]] * [[xxx...]] I've tried adding extra line feed. Add \\ after each line When I change panel to syntax 1.0 it works fine Gerritjan Thanks -Vincent ___ 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] RSS feeds
Hi, In our XWiki setup we are very much using RSS feeds generated by XWiki When you capture such a feed in a news reader it shows : Title by Author version version edited by editor in date time Now is the Title informative for outsiders, the other (metadata) not... The BLOG RSS feeds are much more informative Where can I find information on how to setup the content presented in de RSS feed, Pictures would also be very nice Which XWikI page is holding the code used for feeds about page-changes, which page is holding the code for the BLOG feeds? Gerritjan ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Class with hibernate query
Hi (XWiki 2.7.2) I've defined a class with a property defined as DatabaseList It's a multi select The Hibernate query is: select ata.filename from XWikiAttachment as ata, XWikiDocument as doc where doc.fullName ='CdLSAssociations.FlagAttachments' and doc.id = ata.docId order by ata.filename This works fine, when I create a new object of this class I can select multiple fileNames My questions; I would like to strip the filename extension from the ata.filename (ar.png = ar) I was trying a substr(ata.filename,1,2) does not work How do I do this? Second, I wonder if it is possible to add a second collumn to the query that uses a translation table like select ata.filename, $msg.get(ata.filename) as translatedName from XWikiAttachment as ata, XWikiDocument as doc where doc.fullName ='CdLSAssociations.FlagAttachments' and doc.id = ata.docId order by translatedName and use in the class property defenition the ID Field name and Value Field Name Any help is highly appreciated Gerritjan ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] export pages with object XWikiuser
Hi Is there a tool/script that allows for exporting only pages from space XWiki with object XWikiuser I know the export tool can export pages by selecting all or checkmark individual pages, but we have 500 users, this becomes a drag Nice to have if it could also take group-object and which user is in what group So we have a whole identity and access export Gerritjan ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] XWiki used in South Korea?
Hi, Is there somebody using the south-korean language for XWiki? We need it for a international website, and we wonder how mature the xwiki internationalization is? What do we need to consider in our configuration if we want to use languages like japanese, korean, arabic (If existing) Database configuartion, etcetera... Gerritjan ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Evaluate request parameters
Hi, I would like to conditional show pages based on request parameter But i'm struggling with the fact if there is not a request parameter {{velocity}} #if($request.cntryCode != es) {{include document=Sandbox.TryCr/}} #else {{include document=Sandbox.TryEs/}} #end {{/velocity}} So if the request parameter cntryCode is not es (so anything else) show first page TryCr otherwise show page TryEs But what if no parameter is givven; then I would like to show TryEs (assume parameter was es Any suggestions second question; how can i best use the parameter to avoid extensive coding; Instead of #if($request.cntryCode != cr) {{include document=Sandbox.Trycr/}} #elseif($request.cntryCode != hn) {{include document=Sandbox.Tryhn/}} #elseif($request.cntryCode != el) {{include document=Sandbox.Tryel/}} #elseif($request.cntryCode != ng) {{include document=Sandbox.Tryng/}} #else {{include document=Sandbox.TryEs/}} #end I would only think i need to concatenate the parameter to the end of the documentname Tryxx to get the good document Hope somebody can help me Gerritjan ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Include website as xwiki page
A question to this; maybe a bit to HTML /CSS and not really something for XWiki? If you include pages with iframe can you override CSS settings from within XWiki? We have a website included and would like to avoid double LOGO's (one on XWiki and one on the included site) So if I could add a CSS setting to my XWiki page that would actually override stuff within the iframe container that would be great Gerritjan Op 21 jul. 2011, om 13:25 heeft Vincenzo Brancato het volgende geschreven: -Ursprüngliche Nachricht- Von: guilla...@xwiki.com [mailto:users-boun...@xwiki.org] Im Auftrag von Guillaume Lerouge Gesendet: Donnerstag, 21. Juli 2011 11:55 An: XWiki Users Betreff: Re: [xwiki-users] Include website as xwiki page Hi Vince, have you tried an iframe embedded in the html macro ? {{html}} iframe src=my site / {{/html}} This worked fine for me. Thx very much! Here my code: {{html}} iframe src=http://www.google.com; width=100% height=100%/iframe {{/html}} Best regards Vince I think that would fit your needs. Guillaume On Thu, Jul 21, 2011 at 11:42, Vincenzo Brancato v.branc...@procitec.dewrote: Hello, is there a possibility to include a website directly as a wiki page, so that clicking on a link, that redirects you to an external (www) page, loads the website directly as a frame in my xwiki instance. At the moment I am only able to create links that load the external site in a new tab or page. Best regards Vince Mit freundlichen Grüßen Vincenzo Brancato -Systems Integration- PROCITEC GmbH Rastatter Strasse 41 D-75179 Pforzheim Fon: +49 (0) 7231 15561-0 Fax: +49 (0) 7231 15561-11 Mailto: v.branc...@procitec.de Mannheim HRB 504702 Geschäftsführer: Dipl.-Ing. (FH) Michael Brenk This e-mail may contain confidential and/or legally protected information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. Thank you! ___ 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