We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
latest
The config reference suggests to overwrite a resource's form rendering as such
sylius_resource: resources: app.book: driver: doctrine/orm classes: options: object_manager: default templates: form: Book/_form.html.twig
However Configuration.php suggests the only acceptable value is a scalar
private function addResourcesSection(ArrayNodeDefinition $node): void { $node ->children() ->arrayNode('resources') ->useAttributeAsKey('name') ->arrayPrototype() ->children() ->scalarNode('driver')->defaultValue(SyliusResourceBundle::DRIVER_DOCTRINE_ORM)->end() ->variableNode('options')->end() ->scalarNode('templates')->cannotBeEmpty()->end()
So when I configure:
sylius_resource: resources: etc etc etc templates: form: Admin/Ruleset/_form.html.twig
I get: Invalid type for path "sylius_resource.resources.skyboundtech.wholesale_ruleset.templates". Expected "scalar", but got "array".
Invalid type for path "sylius_resource.resources.skyboundtech.wholesale_ruleset.templates". Expected "scalar", but got "array".
The text was updated successfully, but these errors were encountered:
Yes I've tried this one and this templates is to customize templates namespace for a resource like you do in crud routing configuration.
templates
Sorry, something went wrong.
What would be the proper way to go about overriding the form template without overriding the entire namespace?
On the route configuration https://github.com/Sylius/Sylius/blob/master/src/Sylius/Bundle/AdminBundle/Resources/config/routing/customer.yml#L14
Thank you for the direction.
Successfully merging a pull request may close this issue.
latest
The config reference suggests to overwrite a resource's form rendering as such
However Configuration.php suggests the only acceptable value is a scalar
So when I configure:
I get:
Invalid type for path "sylius_resource.resources.skyboundtech.wholesale_ruleset.templates". Expected "scalar", but got "array".
The text was updated successfully, but these errors were encountered: