Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xwiki-platform
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
XWiki
xwiki-platform
Commits
59be92a5
Commit
59be92a5
authored
12 years ago
by
Eduard Moraru
Browse files
Options
Downloads
Patches
Plain Diff
XWIKI-8612: More workspace template issues (pretty name and membership type)
parent
676f3bbc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
xwiki-platform-core/xwiki-platform-workspace/xwiki-platform-workspace-ui/src/main/resources/WorkspaceManager/Install.xml
+9
-6
9 additions, 6 deletions
...kspace-ui/src/main/resources/WorkspaceManager/Install.xml
with
9 additions
and
6 deletions
xwiki-platform-core/xwiki-platform-workspace/xwiki-platform-workspace-ui/src/main/resources/WorkspaceManager/Install.xml
+
9
−
6
View file @
59be92a5
...
...
@@ -112,14 +112,17 @@
#if ($hasGlobalAdmin)
#if ($doc.getAttachment($TEMPLATE_PACKAGE))
#if ("$!request.confirmTemplateInstall" == '1')
#set ($result = $WikiManager.createWikiTemplate($TEMPLATE_NAME,
$msg.get('platform.workspace.templateWikiTitle')
, $TEMPLATE_PACKAGE))
#set ($result = $WikiManager.createWikiTemplate($TEMPLATE_NAME,
''
, $TEMPLATE_PACKAGE))
#if ($result == $Exception.ERROR_NOERROR)
## Set the template's pretty name.
#set($wikiTemplateDocument = $WikiManager.getWikiDocument($TEMPLATE_NAME))
#set($workspaceObj = $wikiTemplateDocument.getObject('WorkspaceManager.WorkspaceClass'))
#if(!$workspaceObj)
#set($discard = $wikiTemplateDocument.createNewObject('WorkspaceManager.WorkspaceClass'))
#set($discard = $wikiTemplateDocument.save())
#end
#set($discard = $wikiTemplateDocument.setWikiPrettyName($msg.get('platform.workspace.templateWikiTitle')))
##
## Mark the template as a workspace to differentiate it from other regular wiki templates.
#set($workspaceObj = $wikiTemplateDocument.getObject('WorkspaceManager.WorkspaceClass', true))
#set($discard = $workspaceObj.set('membershipType', 'open'))
#set($discard = $wikiTemplateDocument.save('Marked the template as a workspace.', true))
##
## Use a redirect so that the page can be refreshed after the form's POST.
#set ($discard = $response.sendRedirect($doc.getURL()))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment