javacupix wrote:
Ok, I got it, you can use Velocity Scripting in the Custom Display Property to render the display in the way you want it...
For example here is the code to a "custom display" so the value of the property is displayed in bold and red. <b><font color=red>$doc.getValue("DataName")</font></b>
Where DataName is the name of my property... actually it's really easy to do what you want if you understand the xwiki javadoc (http://platform.xwiki.org/xwiki/bin/download/DevGuide/API/xwiki%2Dcore%2D1.3...)
Indeed, you can put some velocity script in there. The core will also make available the following variables: - $name = the name of the displayed field - $prefix = a prefix for the form field - $object = the displayed object - $type = the intended display mode (view, edit, hidden, search...) - $value = the property value So, your example could be rewritten as: <b>$value</b> which works only in view mode, or: #if($type == "view") <b>$value</b> #else ## some markup to display in edit mode #end -- Sergiu Dumitriu http://purl.org/net/sergiu/