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