So, I think the current implementation into the XWiki platform generally look like this following: https://github.com/xwiki/xwiki-platform/blob/f19bd6fa13aee6600432e171409dd8570486f339/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/objects/classes/PropertyClass.java#L197-L207 But for some specific Property there are a different one.
After a while I saw that there are already an implementation of the hidden field here: https://github.com/xwiki/xwiki-platform/blob/5372f83694cc1ae108167843091d00e4edb8f429/xwiki-platform-core/xwiki-platform-user/xwiki-platform-user-directory/xwiki-platform-user-directory-ui/src/main/resources/XWiki/UserDirectoryColumnsDisplayer.xml#L74
So I think we can just use the same one as fallow:
{code} {{html clean="false"}} $doc.displayHidden($field, $prefix, $object) {{/html}} {code} Note I've tested with some properties (Number, TextArea, Computed Field) and I've the same result with and without the custom displayer. |
|