Hello,
I have built a theme and I want to remove the Options and the Advanced tabs in the Admin Panel.
The blueprint is read correctly and the form is displayed without the Advanced tab, but whenever I stry to save the page the Admin panel throws an exception:
TypeError
Argument 1 passed to Grav\Common\Page\Page::move() must be an instance of Grav\Common\Page\Page, null given, called in /home/chavdar/dev/html/root/user/plugins/admin/classes/controller.php on line 1867
Without the ignore on the Advanced tab, the page is saved successfully. This is the blueprint I am using:
title: Featured work
'@extends':
type: default
context: blueprints://pages
form:
fields:
tabs:
type: tabs
active: 1
fields:
advanced:
type: ignore
featuredProj:
type: tab
title: Featured work
fields:
header.buttons:
name: buttons
type: list
label: Buttons
fields:
.text:
type: text
label: Text
.url:
type: text
label: URL
.primary:
type: toggle
label: Primary
highlight: 1
default: 1
options:
1: 'Yes'
0: 'No'
validate:
type: bool
It’s probably a newbie error, but I am unable to locate my mistake and I hope someone can help me.
Thanks!