Modifications pour le document Homeopaths
Modifié par Jip-jan Alunkel le mars 14, 20:13
Depuis la version 10.5
modifié par Jip-jan Alunkel
sur mars 07, 14:18
sur mars 07, 14:18
Commentaire de modification :
Renamed from xwiki:practices.WebHome
À la version 10.11
modifié par Jip-jan Alunkel
sur mars 14, 18:37
sur mars 14, 18:37
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(" wheredoc.spacelike 'homeopaths.%'and doc.name like :usr"))17 + #set($q = $services.query.xwql("from doc.object(homeopaths.Code.homeopathsClass) as obj and obj.doc_owner 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" : "practiceName", 32 32 "type" : "text", 33 33 "required" : "true", 34 34 "label" : "Name of your practice", ... ... @@ -45,6 +45,9 @@ 45 45 "data-query-list-header" : "$services.localization.render('pagemaker.line.suggest_negate_list')", 46 46 "data-query-list-contents" : "value", 47 47 "data-create-page" : "true", 48 + "data-create-xobj" : "true", 49 + "data-xobj-classname" : "homeopaths.Code.homeopathsClass", 50 + "data-xobj-fieldname" : "practiceName", 48 48 "help-block" : 'This will be used as the title of your practice page. The first character must be a letter.' 49 49 }) 50 50 #createFormElement($practice_name)