Re: [xwiki-users] Solved
Hi Stefan, On Feb 16, 2010, at 9:43 AM, stefan bachert wrote: 1. How the change a color on a ColorTheme (stefan bachert) 2. Readable only (stefan bachert) 3. How to put a user into a certain group (stefan bachert) 1. and 3. is resolved. My confussion was not to call inline form which means execute this 'document'. It is confussion to the beginners only to talk about view and edit mode. There is at least an execute mode, too. 2. is considered to be a bug. Thank you answering. How can I reply answers from the digest list without ask a new question? I can see only 2 solutions: 1) you subscribe to receive all mails (and not only a daily digest) 2) you use Nabble/Gmane to answer, see for example: http://dev.xwiki.org/xwiki/bin/view/Community/Forum (you can see more info on http://dev.xwiki.org/xwiki/bin/view/Community/MailingLists) Thanks -Vincent ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Display a well rendered field
I checked my code and my problem now is that all is displayed well except carriage returns So if i have some text in bold it's well displayed but all lines are displayed in only one string. Do i have to add/remove an option somewhere to not removed them ? Also when i click on the Edit menu in the top bar, it opens the WYSIWYG editor. Is it possible with velocity to force the inline form editor ? (iT worked before but i guess i changed something somewhere ...) Thanks -Message d'origine- De : users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] De la part de Valdis Vitolinš Envoyé : lundi 15 février 2010 14:32 À : XWiki Users Objet : Re: [xwiki-users] Display a well rendered field Standard ClassSheet template has simpler syntax: $doc.display(propertyname) e.g. {{velocity}} ## You can modify this page to customize the presentation of your object. ## At first you should keep the default presentation and just save the document. = Īsziņa $doc.name = #set($class = $doc.getObject('Custom.IszinaClass').xWikiClass) #foreach($prop in $class.properties) |$prop.prettyName| $doc.display($prop.getName()) #end {{/velocity}} and it works seamlessly. Valdis Thanks Valdis. I check the class in the class editor and for this textarea, i don't see how to change the rendering. Is it in the class or in the call to display the field ? (i use $doc.display($fieldName, view) ) I use Xwiki 2.0.3 -Message d'origine- De : users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] De la part de Valdis Vitolinš Envoyé : lundi 15 février 2010 13:03 À : XWiki Users Objet : Re: [xwiki-users] Display a well rendered field It seems your default editor is WYSIWYG, but text field is simple text. You need to set textarea field to FullyRenderedText (Xwiki 1.x version) or WYSIWYG (2.x version) mode. Valdis Hello all, I have a class with text fields. When i want to display the value of one of them, i only have a very long string. How can i display it with nice rendering (bold, colors, etc) ? (In edit mode i have the WYSIWYG editor) Thank you Christophe Périnaud Windows Server 2003 SP2 in a VMWare instance Oracle 10g Java 1.6.0_12 Xwiki 2.0.3 from the pack Jetty/HSQL ... ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users This e-mail is intended only for the addressee named above. It does not bind the sender, except in the case of an existing written convention with the addressee. This e-mail may contain material that is confidential and privileged for the sole use of the intended recipient. Any review, reliance or distribution by others or forwarding without express permission is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender and delete all copies. While reasonable precautions have been taken to ensure that this e-mail and any attachments are free from any computer virus or similar defect, no liability will be accepted in that respect. Anyone accessing this e-mail must take their own precautions as to security and virus protection. KBL European Private Bankers S.A., 43 boulevard Royal L-2955 Luxembourg, R.C.S. Luxembourg B 6395, T (352) 47 97 1 ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] How to get the creation date of a document
Hello, I am rewriting the todo example list to be suitable for my company. I would like to show in the list the date of creation of the documents. How can i get it? The code is something like: table id=todoTable class=grid sortable filterable doOddEven cellpadding=0 cellspacing=0 border=0 tr class=sortHeader th class=unsortable selectFilterFecha/th thResumen/th thStatus/th thPersona/th thPestaña/th th class=unsortable selectFilterDescripcion/th /tr #foreach ($todo in $todos) tr #set ($todoDoc = $xwiki.getDocument($todo)) #set ($todoObj = $todoDoc.getObject(XWiki.TodoClass)) td[$todoObj.TargetDate$todo]/td td[$todoObj.Resumen$todo]/td td[$todoObj.Status$todo]/td td[$todoObj.Persona$todo]/td td[$todoObj.Pestana$todo]/td td$todoObj.Descripcion/td /tr #end /table So get from the todoobj the creation date. Regards, Francisco -- Francisco Hernández Cuchí Jefe de Servicios Sistemas de Información OFICINA ESPAÑOLA DE PATENTES Y MARCAS C\ Paseo de la Castella 75 tlf: 913496844 mail: francisco.hernan...@oepm.es mailto:francisco.hernan...@oepm.es ** IMPORTANTE: El contenido de este correo y ficheros adjuntos es confidencial y está dirigido únicamente para el destinatario/s. Si Ud recibe este correo por error, por favor póngase en contacto con su administrador de correo o con el emisor immediatamente y no difunda su contenido a nadie ni haga copias. *** Este correo ha sido escaneado de virus y contenido malicioso *** ** ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Method that returns list of groups for a page
Hey all, I am trying to find a method that can return a list of groups that have a given access right to a given page. Is there a method(s) that allow me to do that? I'm aware that you can create an object of AccessRights onto a given page and filter in groups and users that have access rights to a given page, but only admins can see that. I need to generate a list of groups that have granted access so that when an unregistered user tries to log onto a page that he doesn't have access to, a list will be generated so that he can ask for membership to those groups. Thank you, Felix Wu ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] How to get the creation date of a document
Hi Hernández, Hernández Cuchí wrote: Hello, I am rewriting the todo example list to be suitable for my company. I would like to show in the list the date of creation of the documents. How can i get it? See http://platform.xwiki.org/xwiki/bin/download/DevGuide/API/xwiki-core-2.2-javadoc.jar/com/xpn/xwiki/api/Document.html#getCreationDate%28%29 The code is something like: table id=todoTable class=grid sortable filterable doOddEven cellpadding=0 cellspacing=0 border=0 tr class=sortHeader th class=unsortable selectFilterFecha/th thResumen/th thStatus/th thPersona/th thPestaña/th th class=unsortable selectFilterDescripcion/th /tr #foreach ($todo in $todos) tr #set ($todoDoc = $xwiki.getDocument($todo)) #set ($todoObj = $todoDoc.getObject(XWiki.TodoClass)) td[$todoObj.TargetDate$todo]/td td[$todoObj.Resumen$todo]/td td[$todoObj.Status$todo]/td td[$todoObj.Persona$todo]/td td[$todoObj.Pestana$todo]/td td$todoObj.Descripcion/td /tr #end /table So get from the todoobj the creation date. You can't get it from the object, afaik, but from the document: $todoDoc.creationDate Hope this helps, Marius Regards, Francisco -- Francisco Hernández Cuchí Jefe de Servicios Sistemas de Información OFICINA ESPAÑOLA DE PATENTES Y MARCAS C\ Paseo de la Castella 75 tlf: 913496844 mail: francisco.hernan...@oepm.es mailto:francisco.hernan...@oepm.es ** IMPORTANTE: El contenido de este correo y ficheros adjuntos es confidencial y está dirigido únicamente para el destinatario/s. Si Ud recibe este correo por error, por favor póngase en contacto con su administrador de correo o con el emisor immediatamente y no difunda su contenido a nadie ni haga copias. *** Este correo ha sido escaneado de virus y contenido malicioso *** ** ___ 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] Method that returns list of groups for a page
Hello Felix, I think you're looking for: $xwiki.hasAccessLevel(edit, XWiki.SomeUser, Main.DocumentInQuestion)) see: http://maven.xwiki.org/site/xwiki-core-parent/xwiki-core/apidocs/com/xpn/xwiki/api/XWiki.html#hasAccessLevel(java.lang.String,%20java.lang.String,%20java.lang.String) It says users, but I think you can use a group name instead. Caleb Meng Wu wrote: Hey all, I am trying to find a method that can return a list of groups that have a given access right to a given page. Is there a method(s) that allow me to do that? I'm aware that you can create an object of AccessRights onto a given page and filter in groups and users that have access rights to a given page, but only admins can see that. I need to generate a list of groups that have granted access so that when an unregistered user tries to log onto a page that he doesn't have access to, a list will be generated so that he can ask for membership to those groups. Thank you, Felix Wu ___ 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