Deleting Parent Pages

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
9/1/2009 3:48:45 AM
Gravatar
Total Posts 18

Deleting Parent Pages

Hi Joe,

We had an interesting support call on Friday - one of our users had deleted a parent page and all of the child pages of that paretn page were then displayed in the main menu - i.e. they were deemed root level pages. I tried it out on the demo site and the same thing occurred.

To recreate:

1. create a page
2. create another page as a child of first page
3. delete first page

I'm not sure if this is expected behaviour, but it certainly surprised us.

Can you advise please if this is a bug, or whether we should re-educate our users.

Many thanks,
Kevin

9/1/2009 6:24:32 AM
Gravatar
Total Posts 18439

Re: Deleting Parent Pages

Hi Kevin,

Its not a bug. The only thing that differentiates a root level page is that it has a parentid of -1 and parentguid of guid.empty.

If a parent page is deleted its children must be de-parented by changing their parent id to -1 and parent guid to guid.empty so naturally they fall to the root. Leaving them attached to ids that no longer exist is not an option so the only other choice would be to delete child pages and that seems heavy handed and could lead to accidental deletion of pages.

Best,

Joe

9/1/2009 7:02:58 AM
Gravatar
Total Posts 18

Re: Deleting Parent Pages

OK,
thanks Joe

You must sign in to post in the forums. This thread is closed to new posts.