Modifications pour le document Documents Macro
Modifié par superadmin le 2021/12/12 21:56
Commentaire de modification :
Migrated property [type] from class [XWiki.WikiMacroParameterClass]
Résumé
Détails
- Propriétés de la Page
-
- Auteur du document
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. superadmin1 +XWiki.adminPolx
- XWiki.WikiMacroClass[0]
-
- Code de la macro
-
... ... @@ -8,12 +8,13 @@ 8 8 #set($collist = ['doc.title', 'doc.location', 'doc.date', 'doc.author']) 9 9 #end 10 10 #set($colprops = { 11 - 'doc.title' : { 'size' : 30, 'link' : 'view' }, 12 - 'doc.location' : { 'html': true }, 13 - 'doc.fullName' : { 'size' : 30, 'link' : 'view' }, 14 - 'doc.name' : { 'size' : 30, 'link' : 'view' }, 15 - 'doc.space' : { 'link' : 'space' }, 16 - 'doc.author' : { 'link' : 'author' } 11 + 'doc.title' : { 'type' : 'text' , 'size' : 30, 'link' : 'view', 'filterable': false, 'sortable': false }, 12 + 'doc.location' : { 'type': 'text', 'filterable': true, 'html': true}, 13 + 'doc.fullName' : { 'type' : 'text' , 'size' : 30, 'link' : 'view' }, 14 + 'doc.name' : { 'type' : 'text' , 'size' : 30, 'link' : 'view' }, 15 + 'doc.space' : { 'type' : 'text', 'link' : 'space' }, 16 + 'doc.date' : { 'type' : 'date' }, 17 + 'doc.author' : { 'type' : 'text', 'link' : 'author' } 17 17 }) 18 18 #set($options = { 19 19 'translationPrefix' : 'platform.index.', ... ... @@ -34,15 +34,8 @@ 34 34 #end 35 35 #if(!$isGuest && $xcontext.macro.params.actions == "true") 36 36 #set($discard = $collist.add('_actions')) 37 - #set($discard = $colprops.put('_actions', { 38 - 'actions': ['copy', 'rename', 'rights', 'delete'], 39 - 'filterable': false, 40 - 'sortable': false 41 - })) 38 + #set($discard = $colprops.put('_actions', { 'actions' : ['copy', 'rename', 'rights', 'delete'] })) 42 42 #end 43 -#if ($collist.contains('doc.location')) 44 - #set ($discard = $options.put('selectedColumn','doc.location')) 45 -#end 46 46 #if ("$!xcontext.macro.params.id" != "") 47 47 #set ($livetableId = $xcontext.macro.params.id) 48 48 #else