[xwiki-users] [myxwiki] XWiki Enterprise 3.0-milestone-1 Upgrade
Hi XWiki lovers, Hi everyone, myxwiki.org has been upgraded to XE 3.0-milestone-1. If you own a wiki hosted there you should have a look at the release notes for this version at: http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ We also strongly recommend an upgrade to the latest wiki version. To upgrade you must download XE 3.0-milestone-1 XWiki XAR from : http://www.xwiki.org/xwiki/bin/view/Main/Download And follow the upgrade guide available at : http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HUpgradingwikidocuments To be notified of the myxwiki.org server upgrade you can follow myxwiki on twitter: http://twitter.com/myxwiki Thanks, -XWiki Community ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] livetable + _actions column
Hi, I'm using livetable component with the _actions column and noticed a peculiar behavior depending on the user rights. When user doesn't have admin right for the space which contain the table and displaying objects the _actions column disappears from the table but still user is able to edit/delete the pages displayed by the livetable ( using the xwiki menus ). When I grant him admin right the column appears. My code is: #set($columns = ["a","b","c","d","_actions"]) #set($columnsProperties = { "a" : { "displayName" : "A", "type" : "text" }, "b" : { "type" : "text", "link" : "view", "html" : "true", "sortable":true, "displayName" : "B" }, "c" : { "displayName" : "C", "type" : "text" }, "d" : { "displayName" : "D", "type" : "text" }, "_actions" : {"actions": ["edit","delete"], "displayName" : "E"} }) #set($options = { "resultPage":"IPR.IPREntryClassJSON", "rowCount": 20 }) #livetable("userdirectory1" $columns $columnsProperties $options) In my opinion, there is an inconsistency in the livetable behavior. I can edit/delete my document manually but livetable prevents from displaying the action column at the same time with the same privileges for the user. Any thoughts on that ? Thanks, Piotr ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] livetable + _actions column
Hi Piotr, On Thu, Feb 3, 2011 at 13:30, Piotr Dziubecki wrote: > Hi, > > I'm using livetable component with the _actions column and noticed a > peculiar behavior depending on the user > rights. > > When user doesn't have admin right for the space which contain the table > and displaying objects the _actions > column disappears from the table but still user is able to edit/delete the > pages displayed by the livetable > ( using the xwiki menus ). > > When I grant him admin right the column appears. > > My code is: > > > #set($columns = ["a","b","c","d","_actions"]) > #set($columnsProperties = { > > "a" : { "displayName" : "A", "type" : "text" }, > "b" : { "type" : "text", "link" : "view", "html" : "true", > "sortable":true, "displayName" : "B" }, > "c" : { "displayName" : "C", "type" : "text" }, > "d" : { "displayName" : "D", "type" : "text" }, > "_actions" : {"actions": ["edit","delete"], "displayName" : "E"} > }) > #set($options = { >"resultPage":"IPR.IPREntryClassJSON", >"rowCount": 20 > }) > #livetable("userdirectory1" $columns $columnsProperties $options) > > > In my opinion, there is an inconsistency in the livetable behavior. I can > edit/delete my document manually > but livetable prevents from displaying the action column at the same time > with the same privileges for the > user. > > Any thoughts on that ? > I think that unfortunately, the current behavior is hardcoded in the livetable (only show the "actions" column for admin users). A dev might be able to look at it and fix it. Please open a JIRA to report this. Guillaume > Thanks, > Piotr > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] livetable + _actions column
Hi Guillaume, W dniu 11-02-03 13:37, Guillaume Lerouge wrote: > Hi Piotr, > > On Thu, Feb 3, 2011 at 13:30, Piotr Dziubecki wrote: > >> Hi, >> >> I'm using livetable component with the _actions column and noticed a >> peculiar behavior depending on the user >> rights. >> >> When user doesn't have admin right for the space which contain the table >> and displaying objects the _actions >> column disappears from the table but still user is able to edit/delete the >> pages displayed by the livetable >> ( using the xwiki menus ). >> >> When I grant him admin right the column appears. >> >> My code is: >> >> >> #set($columns = ["a","b","c","d","_actions"]) >> #set($columnsProperties = { >> >> "a" : { "displayName" : "A", "type" : "text" }, >> "b" : { "type" : "text", "link" : "view", "html" : "true", >> "sortable":true, "displayName" : "B" }, >> "c" : { "displayName" : "C", "type" : "text" }, >> "d" : { "displayName" : "D", "type" : "text" }, >>"_actions" : {"actions": ["edit","delete"], "displayName" : "E"} >> }) >> #set($options = { >> "resultPage":"IPR.IPREntryClassJSON", >> "rowCount": 20 >> }) >> #livetable("userdirectory1" $columns $columnsProperties $options) >> >> >> In my opinion, there is an inconsistency in the livetable behavior. I can >> edit/delete my document manually >> but livetable prevents from displaying the action column at the same time >> with the same privileges for the >> user. >> >> Any thoughts on that ? >> > > I think that unfortunately, the current behavior is hardcoded in the > livetable (only show the "actions" column for admin users). A dev might be > able to look at it and fix it. Please open a JIRA to report this. > > Guillaume > it's done: http://jira.xwiki.org/jira/browse/XWIKI-5948 Cheers, Piotr ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] How to access util binding from velocity
Hi all, Is there a way I can configure my setup to allow me to access the util binding from within Velocity? I've searched around in the documentation and can't seem to find it. I really just want to create a map - and whilst I can do it in Groovy, it'll be easier for users if they can do it using velocity. Any advice? Cheers, Adam ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Users created through admin options have dual authentication when LDAP is on
On Wed, Feb 2, 2011 at 19:28, Jerome Velociter wrote: > Hi Juan, > > If you really want to create users prior to their first login via LDAP > authentication, creating the user from the administration is not > enough. You must add an XWiki.LDAPProfileClass object to the user > document, which precises the LDAP uid of the user. > If you don't do that, a new user will be created when the person > connects for the first time. This is for example what happened with > your users jssmith_1, etc. This is because without this object LDAP authenticator has no way to know that it's supposed to overwrite this perfectly valid XWiki user so it create a new one to be safe. > > I have contributed an extension to allow automatic LDAP > synchronization (at night for example), so admins that want to give > access rights to their LDAP users don't have to create them manually. > You can find it here > http://extensions.xwiki.org/xwiki/bin/view/Extension/LDAP+Tools > > The synchronization feature only works starting with XWiki Enterprise > 3.0 (not released yet). Though I can provide a built jar to drop in > for 2.7 if anyone is interested. > > Jerome. > > On Wed, Feb 2, 2011 at 12:36 AM, Juan Carlos Vizueta > wrote: >> Hi, >> >> I added my LDAP users to Xwiki manually one by one through the Xwiki >> Administration form, I did that so I can add them to their corresponding >> groups so they have their correct user rights since their first login. >> >> When creating a new user through the form, the password is mandatory, so I >> copy/pasted the user in the password field (e.g.: user jsmith and password >> jsmith as well). >> >> Then when I asked the user to login, she could login correctly, but then I >> thought maybe I should try to login using the password I set on the form, >> and oh surprise, it logged in too!, is this the correct behavior or did I do >> something wrong here? >> >> I need users to login only when entering their ldap password, not their >> xwiki password. >> >> Thanks in advance. >> >> JC >> ___ >> 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] How to access util binding from velocity
Hi Adam, On 02/03/2011 02:56 PM, xwikiad...@lazypapertiger.org wrote: > Hi all, > > Is there a way I can configure my setup to allow me to access the util > binding from within Velocity? I've searched around in the documentation and > can't seem to find it. > > I really just want to create a map - and whilst I can do it in Groovy, it'll > be easier for users if they can do it using velocity. Do you really need a utility class? I just tried this: {{velocity}} #set($map = {'name':'marius'}) $map.name {{/velocity}} Hope this helps, Marius > > Any advice? > > Cheers, > > Adam > > > > ___ > 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] How to access util binding from velocity
> > Do you really need a utility class? I just tried this: Not explicitly no. > {{velocity}} > #set($map = {'name':'marius'}) > $map.name > {{/velocity}} The problem is that I don't seem to be able to update a map created that way. If I try: {{velocity}} #set($map = {'name':'marius'}) $map.put('myname','adam') $map.name {{/velocity}} It fails. Whereas if I use a map from elsewhere (xcontext for example) and pass it in it seems to work just fine. I may be missing something obvious, that happens a lot! Cheers, Adam ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] To Change the default design for a specific wiki in a wiki farm?
Hello, I need to build a wiki with a different design, like some sites we can see at: - http://www.xwiki.org/xwiki/bin/view/References/ http://www.xwiki.org/xwiki/bin/view/References/ So I would like to know if it's possible to do it when we are running in a xwiki farm without to change the design from others existing wikis. If yes, do I need just create and use a new skin for this wiki or need to modify some templates (*.vm) or another thing ? -- View this message in context: http://xwiki.475771.n2.nabble.com/To-Change-the-default-design-for-a-specific-wiki-in-a-wiki-farm-tp5988935p5988935.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] To Change the default design for a specific wiki in a wiki farm?
On Feb 3, 2011, at 3:00 PM, Pidoux75 wrote: > > Hello, > > I need to build a wiki with a different design, like some sites we can see > at: > > - http://www.xwiki.org/xwiki/bin/view/References/ > http://www.xwiki.org/xwiki/bin/view/References/ > > So I would like to know if it's possible to do it when we are running in a > xwiki farm without to change the design from others existing wikis. yes > > If yes, do I need just create and use a new skin for this wiki or need to > modify some templates (*.vm) or another thing ? new skin See http://platform.xwiki.org/xwiki/bin/view/DevGuide/Skins Thanks -Vincent ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] How to access util binding from velocity
On 02/03/2011 03:45 PM, xwikiad...@lazypapertiger.org wrote: >> >> Do you really need a utility class? I just tried this: > > Not explicitly no. > >> {{velocity}} >> #set($map = {'name':'marius'}) >> $map.name >> {{/velocity}} > > The problem is that I don't seem to be able to update a > map created that way. If I try: > > {{velocity}} > #set($map = {'name':'marius'}) > $map.put('myname','adam') Do you want to overwrite the 'name' key or add a new key 'myname'? > $map.name > {{/velocity}} > > It fails. Whereas if I use a map from elsewhere (xcontext for example) and > pass it in it seems to work just fine. What do you mean by "fail"? If I try: {{velocity}} #set($map = {'name':'marius'}) $map.put('name','adam') $map.name and $map.myname {{/velocity}} I get: marius adam and $map.myname which is normal because $map.myname is null (was not set). If I try: {{velocity}} #set($map = {'name':'marius'}) $map.put('myname','adam') $map.name and $map.myname {{/velocity}} I get: $map.put('myname','adam') marius and adam which is normal because the put method returns the previous value mapped to the specified key, which is null in our case. It's better to write: #set($discard = $map.put('myname','adam')) Hope this helps, Marius > > I may be missing something obvious, that happens a lot! > > Cheers, > > Adam > > > > ___ > 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] How to access util binding from velocity
>If I try: > > {{velocity}} > #set($map = {'name':'marius'}) > $map.put('myname','adam') > $map.name and $map.myname > {{/velocity}} > > I get: > > $map.put('myname','adam') > marius and adam > > which is normal because the put method returns the previous value mapped > to the specified key, which is null in our case. The penny drops. When debugging velocity script I tend to dab $values all over the place and look for where they show up on the page. I hadn't considered this scenario. Dumping the map does indeed show that the entries are in there. That's fantastic - thanks for your assistance. Cheers, Adam ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] How to access util binding from velocity
On 02/03/2011 01:56 PM, xwikiad...@lazypapertiger.org wrote: > Hi all, > > Is there a way I can configure my setup to allow me to access the util > binding from within Velocity? I've searched around in the documentation and > can't seem to find it. If by util you mean com.xpn.xwiki.api.Util, then that's $util. > I really just want to create a map - and whilst I can do it in Groovy, it'll > be easier for users if they can do it using velocity. > > Any advice? > > Cheers, > > Adam -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Create document from many template
Hi, Sorry for digging up this thread, but I'm facing the same problem. I want to have a template page that allows the creation of other pages. For example, I want to have a template page (ResearcherTemplate) that allow the creation of Researchers. What I tried to do was create a new page and add the following code: $response.sendRedirect($xwiki.getURL($request.documentName, 'inline', "template=${request.ResearcherTemplate}")) but when I press "Save and View" I get the same error than Roberto: "This document already exist" Thanks in advance. Best regards, Luís Braga -- View this message in context: http://xwiki.475771.n2.nabble.com/Create-document-from-many-template-tp2424398p5989981.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Live table: 'emptyvalue'
Created issue: http://jira.xwiki.org/jira/browse/XE-821 On Wed, Feb 2, 2011 at 5:26 PM, Vincent Massol wrote: > > On Feb 2, 2011, at 5:19 PM, Joris Dirks wrote: > >> Great response time :) >> >> On Wed, Feb 2, 2011 at 4:16 PM, Vincent Massol wrote: >>> Hi Joris, >>> >>> On Feb 2, 2011, at 3:53 PM, Joris Dirks wrote: >>> When I create a live table and some of the objects shown have empty values, the table shows: "emptyvalue" for those fields. In the documentation I can't find a way to make a nicer presentation (e.g. show "-" or just a blank field). Does someone have a solution for replacing the word "emptyvalue", preferably per livetable settings? >>> >>> Two things: >>> >>> 1/ I'd also like to have a better default translation for Empty values. >>> Ideally an empty string would be great >> >> I agree. Will create JIRA issue. >> >>> 2/ See >>> http://extensions.xwiki.org/xwiki/bin/view/Extension/Livetable+Macro#HHowdoItranslate22emptyvalue22foundincells >> >> Thanks for the answer, was afraid it would come to using the >> translation engine. Will look into creating a Document Resource Bundle >> later, as the link you created was empty ([[>>]]) > > Forgot to fill the link. Done now! > I've written an example: https://wiki.noiv.nl/xwiki/bin/view/Sandbox/ClassBugsLivetable >>> >>> It's not a bug but I agree it could be improved (see my point 1) above) ;) >> >> I wasn't implying, the aforementioned example was created to trace >> another bug (a period or a backslash in a value giving unexpected/no >> results) but that's for another time ;) > > :) > > -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] Create document from many template
On 02/03/2011 07:53 PM, Lukapt wrote: > > Hi, > > Sorry for digging up this thread, but I'm facing the same problem. > > I want to have a template page that allows the creation of other pages. For > example, I want to have a template page (ResearcherTemplate) that allow the > creation of Researchers. > > What I tried to do was create a new page and add the following code: > $response.sendRedirect($xwiki.getURL($request.documentName, 'inline', > "template=${request.ResearcherTemplate}")) > > but when I press "Save and View" I get the same error than Roberto: "This > document already exist" What version of XWiki are you using? Note that recent versions have the so called "Document Templates", check the wiki administration. -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users