-
-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Saving completely custom page form #1163
Comments
I think line 464's conditional needs to check if $data['route'] isset. if (!isset($data['folder'])) {
$data['folder'] = $obj->slug();
$this->data['folder'] = $obj->slug();
} |
Folder is a required field for the page, so your custom blueprint needs to include it (along with other required elements). The best approach is to extend default then add your new things, in a new tab, you can even put that tab first if you like. |
You need to extend default, and use |
Thinking about it again, the documentation example works because it's setting the But it stopped working in 1.5.0, fixed in repo. |
All my forms stopped working after the update, I came across this issue, but the suggested solution wasn't satisfactory for my needs. I want my users to be able to edit the content, but I also need to hide from them any advanced tab and field. This is the solution I found; adding the folder input with the type
|
Hi,
saving a custom page (grav doc) within the admin panel leads to the following exception.
Undefined index: folder in user\plugins\admin\classes\admincontroller.php line 464.
It looks like commit #d802b97 is the reason for this.
Best and thanks,
Daniel
The text was updated successfully, but these errors were encountered: