[solved] Renaming pages - cannot find parent page after moving page from subwiki

Here’s a strange problem: I am reorganizing the pages in my xwiki (imported pages to a subwiki, clean them up and them moving them to the main wiki) and I’ve got a problem.

The pages I’ve created/migrated do not show up in the Select Page dialog when I try to set the parent of this page. See the linked screenshot

The above screenshot shows the correct hierarchy under navigation on the left hand side, but most of those those pages do not show up in the Select Page tree view (right hand side of the screen shot)

I’ve tried reindexing, but that made no difference.

Does anyone know how I can solve this problem, or how I can convince xwiki that these pages exist?

The pages that do no show up were imported-into-a-subwiki confluence pages, and then moved into the parent wiki using the rename feature.

Edit: The pages show up correctly in the Tree View of the Page Index application found under Administration, just not under the Move/Rename, New Location, Select Page tree view.

Edit2: Is there another way I can organize my page hierarchy if I cannot get this method to work?

Edit3: it’s definitely a problem with the pages moved from my subwiki. If I create a page, everything is fine - but if I rename/move from the subwiki, that page will not show up.

Yes, because the navigation tree shows all the pages while the Select Page dialog shows only the pages that can have children. If you want to move page X under Y then Y must be able to support child pages. And yes, not all the pages can have child pages. There are two types of pages: nested pages and terminal. Terminal pages can’t have children (they are leafs in the hierarchy tree). See http://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/Features/ContentOrganization/#HTerminology .

The blank pages you create from the Create Page wizard are nested by default. There’s a check box to toggle between nested and terminal, but it’s only displayed to advanced users http://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/Features/DocumentLifecycle/#HMove2FRename. The problem in your case is that the confluence importer has created terminal pages. You can “convert” a terminal page to a nested page easily though, by simply “renaming” that page without changing anything except for the terminal flag. Switch your user profile to advanced before that http://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/Features/PageEditing#HAdvancedMode .

2 Likes

That was exactly the problem. Problem solved.

Thanks!

@tmortagne: Maybe this should be raised as a Jira issue?

It might be a useful option to have

Looks like https://jira.xwiki.org/browse/CONFLUENCE-9.

oh that’s funny and ironic :slight_smile: I created this issue apparently but forgot about it. Must have created it on behalf of some other users since I don’t use the importer myself.

Probably the suggested workaround prevented the issue from being too much of a bother.