Changes for page test

Last modified by Jip-jan Alunkel on March 13, 19:02

From version 56.1
edited by Jip-jan Alunkel
on July 10, 18:23
Change comment: There is no comment for this version
To version 69.2
edited by Jip-jan Alunkel
on August 19, 20:04
Change comment: Updated class property

Summary

Details

Page properties
Content
... ... @@ -1,14 +2,20 @@
1 -
2 2  {{velocity}}
2 +#set($obj = $doc.getObject('test.WebHome'))
3 +#set($class = $obj.xWikiClass) ## access the class object representing SomeSpace.SomeClass
4 +#foreach($prop in $class.properties) ## go through all properties
5 + <dt> *${prop.prettyName}* </dt>
6 + <dd>$doc.display($prop.getName())</dd>
7 +#end
8 +
3 3  {{html wiki="true"}}
4 4  #set ($doc=$xwiki.getDocument("cases.ear.ears fell off while biking"))
5 5  #set ($xobject = $doc.getObject('cases.Code.casesClass'))
6 6  #set ($xclass = $xobject.xWikiClass)
7 7  #foreach ($property in $xclass.properties)
8 -## $xobject.getProperty('remedy').value
9 - $property.getValue()
14 + $xobject.getProperty($property.name).value
15 +## $property.name
10 10  #end
11 -
17 +$stringtool.capitalize( "fred from jupiter" )
12 12  #*
13 13  #set ($xdoc=$xwiki.getDocument($Formulier))
14 14  #set ($xobject = $xdoc.getObject('Main.Werkwijze.Formulieren.Code.FormulierenClass'))
... ... @@ -24,6 +24,10 @@
24 24   $property.value
25 25  #end
26 26  *#
33 +
34 +$xwiki.getURL('.')
27 27  {{/html}}
36 +
37 +$doc.display("blaat")
28 28  {{/velocity}}
29 29  
test.WebHome[0]
blaat
Editor
... ... @@ -1,0 +1,1 @@
1 +Wysiwyg
Pretty Name
... ... @@ -1,0 +1,1 @@
1 +blaat
Rows
... ... @@ -1,0 +1,1 @@
1 +8
Number
... ... @@ -1,0 +1,1 @@
1 +1
Size
... ... @@ -1,0 +1,1 @@
1 +40
Restricted
... ... @@ -1,0 +1,1 @@
1 +0
Name
... ... @@ -1,0 +1,1 @@
1 +blaat
Use Suggest
... ... @@ -1,0 +1,1 @@
1 +1