Changes for page Homeopaths

Last modified by Jip-jan Alunkel on March 14, 20:13

From version 8.34
edited by Jip-jan Alunkel
on December 08, 13:58
Change comment: Renamed from xwiki:practices.WebHome
To version 8.26
edited by Jip-jan Alunkel
on December 08, 13:34
Change comment: Renamed from xwiki:practices.WebHome

Summary

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', 'cases.Code.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}))
... ... @@ -9,20 +9,6 @@
9 9  {{html wiki="false" clean="false"}}
10 10  <p>
11 11  All about homeopaths.
12 - #set($query = $services.query.xwql("from doc.object('homeopaths.Code.homeopathsClass') as caseObj"))
13 - #set($result = $query.execute())
14 - #set($map = {})
15 - #foreach($item in $result)
16 - #set($result_doc = $xwiki.getDocument("${item}"))
17 - #set($result_obj = $result_doc.getObject("homeopaths.Code.homeopathsClass"))
18 - #set($discard = $map.put("${item}", $result_obj.getProperty("latlong").value))
19 - #end
20 - #if($objecttool.allNull($map))
21 - #set($output = {})
22 - #else
23 - #set($output = $jsontool.serialize(${map}))
24 - #end
25 -$jsontool.parse($output)
26 26  </p>
27 27  <div id="homeopaths_map"></div>
28 28  
XWiki.JavaScriptExtension[0]
Code
... ... @@ -4,22 +4,6 @@
4 4   attribution: ''
5 5   }).addTo(map);
6 6   map.attributionControl.setPrefix('');
7 -
8 - #set($query = $services.query.xwql("from doc.object('homeopaths.Code.homeopathsClass') as caseObj"))
9 - #set($result = $query.execute())
10 - #set($map = {})
11 - #foreach($item in $result)
12 - #set($result_doc = $xwiki.getDocument("${item}"))
13 - #set($result_obj = $result_doc.getObject("homeopaths.Code.homeopathsClass"))
14 - #set($discard = $map.put("${item}", $result_obj.getProperty("latlong").value))
15 - #end
16 - #if($objecttool.allNull($map))
17 - #set($output = {})
18 - #else
19 - #set($output = $jsontool.serialize(${map}))
20 - #end
21 -console.log($jsontool.parse($output));
22 -
23 23   var markers = [
24 24   [ -0.1244324, 51.5006728, "Big Ben" ],
25 25   [ -0.119623, 51.503308, "London Eye" ],