Allgemeine Aktionen:
Anmelden
Wiki
▼
:
Dokumentenindex
»
Space:
Main
▼
:
Dokumentenverzeichnis
»
Seite:
Spaces
Suche
Aktionen:
Exportieren
▼
:
Als PDF exportieren
Als RTF exportieren
Als HTML exportieren
Weitere Aktionen
▼
:
Druckvorschau
Zeige den Quellcode
Willkommen in den metamagix Wikis!
»
Dashboard
»
Spaces
Wiki-Quellcode von
Spaces
Zuletzt geändert von
Administrator
am 2009/09/09 02:00
Inhalt
·
Kommentare
(0)
·
Anmerkungen
(0)
·
Anhänge
(0)
·
Historie
·
Information
Zeilennummern anzeigen
{{velocity}} ## ## List spaces within the wiki. ## $xwiki.ssx.use("Main.Spaces")## ## ## List of spaces in this wiki. ## This page allow to display spaces within this wiki and to delete any space. ## Only wiki administrators are allowed to delete spaces. ## ## Optional HTTP parameter : ## deleteSpace name of a space to delete. ## ## Delete space if requested. ## #set($spaceToDelete = "$!request.getParameter('deleteSpace')") #if("$!spaceToDelete" != '' && $xwiki.hasAdminRights()) #foreach ($page in $xwiki.getSpaceDocsName($spaceToDelete)) #set($discard = $xwiki.getDocument("${spaceToDelete}.${page}").delete()) #end {{info}}Space ”${spaceToDelete}“ deleted.{{/info}} #set($xredirect = "$!request.getParameter('xredirect')") ## Redirect to the previous page if requested. #if("$!xredirect" != '') $response.sendRedirect($xredirect) #end #end #set($spaceList = $xwiki.getSpaces()) ## Get this very doc, useful when it is included from another one. #set($spaceListDoc = $xwiki.getDocument('Main.Spaces')) {{html wiki="true"}} <ul class="xlist"> ## ## List spaces. ## #foreach($space in $spaceList) ## Display space only if the user has view right on space home and if the space is not blacklisted. ## $blacklistedSpaces is set in xwikivars.vm #if($xwiki.hasAccessLevel('view', "${space}.WebHome") && !$blacklistedSpaces.contains($space)) <li class="xitem xunderline xhighlight space"> <div class="xitemcontainer"> <div class="spSpaceName">[[${space}>>${space}.WebHome]]</div> <div class="xshowonhover spSpaceActions"> ## Link to the space index. <a href="$xwiki.getURL('Main.SpaceIndex', 'view', "space=$escapetool.url($space)")" title="$msg.get('xe.spaces.action.index')"> <img src="$xwiki.getSkinFile('icons/silk/book_open.gif')" alt="Space index icon"/> </a> ## If the user has admin right on the space display links to administration and delete. #if($xwiki.hasAccessLevel('admin', "${space}.XWikiPreferences")) <a href="$xwiki.getURL("${space}.WebPreferences", 'admin')" title="$msg.get('xe.spaces.action.admin')"> <img src="$xwiki.getSkinFile('icons/silk/cog.gif')" alt="Administrate space icon"/> </a> ## <a href="#" onclick="confirm('ALL THE PAGES WITHIN THE SPACE “${space}” WILL BE DELETED, are you sure that you want to continue ?'); this.href='$spaceListDoc.getURL('view', "deleteSpace=${space}&xredirect=$doc.getExternalURL()")'" title="$msg.get('xe.spaces.action.delete')"> ## <img src="$xwiki.getSkinFile('icons/silk/cross.gif')" alt="Delete space icon" /> ##</a> #end </div> <div class="xspacer"> </div> </div> </li> #end #end ## ## Space creation. ## #if($xwiki.hasAdminRights()) <li id="spSpaceCreateItem" class="xitem space"> <div class="xitemcontainer"> <div id="spSpaceCreateLabel" class="spSpaceName"><a href="$xwiki.getURL('XWiki.CreatePage', 'view', 'tocreate=space')" onclick="toggleClass($('spSpaceCreateForm'), 'hidden'); return false;">$msg.get('xe.spaces.createspace')</a></div> <div class="spacer"> </div> <div id="spSpaceCreateForm" class="hidden"> <form method="post" action="$doc.getURL('view', 'xpage=create')"> <div> <input name="tocreate" type="hidden" value="space" /> #set($newSpaceName = $msg.get('xe.spaces.createspace.defaultname')) <label class="hidden" for="spSpaceCreateTextInput">$newSpaceName</label> <input id="spSpaceCreateTextInput" type="text" name="space" value="$newSpaceName" class="panelinput" onfocus="if(this.value=='$newSpaceName') this.value=''" onblur="if(this.value=='') this.value='$newSpaceName'" /> <span class="buttonwrapper"> <input type="submit" value="$msg.get('xe.spaces.createspace.submit')" class="button" /> </span> </div> </form> </div> <div class="spacer"> </div> </div> </li> #end </ul> {{/html}} {{/velocity}}