Modifications pour le document Homeopaths

Modifié par Jip-jan Alunkel le mars 14, 20:13

Depuis la version 8.126
modifié par Jip-jan Alunkel
sur décembre 08, 21:00
Commentaire de modification : Renamed from xwiki:practices.WebHome
À la version 8.127
modifié par Jip-jan Alunkel
sur décembre 08, 21:13
Commentaire de modification : Renamed from xwiki:practices.WebHome

Résumé

Détails

Propriétés de la Page
Contenu
... ... @@ -12,10 +12,15 @@
12 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 14  #set($q = $services.query.xwql("where doc.space like 'homeopaths.%' and doc.name like :usr"))
15 -$q.bindValue('usr', $xcontext.getUserReference().getName()).execute()
15 +#set($r = $q.bindValue('usr', $xcontext.getUserReference().getName()).execute()
16 16  ###set($q = $services.query.xwql("where doc.space like 'homeopaths.%' and doc.name like '%practice%'"))
17 17  ##$q.execute()
18 18  ##
19 +#if($r.size() > 0)
20 +Practice page exists.
21 +#else
22 +No practice page.
23 +#end
19 19  </p>
20 20  <div id="homeopaths_map"></div>
21 21