From version < 4.1
edited by Administrator
on 2020/09/21 16:06
To version 1.1 >
edited by Administrator
on 2015/07/06 22:29
Change comment: Install extension [org.xwiki.platform:xwiki-platform-wiki-ui-mainwiki-7.1.1]

Summary

Details

Page properties
Content
... ... @@ -1,15 +1,11 @@
1 1  {{velocity}}
2 -{{html}}
3 -#set ($createWikiDocReference = $services.model.createDocumentReference($services.wiki.mainWikiId, 'WikiManager', 'CreateWiki'))
4 -#if ($hasCreateWiki&& $xwiki.exists($createWikiDocReference)&& $services.security.authorization.hasAccess('view', $createWikiDocReference))
5 - <p><a href="$xwiki.getURL('WikiManager.CreateWiki')" class="button button-success" id="tmCreateWiki">$services.icon.renderHTML('add') $services.localization.render('platform.wiki.create.button')</a></p>
6 -#end
7 -{{/html}}
2 +## Load the User Picker style for the wiki owner column.
3 +#set($discard = $xwiki.ssfx.use('uicomponents/widgets/userpicker/userPicker.css'))
8 8  #set($columns = ['wikiprettyname', 'description', 'owner', 'doc.creationDate', 'membershipType'])
9 9  #set($columnsProperties = {
10 10   'wikiprettyname' : { 'type' : 'text', 'link' : 'field' },
11 11   'description' : { 'type' : 'text' , 'size' : 50, 'html' : 'true' },
12 - 'owner' : { 'html' : 'true' },
8 + 'owner' : { 'type' : 'text', 'size' : 10, 'html' : 'true' },
13 13   'membershipType' : { 'sortable': false, 'filterable': false},
14 14   'doc.creationDate' : { 'type' : 'date', 'size' : 10, 'html' : 'false' }
15 15  })
... ... @@ -21,16 +21,7 @@
21 21  })
22 22  #if(!$isGuest)
23 23   #set($discard = $columns.add('_actions'))
24 - #set($discard = $columnsProperties.put('_actions', {
25 - 'actions': [
26 - {'id': 'join', 'icon': 'user_add'},
27 - {'id': 'leave', 'icon': 'user_delete'},
28 - {'id': 'requestJoin', 'icon': 'bell'},
29 - {'id': 'cancelJoinRequest', 'icon': 'bell_delete'},
30 - {'id': 'viewInvitation', 'icon': 'envelope'},
31 - 'edit', 'delete'
32 - ]
33 - }))
20 + #set($discard = $columnsProperties.put('_actions', { 'actions' : ['join', 'requestJoin', 'cancelJoinRequest', 'viewInvitation', 'leave', 'edit', 'delete'] }))
34 34  #end
35 35  #livetable('wikis', $columns, $columnsProperties, $options)
36 36  #set($docextras=[])
XWiki.StyleSheetExtension[0]
cache
... ... @@ -1,0 +1,1 @@
1 +long
code
... ... @@ -1,0 +1,19 @@
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 +}
parse
... ... @@ -1,0 +1,1 @@
1 +Yes
use
... ... @@ -1,0 +1,1 @@
1 +currentPage
Copyright 2018 - Österreichisches Weltraum Forum. All rights reserved.