Toggle navigation
Go
Log-in
Register
Home
Go to Wiki
Wiki Index
Document Index
User Index
Main
Go to Space
Document Index
Rename Spaces
Wiki Home: Projeto ODR UnB/MI
Space Index
Rename Spaces
Wiki source code of
Rename Spaces
More actions
Content
Comments
Attachments
History
Information
Show line numbers
{{velocity}} = Rename space = #if($request.action == 'rename') #if($request.from && $request.to) Renamings: #foreach($item in $xwiki.getSpaceDocsName($request.from)) #set ($fromReference = $services.model.createDocumentReference("", $request.from, $item)) #set ($toReference = $services.model.createDocumentReference("", $request.to, $item)) * Renamed [$services.model.serialize($fromReference)] to [$services.model.serialize($toReference)] #set($ok = $xwiki.getDocument($fromReference).rename($toReference)) #end #end #end {{html wiki='true'}} <form action="$doc.getURL()" method="post" class="xform third"> <input type="hidden" name="action" value="rename" /> <div class="xform"> <dl> <dt>Source space:</dt> <dd><select name="from"> <option value="">please select</option> #foreach($space in $xwiki.getSpaces()) <option value="$escapetool.xml($space)">$escapetool.xml($space)</option> #end </select></dd> <dt>New space:</dt> <dd><input type="text" name="to" value=""/></dd> </dl> </div> <div class="buttons"> <input type="submit" value="Rename" class="button" /> </div> </form> {{/html}} {{/velocity}}
Applications
Blog
Dashboard
User Index
Quick Links
Sandbox