Modifiche per il documento Homeopaths
Ultima modifica di Jip-jan Alunkel il marzo 14, 20:13
Dalla versione 8.125
modificato da Jip-jan Alunkel
il dicembre 08, 21:00
il dicembre 08, 21:00
Cambia il commento:
Renamed from xwiki:practices.WebHome
Alla versione 8.129
modificato da Jip-jan Alunkel
il dicembre 09, 20:16
il dicembre 09, 20:16
Cambia il commento:
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', $xcontext.getUserReference().getName()).execute() 16 -###set($q = $services.query.xwql("where doc.space like 'homeopaths.%' and doc.name like '%practice%'")) 17 -##$q.execute() 18 -## 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