-
Notifications
You must be signed in to change notification settings - Fork 10
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
Custom field not showing up #91
Comments
Can you give an example for me to work with? Saves some time if I know exactly what you're doing. Thanks. |
Yeah, because frontend templates are not being loaded in admin -- they break admin if you do so. Move fields into public function onAdminTwigTemplatePaths(Event $event)
{
$paths = $event['paths'];
$paths[] = __DIR__ . '/admin/templates';
} |
Got it! Is there a similar strategy to add the flex object blueprints in themes? I got it working in |
Hello, I had the same question and it now seems fixed in next 1.7.8 release: getgrav/grav#3255 Hope this helps! |
Yup, the missing blueprints issue has also been fixed, but you need to move the files around (to follow the same blueprints folder structure as in plugins) to enable it. |
We have added a custom form field in our theme, its working in regular page blueprints.
Adding it to a custom flex object form, it does not even show up.
Maybe this has something to do with flex object being initialized earlier? I could not add flex object definitions in our theme either, needed to add it in a plugin.
The text was updated successfully, but these errors were encountered: