General Actions:
Log-in
Register
Wiki:
Main wiki
▼
:
Document Index
»
Space:
WorkspaceManager
▼
:
Document Index
»
Page:
WebHome
Search
en
Page Actions:
Export
▼
:
Export as PDF
Export as RTF
Export as HTML
More actions
▼
:
Print preview
View Source
Main wiki
»
Browse Workspaces
Wiki source code of
Browse Workspaces
Last modified by
Administrator
on 2012/03/21 17:40
Content
·
Comments
(0)
·
Annotations
(0)
·
Attachments
(0)
·
History
·
Information
Hide line numbers
1: {{velocity}} 2: #set($columns = ['wikiprettyname', 'description', 'owner', 'membershipType']) 3: #set($columnsProperties = { 4: 'wikiprettyname' : { 'type' : 'text', 'link' : 'field' }, 5: 'description' : { 'type' : 'text' , 'size' : 50 }, 6: 'owner' : { 'type' : 'text', 'link' : 'field' }, 7: 'membershipType' : { 'type' : 'text', 'class' : 'WorkspaceManager.WorkspaceClass'} 8: }) 9: #set($options = { 10: 'className' : 'XWiki.XWikiServerClass', 11: 'rowCount' : 10, 12: 'resultPage' : 'WorkspaceManager.BrowseWorkspacesLiveTableResults', 13: 'translationPrefix' : 'workspacemanager.browse.' 14: }) 15: #if(!$isGuest) 16: #set($discard = $columns.add('_actions')) 17: #set($discard = $columnsProperties.put('_actions', { 'actions' : ['join', 'requestJoin', 'cancelJoinRequest', 'viewInvitation', 'leave', 'delete'] })) 18: #end 19: [[Create a new Workspace>>CreateNewWorkspace]] 20: #livetable('workspaces', $columns, $columnsProperties, $options) 21: {{/velocity}}