StackOverflow Questions for Tag: twig-extension

Jakub Maj
Jakub Maj

Reputation: 571

How to use an environment variable (from `.env` file) in custom Twig function in Symfony?

Score: 36

Views: 54597

Answers: 6

Read More
Frank Hofmann
Frank Hofmann

Reputation: 251

Twig - display template names if debug mode is enabled

Score: 5

Views: 1719

Answers: 4

Read More
crmpicco
crmpicco

Reputation: 17181

Default to blank string in Twig template if translation is not found

Score: 2

Views: 3482

Answers: 4

Read More
D3strukt0r
D3strukt0r

Reputation: 620

How to replace the "localizeddate" filter from twig/extensions

Score: 6

Views: 2639

Answers: 1

Read More
Asma Supih
Asma Supih

Reputation: 61

allow new methods in sandbox policy in twig (drupal 8)

Score: 6

Views: 2082

Answers: 1

Read More
pgr
pgr

Reputation: 928

Extending Twig, are custom handlers for the dot operator (getAttribute) possible?

Score: 2

Views: 110

Answers: 1

Read More
Sheryar Khan
Sheryar Khan

Reputation: 43

Twig Cache taking 10s and stuck on Loop

Score: 0

Views: 75

Answers: 0

Read More
Momonosoke
Momonosoke

Reputation: 183

How to add two letter gb flag to all english languages in symfony 6?

Score: -1

Views: 102

Answers: 1

Read More
ollo182
ollo182

Reputation: 79

Use Product Repository with Product block dosent Work in Shopware 6 twig

Score: 1

Views: 311

Answers: 1

Read More
ReeCube
ReeCube

Reputation: 2597

Twig: while-workaround

Score: 3

Views: 2054

Answers: 2

Read More
quetzalfir
quetzalfir

Reputation: 568

Symfony League CommonMarkdown customize ExternalLinksExtension

Score: 2

Views: 539

Answers: 2

Read More
sohaieb azaiez
sohaieb azaiez

Reputation: 780

symfony twig custom submit label form

Score: 0

Views: 2298

Answers: 2

Read More
Neniel
Neniel

Reputation: 193

How to return and insert HTML code with a Twig function?

Score: 3

Views: 994

Answers: 1

Read More
Codemonkey
Codemonkey

Reputation: 4807

Is this the right way to implement my own filter in twig? (I want *minimal* whitespace between tags, not *no* whitespace between tags)

Score: 0

Views: 39

Answers: 0

Read More
Kim K.
Kim K.

Reputation: 121

Setting global session var in Slim4 and Twig

Score: 0

Views: 395

Answers: 1

Read More
Clément HUBERT
Clément HUBERT

Reputation: 17

Symfony : Error when create a Twig Extension function : Call to a member function findAll() on null

Score: 0

Views: 253

Answers: 1

Read More
Andrei Herford
Andrei Herford

Reputation: 18729

How to use caching for custom Twig extension

Score: 1

Views: 1895

Answers: 2

Read More
Mugdha Thakare
Mugdha Thakare

Reputation: 1

Twig\Error\SyntaxError Message: Unexpected token "name" of value "is_negotiable" ("end of statement block" expected)

Score: 0

Views: 7313

Answers: 1

Read More
Adarsh Pawar
Adarsh Pawar

Reputation: 29

How to render twig variable as HTML attribute name

Score: 0

Views: 321

Answers: 0

Read More
Alphaegen
Alphaegen

Reputation: 187

How would I filter a collection by translated properties?

Score: 1

Views: 62

Answers: 0

Read More
PreviousPage 1Next