Modifications pour le document SearchSuggestSourceSheet
Modifié par Florent Charton le 2025/07/04 23:28
Depuis la version 2.1
modifié par Florent Charton
sur 2024/08/08 18:44
sur 2024/08/08 18:44
Commentaire de modification :
Install extension [org.xwiki.platform:xwiki-platform-search-ui/15.10.11]
À la version 3.1
modifié par Florent Charton
sur 2025/07/04 23:28
sur 2025/07/04 23:28
Commentaire de modification :
Install extension [org.xwiki.platform:xwiki-platform-search-ui/16.10.9]
Résumé
-
Propriétés de la Page (1 modifications, 0 ajouts, 0 suppressions)
Détails
- Propriétés de la Page
-
- Contenu
-
... ... @@ -16,10 +16,12 @@ 16 16 #set ($displayFormType = $property.getProperty('displayFormType')) 17 17 #set ($isCheckbox = $editing && $property.classType == 'Boolean' && (!$displayFormType || $displayFormType.value == 'checkbox')) 18 18 ; {{html wiki="true"}} 19 - <label#if ($editing) for="${prefix}$property.name"#end> 20 - #if ($isCheckbox) 21 - $doc.display($property.name, 'edit') 22 - #end 19 + #if ($isCheckbox) 20 + $doc.display($property.name, 'edit', $object) 21 + #end 22 + ## $object is not hard typed to be an object, it's also sometimes a map, henceforth the weird looking condition on 23 + ## this next line. Detailed explanations => https://github.com/xwiki/xwiki-platform/pull/2816#discussion_r1489621617 24 + <label#if ($editing && $object!={}) for="${prefix}$property.name"#end> 23 23 $property.translatedPrettyName 24 24 </label> 25 25 {{/html}}## ... ... @@ -34,6 +34,8 @@ 34 34 #else 35 35 $services.rendering.escape($!object.getProperty($property.name).value, 'xwiki/2.1') 36 36 #end 39 + #else 40 + : (% class='hidden' %) 37 37 #end 38 38 #end 39 39 )))