Modifications pour le document SearchSuggestSourceSheet

Modifié par Florent Charton le 2025/07/04 23:28

Depuis la version 1.1
modifié par superadmin
sur 2022/06/20 08:49
Commentaire de modification : Install extension [org.xwiki.platform:xwiki-platform-search-ui/13.10.6]
À la version 3.1
modifié par Florent Charton
sur 2025/07/04 23:28
Commentaire de modification : Install extension [org.xwiki.platform:xwiki-platform-search-ui/16.10.9]

Résumé

Détails

Propriétés de la Page
Auteur du document
... ... @@ -1,1 +1,1 @@
1 -XWiki.superadmin
1 +xwiki:XWiki.fcharton
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}}##
... ... @@ -32,8 +32,10 @@
32 32   : #if ($editing)
33 33   $doc.display($property.name, 'edit')
34 34   #else
35 - {{{$!object.getProperty($property.name).value}}}
37 + $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  )))