Page 1 of 1

Draft not working when page has a parent

Posted: Sat Mar 25, 2023 4:43 pm
by cobber
Hi everyone.

Been working on my website and noticed that when I attempt to set a child page to a 'draft' and then save it, the page reverts back to published.

Has anyone else experienced this?

For now, as a workaround, I simply remove the parent from the 'Options' panel.
I can re-add it when I make the page go live.

Also, I would like to make a suggestion that the 'draft' option be added to the drop-down.
The exact location within the options -> Advanced -> Type located within the panel on the right

Great cms as always

Re: Draft not working when page has a parent

Posted: Sun Mar 26, 2023 9:48 am
by tiloschroeder
I can reproduce this behavior.

The only possible solution: do not create the draft as a subpage. Only when you want to put the page online, attach it as a corresponding subpage.

Re: Draft not working when page has a parent

Posted: Sun Mar 26, 2023 10:00 am
by tiloschroeder
If the sub-page is already online, just remove the parent page from "Options"->"Advanced" and switch to "Draft" and click on "Save settings".

Re: Draft not working when page has a parent

Posted: Sun Mar 26, 2023 8:45 pm
by cobber
Thanks, that is what I ended up doing.

Re: Draft not working when page has a parent

Posted: Mon Mar 27, 2023 6:48 am
by CrazyBread
Nevertheless, I would recommend you to open an issue on github.
I don't think that this is the normal behaviour the user would expect.

Re: Draft not working when page has a parent

Posted: Mon Mar 27, 2023 1:56 pm
by tiloschroeder
CrazyBread wrote: Mon Mar 27, 2023 6:48 am Nevertheless, I would recommend you to open an issue on github.
It's more complex than we thought.

When a page is created (e.g. as "static") and saved as draft, the page type is reset to "default". So somehow page status (draft, published) and page type (default, sticky, static) are still linked, which makes no sense from my point of view.

Are these two issues for you or one related issue?