Modifications pour le document Homeopaths
Modifié par Jip-jan Alunkel le mars 14, 20:13
Depuis la version 10.10
modifié par Jip-jan Alunkel
sur mars 14, 18:32
sur mars 14, 18:32
Commentaire de modification :
Renamed from xwiki:practices.WebHome
À la version 10.6
modifié par Jip-jan Alunkel
sur mars 07, 17:13
sur mars 07, 17:13
Commentaire de modification :
Renamed from xwiki:practices.WebHome
Résumé
-
Propriétés de la Page (1 modifications, 0 ajouts, 0 suppressions)
Détails
- Propriétés de la Page
-
- Contenu
-
... ... @@ -14,7 +14,7 @@ 14 14 #if(!$isGuest) 15 15 #set($hasPractice = $xwiki.getDocument($xcontext.getUserReference()).getObject('XWiki.XWikiUsers').getProperty('practice').value) 16 16 #if($hasPractice) 17 - #set($q = $services.query.xwql("where doc.space like 'homeopaths.%' and doc. object(homeopaths.Code.homeopathsClass).doc_ownerlike :usr"))17 + #set($q = $services.query.xwql("where doc.space like 'homeopaths.%' and doc.name like :usr")) 18 18 #set($r = $q.bindValue('usr', $xcontext.getUserReference().getName()).execute()) 19 19 #set($practiceExists = $r.size() > 0) 20 20 #if(!$practiceExists) ... ... @@ -28,7 +28,7 @@ 28 28 }) 29 29 #createFormStart($form_start) 30 30 #set($practice_name = { 31 - "id" : "practice Name",31 + "id" : "practice_name", 32 32 "type" : "text", 33 33 "required" : "true", 34 34 "label" : "Name of your practice", ... ... @@ -47,7 +47,7 @@ 47 47 "data-create-page" : "true", 48 48 "data-create-xobj" : "true", 49 49 "data-xobj-classname" : "homeopaths.Code.homeopathsClass", 50 - "data-xobj-fieldname" : "practice Name",50 + "data-xobj-fieldname" : "pmPractice" 51 51 "help-block" : 'This will be used as the title of your practice page. The first character must be a letter.' 52 52 }) 53 53 #createFormElement($practice_name)