In this post, we will see how to resolve loop through two objects in the same template Question: I’d like to be able to loop through two objects side-by-side in a template, like this:- Application.php fixtures & weathers are both ...

In this post, we will see how to resolve Symfony Twig Translation does not fill in placeholders Question: I am currently having the situation where a twig-filtered string that contains placeholders does only translate the string itself but does not ...

In this post, we will see how to resolve Get subcategories with twig on listing page Question: I’m trying to get the subcategories on a listing page in Shopware 6. However i can’t seem to find the functionality to get ...

In this post, we will see how to resolve how to pass value inside loop in template to jquery Question: I want to pass a value inside a loop into a query. I made a list of rings and displayed ...

In this post, we will see how to resolve Get an ID just created without reloading the page Question: Here is a div that I append in AJAX with a script (at the bottom of the TWIG file) : If ...

In this post, we will see how to resolve Same line for path() and paragraph Question: I would like to know if it’s possible to force prettier to write my “path” in one line: This is what I have: But ...

In this post, we will see how to resolve VS Code extension for autocompleting HTML tag in Twig files in Symfony 6 project Question: I’m looking for a VS Code extension which help me autocomplete my HTML tag in twig ...

Question: There is a new feature since Shopware 6.4.13.0 where you can set getTemplatePriority() in the bundle class to influnce the template loading order. We currently have a ordered list of how we want the plugins to be loaded and ...

Question: Anyone knows how to concatenate strings in twig? I want to do something like: Best Answer: This should work fine: To add a filter – like ‘trans’ – in the same tag use As Adam Elsodaney points out, you ...

Question: I’m going through a new test Symfony 5 install right now, and I’m on this section of the docs: https://symfony.com/doc/5.4/page_creation.html#rendering-a-template I ran composer require twig, and it says it’s installing it, then when composer runs ‘Unpacking Symfony packs’, it ...