Wijzigen voor document Homeopaths
Laatst gewijzigd door Jip-jan Alunkel op maart 14, 20:13
Van versie 10.51
gewijzigd door Jip-jan Alunkel
op maart 14, 19:39
op maart 14, 19:39
Opmerking bij wijziging:
Renamed from xwiki:practices.WebHome
Naar versie 10.48
gewijzigd door Jip-jan Alunkel
op maart 14, 19:36
op maart 14, 19:36
Opmerking bij wijziging:
Renamed from xwiki:practices.WebHome
Samenvatting
-
Paginaeigenschappen (1 gewijzigd, 0 toegevoegd, 0 verwijderd)
Details
- Paginaeigenschappen
-
- Inhoud
-
... ... @@ -9,18 +9,22 @@ 9 9 {{html wiki="false" clean="false"}} 10 10 <p> 11 11 All about the page "homeopaths". Where is it for? 12 - #set($q = $services.query.xwql("from doc.object(homeopaths.Code.homeopathsClass) as homepath where homepath.doc_owner like :usr")) 12 + #set($aq = $services.query.xwql("from doc.object(homeopaths.Code.homeopathsClass) as homepath where homepath.doc_owner like :usr")) 13 13 #set($usrName = $xwiki.getDocument($xcontext.getUserReference()).getFullName()) 14 - #set($r = $aq.bindValue('usr',"${usrName}").execute()) 15 -$r.size() > 0 14 +## #set ($spaceLike = $usrName.replaceAll('([%_!])', '!$1').concat('.%')) 15 + #set($ar = $aq.bindValue('usr',"${usrName}").execute()) 16 + 17 +##.anyChars() 18 +$usrName 19 +$ar 20 + 16 16 </p> 17 17 <div id="homeopaths_map"></div> 18 18 #if(!$isGuest) 19 19 #set($hasPractice = $xwiki.getDocument($xcontext.getUserReference()).getObject('XWiki.XWikiUsers').getProperty('practice').value) 20 20 #if($hasPractice) 21 - #set($q = $services.query.xwql("from doc.object(homeopaths.Code.homeopathsClass) as homepath where homepath.doc_owner like :usr")) 22 - #set($usrName = $xwiki.getDocument($xcontext.getUserReference()).getFullName()) 23 - #set($r = $q.bindValue('usr',"${usrName}").execute()) 26 + #set($q = $services.query.xwql("from doc.object(homeopaths.Code.homeopathsClass) as homepath where homepath.doc_owner like :usr escape '!'")) 27 + #set($r = $q.bindValue('usr').literal("${xcontext}.getUserReference().getName()").query().execute()) 24 24 #set($practiceExists = $r.size() > 0) 25 25 #if(!$practiceExists) 26 26 <h2 id="add_practice">Add your practice to the map</h2>