I'm trying to put part of a blueprint into a separate blueprint, so I can import it into several others. To do this, I followed the instructions on advanced blueprint features. I created a new folder within my theme's blueprints folder, called partials and creates a sidebar.yaml file with the tab and fields definition exactly as it previously was in my main blueprint, main_left.yaml. The main blueprint now looks like this (all content has been moved to the partial):
title: Main Left
extends@:
type: default
context: blueprints://pages
import@:
type: partials/sidebar
context: blueprints://
However, split up like this, the new tab does not appear in the admin panel.
For brevity, I'm omitting the content of sidebar.yaml, because if I add it directly into main_left.yaml (instead of the import statement), it works just fine. My assumption is that the type and/or context values are somehow wrong and Grav can't find the partial blueprint. To be honest, from the documentation, I couldn't understand what contextdoes . I sometimes see it in examples, sometimes not, it seems to work in both cases. Any enlightenment? :)