Code source wiki de test
Version 69.5 par Jip-jan Alunkel le août 19, 20:06
Masquer les derniers auteurs
author | version | line-number | content |
---|---|---|---|
![]() |
69.2 | 1 | {{velocity}} |
![]() |
69.3 | 2 | {{html wiki="true"}} |
![]() |
69.2 | 3 | #set($obj = $doc.getObject('test.WebHome')) |
4 | #set($class = $obj.xWikiClass) ## access the class object representing SomeSpace.SomeClass | ||
5 | #foreach($prop in $class.properties) ## go through all properties | ||
![]() |
69.5 | 6 | <dt>${prop.prettyName}</dt> |
![]() |
69.2 | 7 | <dd>$doc.display($prop.getName())</dd> |
8 | #end | ||
![]() |
1.1 | 9 | |
![]() |
54.1 | 10 | #set ($doc=$xwiki.getDocument("cases.ear.ears fell off while biking")) |
11 | #set ($xobject = $doc.getObject('cases.Code.casesClass')) | ||
![]() |
55.1 | 12 | #set ($xclass = $xobject.xWikiClass) |
13 | #foreach ($property in $xclass.properties) | ||
![]() |
60.1 | 14 | $xobject.getProperty($property.name).value |
15 | ## $property.name | ||
![]() |
55.1 | 16 | #end |
![]() |
67.1 | 17 | $stringtool.capitalize( "fred from jupiter" ) |
![]() |
55.1 | 18 | #* |
19 | #set ($xdoc=$xwiki.getDocument($Formulier)) | ||
20 | #set ($xobject = $xdoc.getObject('Main.Werkwijze.Formulieren.Code.FormulierenClass')) | ||
![]() |
54.1 | 21 | #set ($xclass = $xobject.xWikiClass) |
22 | #foreach ($property in $xclass.properties) | ||
23 | $property.Name | ||
24 | $property.value | ||
25 | #end | ||
![]() |
55.1 | 26 | |
27 | #set ($xclass = $xobject.xWikiClass) | ||
28 | #foreach ($property in $xclass.properties) | ||
29 | $property.Name | ||
30 | $property.value | ||
31 | #end | ||
32 | *# | ||
![]() |
61.1 | 33 | |
34 | $xwiki.getURL('.') | ||
![]() |
53.1 | 35 | {{/html}} |
![]() |
68.2 | 36 | |
![]() |
68.6 | 37 | $doc.display("blaat") |
![]() |
47.1 | 38 | {{/velocity}} |
39 |