Cant move pages properly (page hierarchy / page tree)

Hi all,

I am having trouble with the Move / Rename function for imported content.
Two issues,
1: I am not seeing the full tree to make the move (for example I want to move ‘Making a template’ to under ‘Getting Starting’ - creating pages from scratch seems ok, but working with imported content (from Confluence) it doesn’t seem like an option
2: If i choose another location such as “Home” I then run into the following error

Error number 4001 in 4: Error while evaluating velocity template rename.vm

Error number 4001 in 4: Error while evaluating velocity template rename.vm com.xpn.xwiki.XWikiException: Error number 4001 in 4: Error while evaluating velocity template rename.vm

image

image

Any help would be greatly appreciated

You need to be aware that there are 2 types of pages in XWiki: nested and terminal. See https://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/Features/ContentOrganization/ . Terminal pages cannot have child pages so obviously you cannot move anything below them. For this reason terminal pages are not shown in the page tree when choosing the target location for the move. My guess is that “Getting Starting” is a terminal page. Did you run the nested pages migrator when imported content from Confluence? See https://extensions.xwiki.org/xwiki/bin/view/Extension/Nested%20Pages%20Migrator%20Application . Alternatively, as shown on https://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/Features/DocumentLifecycle/#HMove2FRename , you can “rename” a terminal page into a nested page (only uncheck the terminal page checkbox in the rename step).

The most useful part of a stack trace is usually at the end. Without it it’s hard to say what the problem is. Can you paste the full stack trace, or at least the part after the last “caused by”.

Greatly appreciate your reply, that helps clear up a lot of things.

I actually had an issue with the Confluence Migrator, specifically the Nested Page (Step 6).

So without that last step, all content moved from Confluence will end up being terminal pages?

I think so yes. @trrenty can you confirm?

Hello, yes. The ‘Import from Confluence’ step will import all the pages from confluence as terminal pages. It is up to the Nested Pages Migrator App to recreate the hierarchy.

1 Like

Thanks for your reply.

So aside from the Nested Pages Migrator App, is there another way to bulk rename/convert terminal pages to nested pages?

The only alternative I can think of is to write a script to perform the bulk rename, but this means doing what the Nested Pages Migrator does, more or less (without using its UI).