About renaming a space without renaming all its containing pages, I
guess many people's first thought would be to introduce a DB table for
Space,
it has an editable "Name" field, and another system generated "ID" field
Each page has a foreign key referencing Space.ID, and it's uniquely
identified as <Space.ID>.<Page.Name>.
Now the name of a Space could be changed without affecting its
relationship with its containing pages, that is no need to rename all
pages with the new space name.
The current design doesn't have Space concept at database level,  it
was just implied/computed at run time from page's full name <space
name>.<page name>.
looks to me such design has performance issues, and request more code
logic.    Probabely there are some things in the design that we are
missing, not aware of.



On Thu, Aug 30, 2012 at 2:35 PM, Vincent Massol <[email protected]> wrote:
>
> On Aug 29, 2012, at 11:37 AM, drolgaf <[email protected]> wrote:
>
>> Hi all,
>>
>> I have a major problem here, as we have around 10 Spaces filled with many
>> pages and now we need to rename some spaces. We'd like to move the sub pages
>> in these spaces too. Finally, a space should have a new name, and all pages
>> below should be referenced to the new space name correctly (including those
>> backlinks at the top).
>>
>> I can't believe this isn't possible :-(
>>
>> http://extensions.xwiki.org/xwiki/bin/view/Extension/Rename+Space doesn't
>> help obviously.
>
> Why not?
>
> You need to understand that there's no intrinsic space notion in XWiki. 
> Documents have a name in the form <Space>.<Page> and this implicitly creates 
> a <Space> space. For ex if you have one document name Space1.Page1 this means 
> there's a Space1 space and if you remove this document the Space1 space no 
> longer exists.
>
> So all you need to do is rename all pages and this will rename the space.
>
> Thanks
> -Vincent
>
>> Thanks in advance for any help
>>
>> Information:
>>
>> XWiki 3.5 standalone
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to