Changes for page Homeopaths

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

From version 8.143
edited by Jip-jan Alunkel
on December 24, 13:33
Change comment: Renamed from xwiki:practices.WebHome
To version 8.142
edited by Jip-jan Alunkel
on December 22, 14:56
Change comment: Renamed from xwiki:practices.WebHome

Summary

Details

Page properties
Content
... ... @@ -10,15 +10,11 @@
10 10  All about homeopaths.
11 11  </p>
12 12  <div id="homeopaths_map"></div>
13 -#if(!$isGuest)
13 +#set($q = $services.query.xwql("where doc.space like 'homeopaths.%' and doc.name like :usr"))
14 +#set($r = $q.bindValue('usr', $xcontext.getUserReference().getName()).execute())
15 +#set($practice_exists = $r.size() > 0)
16 +#if(!$practice_exists && !$isGuest)
14 14  
15 -$xcontext.getUserReference()
16 -
17 - #set($q = $services.query.xwql("where doc.space like 'homeopaths.%' and doc.name like :usr"))
18 - #set($r = $q.bindValue('usr', $xcontext.getUserReference().getName()).execute())
19 - #set($practice_exists = $r.size() > 0)
20 - #if(!$practice_exists)
21 -
22 22  <h2>Add your practice to the map</h2>
23 23  #set($form_start = {
24 24   "id": "homeoworld_form",
... ... @@ -100,7 +100,6 @@
100 100   "use_captcha": "false"
101 101  })
102 102  #createFormEnd($form_end)
103 - #end
104 104  #end
105 105  {{/html}}
106 106  {{/velocity}}