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 : [email protected] [mailto:[email protected]] 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
...
participants (1)
-
Valdis Vītoliņš