Изменения документа Homeopaths
Редактировал(а) Jip-jan Alunkel марта 14, 20:13
От версии 8.142
отредактировано Jip-jan Alunkel
на декабря 22, 14:56
на декабря 22, 14:56
Изменить комментарий:
Renamed from xwiki:practices.WebHome
К версии 8.145
отредактировано Jip-jan Alunkel
на декабря 24, 13:41
на декабря 24, 13:41
Изменить комментарий:
Renamed from xwiki:practices.WebHome
Сводка
-
Свойства страницы (1 изменено, 0 добавлено, 0 удалено)
Подробности
- Свойства страницы
-
- Содержимое
-
... ... @@ -10,11 +10,15 @@ 10 10 All about homeopaths. 11 11 </p> 12 12 <div id="homeopaths_map"></div> 13 -#set($q = $services.query.xwql("where doc.space like 'homeopaths.%' and doc.name like :usr")) 14 -#set($r = $q.bindValue('usr', $xcontext.getUserReference().getName()).execute()) 15 -#set($practice_exists = $r.size() > 0) 16 -#if(!$practice_exists && !$isGuest) 13 +#if(!$isGuest) 17 17 15 + #set($haspractice = $xwiki.getDocument($xcontext.getUserReference()).getObject('XWiki.XWikiUsers').getProperty('practice')) 16 +$haspractice.value 17 + #set($q = $services.query.xwql("where doc.space like 'homeopaths.%' and doc.name like :usr")) 18 + #set($r = $q.bindValue('usr', $xcontext.getUserReference().getName()).execute()) 19 + #set($practice_exists = $r.size() > 0) 20 + #if(!$practice_exists) 21 + 18 18 <h2>Add your practice to the map</h2> 19 19 #set($form_start = { 20 20 "id": "homeoworld_form", ... ... @@ -96,6 +96,7 @@ 96 96 "use_captcha": "false" 97 97 }) 98 98 #createFormEnd($form_end) 103 + #end 99 99 #end 100 100 {{/html}} 101 101 {{/velocity}}