Changes for page Homeopaths
Last modified by Jip-jan Alunkel on March 14, 20:13
From version 8.128
edited by Jip-jan Alunkel
on December 08, 21:14
on December 08, 21:14
Change comment:
Renamed from xwiki:practices.WebHome
To version 8.124
edited by Jip-jan Alunkel
on December 08, 20:57
on December 08, 20:57
Change comment:
Renamed from xwiki:practices.WebHome
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -9,15 +9,13 @@ 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%')) 12 12 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 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() 21 21 </p> 22 22 <div id="homeopaths_map"></div> 23 23