Quantcast
Channel: Active questions tagged symfony4 - Stack Overflow
Viewing all articles
Browse latest Browse all 3928

Sylius: How to reference your own twig template in a grid?

$
0
0

This is not a duplicate of e.g. Referencing a template in Twig / Symfony2 because creating bundles as applications is deprecated/not recommended anymore and therefore the answer is not applicable anymore. How do I reference my own template in a Sylius grid?

What I tried:

1.

                options:
                    template: "@App/Order/Grid/Field/channel.html.twig"

2.

                options:
                    template: ":Order/Grid/Field:channel.html.twig"

3.

                options:
                    template: "templates/Order/Grid/Field/channel.html.twig"

4.

                options:
                    template: "Order/Grid/Field/channel.html.twig"

(I tried some of these on the basis of the documentation: https://docs.sylius.com/en/1.6/components_and_bundles/bundles/SyliusGridBundle/field_types.html#twig-twig , https://docs.sylius.com/en/1.6/components_and_bundles/bundles/SyliusGridBundle/your_first_grid.html)

In all cases it says the template was not found. Any ideas?


Viewing all articles
Browse latest Browse all 3928

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>