Wiki source code of Object Sheet
Last modified by superadmin on 2019/11/08 17:58
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | {{velocity}} | ||
2 | ## You can modify this page to customize the presentation of your object. | ||
3 | ## At first you should keep the default presentation and just save the document. | ||
4 | |||
5 | #set($class = $doc.getObject('XWiki.MyClass').xWikiClass) | ||
6 | (% class="xform" %)((( | ||
7 | #foreach($prop in $class.properties) | ||
8 | ; {{html clean="false"}} | ||
9 | <label for="${class.name}_${class.number}_${prop.name}">$doc.displayPrettyName($prop.name)</label> | ||
10 | #if($prop.hint) | ||
11 | <span class="xHint">$prop.hint</span> | ||
12 | #end | ||
13 | {{/html}} | ||
14 | : $doc.display($prop.name) | ||
15 | #end | ||
16 | ))) | ||
17 | {{/velocity}} |