I’m working on a page blueprint.
In the admin panel, I have the result I want and it shows the information from the markdown page.
Therefore, when I try to save the page in the admin panel, I have this error:
> Argument 1 passed to Grav\Common\Page\Page::move() must be an instance of Grav\Common\Page\Page, null given, called in C:\wamp\www\charitybackpackers\user\plugins\admin\classes\admincontroller.php on line 498 and defined
I know that it comes from the blueprint, but I can’t find the mistake.
Here is the markdown file of the desired output:
googlemaps: map: center: 51.009314, 4.061254 zoom: 12 markers: - location: 51.009358, 4.061578 title: Title of the 1st marker zIndex: 1 timeout: 1000 info: Description of the 1st marker - location: 51.017227, 4.073198 title: Title of the 2nd marker zIndex: 2 timeout: 2000
Here is the blueprint I wrote:
title: Marker form: fields: tabs: type: tabs active: 1 fields: tab: type: tab title: Google maps fields: header.googlemaps: type: fieldset title: "Options of the map:" fields: header.googlemaps.map.center: type: text label: "Center:" header.googlemaps.map.zoom: type: text label: "Zoom:" header.googlemaps.map.markers: type: list btnLabel: Add one marker label: "Your markers:" fields: .title: label: Title type: text .info: label: Description type: text .location: label: Location type: text .zIndex: label: zIndex type: text .icon: label: Icon type: text .timeout: label: Timeout type: text
And here is a screenshot of the admin panel:
As you can see, it reads the pre-existing info in the markdonw file, but if I save, i get the error.
If anyone could help me with this.
Thank you in advance !