Cambios para el documento Examinar wikis

Última modificación por Administrator el 2024/06/06 12:28

Desde la versión 2.1
editado por Administrator
el 2024/06/05 19:09
Cambiar el comentario: Migrated property [contentType] from class [XWiki.StyleSheetExtension]
Hasta la versión 3.1
editado por Administrator
el 2024/06/06 12:28
Cambiar el comentario: Install extension [org.xwiki.platform:xwiki-platform-wiki-ui-mainwiki/15.10.10]

Resumen

Detalles

Propiedades de página
Contenido
... ... @@ -1,23 +1,81 @@
1 1  {{velocity}}
2 -## Load the User Picker style for the wiki owner column.
3 -#set($discard = $xwiki.ssfx.use('uicomponents/widgets/userpicker/userPicker.css'))
2 +{{html}}
3 +#set ($createWikiDocReference = $services.model.createDocumentReference($services.wiki.mainWikiId,
4 + 'WikiManager', 'CreateWiki'))
5 +#if ($hasCreateWiki && $xwiki.exists($createWikiDocReference)
6 + && $services.security.authorization.hasAccess('view', $createWikiDocReference))
7 + <p>
8 + <a href="$xwiki.getURL('WikiManager.CreateWiki')" class="button button-success" id="tmCreateWiki">
9 + $services.icon.renderHTML('add') $services.localization.render('platform.wiki.create.button')
10 + </a>
11 + </p>
12 +#end
13 +{{/html}}
4 4  #set($columns = ['wikiprettyname', 'description', 'owner', 'doc.creationDate', 'membershipType'])
5 -#set($columnsProperties = {
6 - 'wikiprettyname' : { 'type' : 'text', 'link' : 'field' },
7 - 'description' : { 'type' : 'text' , 'size' : 50, 'html' : 'true' },
8 - 'owner' : { 'type' : 'text', 'size' : 10, 'html' : 'true' },
9 - 'membershipType' : { 'sortable': false, 'filterable': false},
10 - 'doc.creationDate' : { 'type' : 'date', 'size' : 10, 'html' : 'false' }
11 -})
12 -#set($options = {
13 - 'className' : 'XWiki.XWikiServerClass',
14 - 'rowCount' : 10,
15 - 'resultPage' : 'WikiManager.WikisLiveTableResults',
16 - 'translationPrefix' : 'platform.wiki.browse.'
17 -})
18 18  #if(!$isGuest)
19 19   #set($discard = $columns.add('_actions'))
20 - #set($discard = $columnsProperties.put('_actions', { 'actions' : ['join', 'requestJoin', 'cancelJoinRequest', 'viewInvitation', 'leave', 'edit', 'delete'] }))
21 21  #end
22 -#livetable('wikis', $columns, $columnsProperties, $options)
18 +
19 +#set ($liveDataConfig = {
20 + 'meta': {
21 + 'propertyDescriptors': [
22 + { 'id': 'wikiprettyname', 'displayer': { 'id': 'link', 'propertyHref': 'wikiprettyname_url' } },
23 + { 'id': 'owner', 'editable': false},
24 + { 'id': 'membershipType', 'sortable': false, 'filterable': false, 'editable': false },
25 + {
26 + 'id': '_actions',
27 + 'displayer': {
28 + 'id': 'actions',
29 + 'actions': ['join', 'leave', 'requestJoin', 'cancelJoinRequest', 'viewInvitation', 'edit', 'delete']
30 + }
31 + }
32 + ],
33 + 'actions': [
34 + {
35 + 'id': 'join',
36 + 'icon': 'user_add',
37 + 'allowProperty': 'doc.hasjoin',
38 + 'urlProperty': 'doc.join_url'
39 + },
40 + {
41 + 'id': 'leave',
42 + 'icon': 'user_delete',
43 + 'allowProperty': 'doc.hasleave',
44 + 'urlProperty': 'doc.leave_url'
45 + },
46 + {
47 + 'id': 'requestJoin',
48 + 'icon': 'bell',
49 + 'allowProperty': 'doc.hasrequestJoin',
50 + 'urlProperty': 'doc.requestJoin_url'
51 + },
52 + {
53 + 'id': 'cancelJoinRequest',
54 + 'icon': 'bell_delete',
55 + 'allowProperty': 'doc.hascancelJoinRequest',
56 + 'urlProperty': 'doc.cancelJoinRequest_url'
57 + },
58 + {
59 + 'id': 'viewInvitation',
60 + 'icon': 'envelope',
61 + 'allowProperty': 'doc.hasviewInvitation',
62 + 'urlProperty': 'doc.viewInvitation_url'
63 + }
64 + ]
65 + }
66 +})
67 +#set ($sourceParameters = $escapetool.url({
68 + 'className' : 'XWiki.XWikiServerClass',
69 + 'resultPage' : 'WikiManager.WikisLiveTableResults',
70 + 'translationPrefix' : 'platform.wiki.browse.',
71 + '$doc' : $doc.fullName
72 +}))
73 +{{liveData
74 + id='wikis'
75 + source='liveTable'
76 + sourceParameters="$sourceParameters"
77 + properties="$stringtool.join($columns, ',')"
78 + limit=10
79 +}}$jsontool.serialize($liveDataConfig){{/liveData}}
80 +#set($docextras=[])
23 23  {{/velocity}}
XWiki.StyleSheetExtension[0]
Política de cacheado
... ... @@ -1,1 +1,0 @@
1 -long
Código
... ... @@ -1,19 +1,0 @@
1 -.actionjoin {
2 - background-image: url("$xwiki.getSkinFile('icons/silk/user_add.png')");
3 -}
4 -
5 -.actionleave {
6 - background-image: url("$xwiki.getSkinFile('icons/silk/user_delete.png')");
7 -}
8 -
9 -.actionrequestJoin {
10 - background-image: url("$xwiki.getSkinFile('icons/silk/bell.png')");
11 -}
12 -
13 -.actioncancelJoinRequest {
14 - background-image: url("$xwiki.getSkinFile('icons/silk/bell_delete.png')");
15 -}
16 -
17 -.actionviewInvitation {
18 - background-image: url("$xwiki.getSkinFile('icons/silk/script.png')");
19 -}
Parsear contenido
... ... @@ -1,1 +1,0 @@
1 -Sí
Utilizar esta extensión
... ... @@ -1,1 +1,0 @@
1 -currentPage