-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
blueprint in theme's blueprints/flex-objects folder not loaded #3255
Comments
Themes do not have the same folder structure for blueprints (for legacy reasons themes contain only page blueprints), which likely is the reason why it doesn't work. |
Thank you for the prompt reply! I suspected this couldn't be actually a bug 😄 |
Should be now implemented and will be released soon. In order to enable the support, you need to set minimum requirement in the blueprints: dependencies:
- { name: grav, version: '>=1.7.8' } And move all the files from |
released |
Hello, thank you very much @mahagr, just updated everything to yesterday's release but I am sorry to report that blueprint
the same loads perfectly from Shall I do some other tests? Change something else? Delete some config files? Thank you! |
Umm, that is not a page blueprint. I tried to say that you need to move every existing blueprint file in the theme from Also the dependencies section needs to be in the theme blueprint ( |
Now you need to move the flex blueprint out of the pages folder to where it is supposed to be :) My instruction was just for the existing stuff before adding the new blueprints :) |
Umm,
|
I tried the following:
Again, thank you! |
OK, there's definitely something going on @mahagr . |
Should be fixed now. |
From version 1.7.41 flex-object blueprints are not loaded in the frontend (admin works). See also trilbymedia/grav-plugin-flex-objects#177. Has anyone else had such experiences? After a long research it seems that the path to the theme blueprint directory is only added to the locator if the flex object plugin has already tried to add the directory to the flex object for the respective type. However, since it cannot find the blueprint, the listing in the frontend with custom blueprint types does not work. Asking the locator about the blueprint path after theme initialization is finished, produces a positive result - but it is to late for the flex object when using |
Hello,
here's the case:
user/blueprints/flex-objects
is correctly loaded.themes/my_theme/blueprints/flex-objects
is not loaded.Maybe it's not a bug per se, but if I correctly understand the path to 2.0, letting flex-objects blueprints to be loaded alongside other theme blueprints would be very useful.
Edit: Grav + Plugins are up-to-date as of today.
Thank you!
The text was updated successfully, but these errors were encountered: