Modifications pour le document Homeopaths
Modifié par Jip-jan Alunkel le mars 14, 20:13
Depuis la version 10.4
modifié par Jip-jan Alunkel
sur mars 07, 14:03
sur mars 07, 14:03
Commentaire de modification :
Renamed from xwiki:practices.WebHome
À 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
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. name like :usr"))17 + #set($q = $services.query.xwql("where doc.space like 'homeopaths.%' and doc.object(homeopaths.Code.homeopathsClass).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) ... ... @@ -84,8 +84,13 @@ 84 84 "data-query-list-header" : "$services.localization.render('pagemaker.line.suggest_select_list')", 85 85 "data-query-list-contents" : "value/key", 86 86 "data-query-list-editable" : "false", 90 + "data-create-xobj" : "true", 91 + "data-xobj-classname" : "homeopaths.Code.homeopathsClass", 87 87 "help-block" : 'Input street and number, then select the address of your practice.' 88 88 }) 94 +#* 95 + "data-xobj-fieldname" : "address", 96 +*# 89 89 #createFormElement($address) 90 90 #set($friend = { 91 91 "id" : "friend",