Did you try to list pages using a small code block ? Maybe some pages are remaining.
To rename a space, I use that code (syntax 1.0) :
1 Rename Space
#if($request.space)
#if("doRename"==$request.op)
#set($space=$request.space)
#foreach($item in $xwiki.getSpaceDocsName($request.space))
$xwiki.getDocument("${space}.${item}").rename("${request.newname}.${item.replace('.','_')}")
#end
1.1 Renamed space $space to $request.newname
[Cancel>$doc.fullName]
#end
#if("listRename"==$request.op)
#set($space=$request.space)
1.1 Renaming space $space to $request.newname
#foreach($item in $xwiki.getSpaceDocsName($request.space))
* Renaming $space.$item to ${request.newname}.${item.replace('.','_')}
#end
[Confirm>$doc.fullName?space=$space&newname=$request.newname&op=doRename]
[Cancel>$doc.fullName]
#end
#if("getNewName"==$request.op)
Renaming $request.space
1.1 Renaming ${request.space}
<form method="post" action="$doc.getURL("view",
"")" onsubmit="cancelCancelEdit()">
<div class="padded centered">
<input type="hidden" name="space"
value="${request.space}" />
<input type="hidden" name="op" value="listRename" />
Enter new name for the space:
<input type="text" name="newname"
value="${request.space}" class="panelinput"
style="margin:auto;" onfocus="if(this.value=='Title')
this.value=''" onblur="if(this.value=='')
this.value='Title'"/>
</div>
<div class="padded centered" style="text-align:center;">
<input type="submit" class="button" style="margin:auto;"
value="Rename"/>
</div>
</form>
[Cancel>$doc.fullName]
#end
#else
{table}
Space | Action
#foreach($space in $xwiki.spaces)
$space | [Rename>$doc.fullName?space=${space}&op=getNewName]
#end
{table}
#end
-----Message d'origine-----
De : users-bounces(a)xwiki.org [mailto:users-bounces@xwiki.org]
De la part de Xavier Bartholome
Envoyé : lundi 11 janvier 2010 17:23
À : users(a)xwiki.org
Objet : [xwiki-users] Question re: Spaces
Hi,
I tried to delete a space by deleting all pages in it, but it
still appears
in the spaces lists (on the main page and in the panel)
alltough with a
question mark indicating that a page should be created ...
how can I remove
it from there?
Also, How can I rename an existing space?
Thanks in advance,
Xavier
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
--------------------------------------------------------------------------------
This e-mail is intended only for the addressee named above. It does not bind the sender,
except in the case of an existing written convention with the addressee. This e-mail may
contain material that is confidential and privileged for the sole use of the intended
recipient. Any review, reliance or distribution by others or forwarding without express
permission is strictly prohibited and may be unlawful. If you are not the intended
recipient, please contact the sender and delete all copies.
While reasonable precautions have been taken to ensure that this e-mail and any
attachments are free from any computer virus or similar defect, no liability will be
accepted in that respect. Anyone accessing this e-mail must take their own precautions as
to security and virus protection.
KBL European Private Bankers S.A., 43 boulevard Royal L-2955 Luxembourg, R.C.S. Luxembourg
B 6395, T (352) 47 97 1