[xwiki-users] How to display in inline mode, only an specific field from a class
I would like to know how to display only an specific field from a class in inline mode, obviously using the code in the class sheet related to that class. I would like to show only one field in inline mode because I need that embeddeb html editor that appears only in inline mode for text fields. The other fields can be showed in normal edit mode. Thank you so much Veja quais são os assuntos do momento no Yahoo! +Buscados http://br.maisbuscados.yahoo.com
If I understood well, I think you should be able to do it by updating the characteristics of your text fields in your class : you can choose the "Editor" to use (Text, PureText or WysiWyg). Choose wysiwyg to have the html editor, and text or puretext for standard text field. To display a field have a look to the javadoc (Document.display() methods) I.E. : public java.lang.String display(java.lang.String fieldname, java.lang.String mode, Object obj) Here mode can be 'edit' or 'view' ... (I don't know all possible values). -- View this message in context: http://n2.nabble.com/How-to-display-in-inline-mode%2C-only-an-specific-field... Sent from the XWiki- Users mailing list archive at Nabble.com.
participants (2)
-
Heitor Mayer -
jerem