Changes for page Homeopaths
Last modified by Jip-jan Alunkel on March 14, 20:13
From version 8.123
edited by Jip-jan Alunkel
on December 08, 20:52
on December 08, 20:52
Change comment:
Renamed from xwiki:practices.WebHome
To version 8.129
edited by Jip-jan Alunkel
on December 09, 20:16
on December 09, 20:16
Change comment:
Renamed from xwiki:practices.WebHome
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -9,13 +9,15 @@ 9 9 {{html wiki="false" clean="false"}} 10 10 <p> 11 11 All about homeopaths. 12 -##from XWikiSpace as space where doc.space = space.reference and ((doc.name <> 'WebHome' and lower(doc.name) like '%wiki%') or (doc.name = 'WebHome' and lower(space.name) like '%wiki%')) 13 13 14 -##set($q = $services.query.xwql("where doc.space like 'homeopaths' and doc.name like :usr")) 15 -##$q.bindValue('usr', 'practice').execute() 16 -#set($q = $services.query.xwql("where doc.space like 'homeopaths.%' and doc.name like '%practice%'")) 17 -$q.execute() 18 -##$xcontext.getUserReference().getName() 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 + 16 +#if($r.size() > 0) 17 +Practice page exists. 18 +#else 19 +No practice page. 20 +#end 19 19 </p> 20 20 <div id="homeopaths_map"></div> 21 21