ich teste gerade die Umgebung von Kirby mit dem aktuellen Startkit-Master.
Bisher gibt es hierbei keinerlei Probleme. Allerdings möchte ich versuchen, die Seite des Shops einzufügen. Hierfür habe ich die Templates, Blueprints, Sections, etc. sowie es auf der Webseite Shop | Kirby CMS dokumentiert ist, hinzugefügt.
Allerdings wird mir nach dem erstellen und öffnen der Shop-Seite die Fehlermeldung “The JSON response from the API could not be parsed. Please check your API connection.” angezeigt.
Gibt es hier Erfahrungen, die mir weiterhelfen könnten?
Bzw. Kann ich denn überhaupt einen Shop auf dem Starterkit-Master integrieren? Oder geht es grundsätzlich nur in den lizenzierten Produkten?
The blueprint expects a published shop page, not a draft (otherwise, you would have to change the parent page query, using kirby.page('shop') instead. Try publishing the page and check if the error persists.
Well the API-error doesn’t persist anymore.
The title and the option bar is available but there is now the message “This page has no blueprint setup yet.”
Check if the shop’s page content file is really called shop.txt. If you created it from the Panel and didn’t change site.yml, then all pages are created with the default blueprint.
That is because the create options is set to the default template… You would have to remove that option and also allow the shop template under templates.
the shop.txt exist, but it still lays in the _drafts folder.
I have already changed the site.yml. i commented the create line out and added shop to the templates line. so that is why i even can choose the shop template when creating a new page.
So what i probably meant is that i can create / add / publish a new page with the shop template. More or less. I can choose the shop template after deleting the “create: default” line in the site.yml.
In the panel the shop-page shows the status “blocked” with an red stop icon. I can go to the shop panel page but however there was the API error message and now there is the no blueprint message.
I do not know if this is helpfull. But i can’t describe it in a better way
Ok, the shop.yml has status: false, so that you cannot change the page from draft to published. Please set the value of this option to true, then change the page status to published by clicking on “Entwurf”.
The problem here is that the blueprint setup sort of expects that you create the page manually and after that, the status should not be changed anymore. But if you create the page via the Panel, it must be possible to change the status, otherwise the whole rest doesn’t work as expected.