Open danielrpfeiffer opened 2 years ago
Root is a virtual root or a virtual refence ,as there is no physically folder reference to root, its an object so moving a file it to a parent it will work due to it being a physical directory \users\pages so by nature its not possible to move a page to the root, you can associate an existing page with its parent being root. This part of the flex-object upgrade of the admin panels. So the nature you describing is working correctly
Creating a new page in root works and must have a reference. Resetting a page to this original (root) reference shall be possible. From a technical perspective, I don't see any reason why this should not be possible.
Well before flex was written, there was no root, you can turn off the flex admin pages and use it like an earlier version of grav There is a difference creating/moving a page with a parent of root, rather than being moved and copied in to root (which is just an object rather than a physical entity
In your understanding where do you think root exists ? root exist at \user\pages so it you manually created it , you would do in that folder and 01.page will be assigned with the parent to root ?
Thanks for your answer. I still don't understand why (using the admin plugin) a page can be created at the root of the structure but cannot be moved back there if moved elsewhere.
For now, I try to avoid moving pages. If it is necessary, I manually work around by copy/paste the content into a newly created page.
Grav v1.7.34 - Admin v1.10.34 OS: FreeBSD 13.1; NGINX; PHP 8.1.5
Using the Admin plugin, I can create a new page in the root folder. I also can move it under a different parent but cannot move it back to root. Error: Forbidden.
This is how I can reproduce the error:
Step 1 [Creating a new page with default settings. (works)
Step2 [Moving page under different parent (works)]
Step 3 [Moving page back to root-parent]
[ERROR]
Please advice. Thank you