Changes for page homeopathsSheet
Last modified by Jip-jan Alunkel on March 26, 17:31
From version 1.126
edited by Jip-jan Alunkel
on March 08, 18:23
on March 08, 18:23
Change comment:
There is no comment for this version
To version 1.137
edited by Jip-jan Alunkel
on March 08, 18:35
on March 08, 18:35
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,7 +1,7 @@ 1 1 {{include reference="assets.pagemaker.macros"/}} 2 2 3 3 {{velocity}} 4 -#set($discard = $services.localization.use('document', ' homeopaths.Code.translations'))4 +#set($discard = $services.localization.use('document', 'assets.global.translations')) 5 5 #set($discard = $services.localization.use('document', 'assets.pagemaker.translations')) 6 6 #set($discard = $xwiki.ssx.use('assets.pagemaker.WebHome', {'minify': false})) 7 7 #set($discard = $xwiki.jsx.use('assets.pagemaker.WebHome', {'minify': false, 'language': $context.language, 'myParameter': 'value'})) ... ... @@ -88,7 +88,6 @@ 88 88 #foreach($item in $property.keySet()) 89 89 #set($key = $item) 90 90 #end 91 -$key 92 92 #foreach($item in $property.values()) 93 93 #set($propertyType = $item.type) 94 94 #set($propertyOpener = $item.opener) ... ... @@ -96,11 +96,10 @@ 96 96 #set($extraAttributes = $item.extraAttributes) 97 97 #end 98 98 #set($label = $services.localization.render("homeopaths.classproperty.${key}")) 99 - 100 - #if($theDocObj.getProperty($key)) 98 + #if($theDocObj.getProperty($key) || $propertyType == "address") 101 101 #set($value = $theDocObj.getProperty($key).value) 102 102 #if(!$value) 103 - #set($value = "1") 101 +## #set($value = "1") 104 104 #end 105 105 #set($newElem = { 106 106 "id" : "$key", ... ... @@ -112,7 +112,7 @@ 112 112 "data-xobj-fieldname" : "$key", 113 113 "value" : "$value" 114 114 }) 115 - #if($extraAttributes) 113 + #if($extraAttributes.keySet().size() > 0) 116 116 #set($attrMap = $extraAttributes) 117 117 #foreach($attr in $attrMap.keySet()) 118 118 #set($discard = $newElem.put("$attr", $attrMap[$attr]))