Changes for page homeopathsSheet

Last modified by Jip-jan Alunkel on March 26, 17:31

From version 3.12
edited by Jip-jan Alunkel
on March 09, 00:23
Change comment: Rollback to version 1.38
To version 3.14
edited by Jip-jan Alunkel
on March 09, 00:40
Change comment: Rollback to version 1.38

Summary

Details

Page properties
Content
... ... @@ -101,7 +101,19 @@
101 101   <fieldset class="fieldset">
102 102   <address>
103 103  $doc.getTitle()<br />
104 -$theDocObj.getProperty('pmStreet').value $theDocObj.getProperty('pmHousenumber').value<br /><br />
104 +#set($addressArray = ['pmStreet','pmHousenumber','pmPostcode','pmCity','pmState','pmCounty','pmCountry'])
105 +#set($x = {})
106 +#foreach($datapart in $addressArray)
107 + #if($theDocObj.getProperty($datapart))
108 + #set($datapart4Publish = $theDocObj.getProperty($datapart).value)
109 + #if($datapart == 'pmCountry')
110 + #set($datapart4Publish = $datapart4Publish.toUpperCase())
111 + #end
112 + #set($discard = $x.put("$datapart", $datapart4Publish))
113 + #end
114 +#end
115 +
116 +$x['pmStreet'].value $theDocObj.getProperty('pmHousenumber').value<br />
105 105  $theDocObj.getProperty('pmPostcode').value $theDocObj.getProperty('pmCity').value<br />
106 106  $theDocObj.getProperty('pmCounty,').value $theDocObj.getProperty('pmState').value<br />
107 107  $theDocObj.getProperty('pmCountry').value.toUpperCase()