Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
48 views

While upgrading twig v1.30 to v3.22.0 i encountered some problem using macros from an external file and calling them by using a variable value as dynamic name. Given the twig file with the macros: {# ...
Olli's user avatar
  • 1,748
2 votes
1 answer
93 views

I would like to have multiple markers on the same map with Symfony and UX Map! I've read the documentation but can't find the solution there! At the moment, I can get all the markers but on different ...
d3LTa7's user avatar
  • 71
1 vote
1 answer
91 views

I have a new Symfony 6.4 web application, pretty barebone. I'm trying to format a date using the Twig format_datetime filter: {{ post.createdAt ? post.createdAt|format_datetime('c') : '' }} When ...
LucileDT's user avatar
  • 682
2 votes
1 answer
73 views

I am trying to remove the price block layout_search_suggest_result_price from the autosuggest search in Shopware v6.6.10.5. The FroshDevelopmentHelper shows it as BLOCK BEGIN ...
Alex's user avatar
  • 35.7k
-1 votes
3 answers
147 views

Is it possible to add classes to the <body> tag in Twig? I'm using a theme based on Twig for WordPress https://github.com/flyntwp/flynt I realize that many standard classes are added to the <...
BlueDogRanch's user avatar
0 votes
1 answer
139 views

I tried the solution for this question, and while it works great if I want my script on every page: How to import jQuery as a global variable with Symfony's AssetMapper? However, I have dozens of ...
justwanderedin's user avatar
3 votes
2 answers
380 views

I am trying to use the Symfony UX LiveComponent, firstly I tried to use the first exemple of the documentation: // ArticleSearch.php <?php namespace App\Twig\Components; use App\Repository\...
Lunyx's user avatar
  • 91
0 votes
1 answer
58 views

How to access Slim ServerRequestInterface in Controller. Below is my working code HomeController <?php namespace App\Controllers; use Psr\Http\Message\ResponseInterface as Response; use Psr\Http\...
Alaksandar Jesus Gene's user avatar
0 votes
1 answer
108 views

I have four domains - domain.com, domain.org, domain.africa and domain.net. All share the same user base from db and some content. Users can register and log in on any website. Works perfectly. The ...
Lesley Richards's user avatar
1 vote
1 answer
106 views

We're looking at allowing a way to embed custom code into a PHP application, and exploring secure/sandboxed ways to do that (e.g. if you've used Apex in Salesforce, or are familiar with ...
Keith Palmer Jr.'s user avatar
0 votes
0 answers
42 views

I've been trying to get a Woocommerce product's tags inside a twig template. I want to search for a specific tag so that I can assign a class on the product grid which is inside the tease product twig ...
dchristof's user avatar
0 votes
1 answer
141 views

If I want to create a link to a page in a Sulu twig template, I can use the <sulu-link /> tag, which is fine for most usecases. But sometimes I do not want an anchor tag rendered, but only the ...
Mario A's user avatar
  • 3,373
0 votes
1 answer
310 views

In short: I've got grid of purchases, once I click on any purchase, I see links detail and approve purchase. When I click on 'approve purchase', modal window appears and I should be able to approve ...
MartinC's user avatar
  • 55
0 votes
0 answers
53 views

I'm new to Drupal, however I need to do the following: I have a paragraph named ad_section with 2 fields: field_link (type: Plain Text) and field_video (type: Media->Video) It's necessary that a ...
Barney Gumble's user avatar
-2 votes
2 answers
97 views

The result of what I was expecting is not the desired one.. The output of the table, is messing up because of it. so... the code is this one: {% if (log.action) == "update"%} <td ...
Damaso.jpg's user avatar
0 votes
1 answer
79 views

The problem I'm trying to solve is this: I need a unique (but human readable) class name to be able to style Taxonomy Term page depending on the term shown. I unsuccessfully tried several approaches, ...
Stanislav Kniazev's user avatar
0 votes
1 answer
104 views

I'm working on a SULU project that uses Twig for the frontend and has a custom webpack for it. I need to use React for certain components, components that require more interaction, state management, ...
coral fish's user avatar
0 votes
1 answer
28 views

Say one has this twig template: {% set first %} {% block some_block %} {{- variable -}} {% endblock %} {% endset %} Passing in an empty string, '' in variable, one can see that dumping out ...
Luke A. Leber's user avatar
0 votes
0 answers
59 views

If I ask Twig to render example.twig it will generate a cache file named something like 8e8456gffc99c672976eff.php (if cache is enabled). Is there a way to then take 8e8456gffc99c672976eff.php, and ...
nickpapoutsis's user avatar
0 votes
1 answer
114 views

I am attempting to take all of the start dates of my coworkers and calculate a total # of years of experience. However I am getting the following error Twig\Error\SyntaxError: Unexpected token "...
David Salerno's user avatar
0 votes
2 answers
76 views

OpenCart provides more default features than I wish to offer my users. My current challenge is how to remove menu entries such as "Recurring payments" and "Downloads" from the ...
Seb Rose's user avatar
  • 3,676
0 votes
1 answer
229 views

I'm storing all my dates as UTC in the database. But I want to display them in the users timezone. $mydate = new \DateTime('2024-08-07 12:00:00'); Displaying the dates in Twig with the date filter ...
viu-x's user avatar
  • 9
0 votes
0 answers
107 views

I'm trying to translate the automatic placeholders or labels for a Symfony FileType. Specifically, I want to change the text "Escolher ficheiro" e "nenhum ficheiro selecionado" to ...
Sofia Machado's user avatar
0 votes
1 answer
29 views

In a search form, the search result cannot be displayed nor are there errors. It automatically returns to the search form and does not go to the Twig page chosen as the destination. Here the code: #[...
Jorge H's user avatar
  • 352
0 votes
1 answer
347 views

I'm working on a Drupal website and trying to apply specific classes in Twig files based on the existing classes of an HTML element. Specifically, I want to apply the 'Card-label' class to the title ...
svenjaleo's user avatar

1
2 3 4 5
213