Lullabot Podcast cover image

Drupal X: Front End and Beyond

Lullabot Podcast

CHAPTER

Twig Filter - Add Suggestion

There's a new one called add suggestion and this is this was an idea from the second coolest level about Hawkeye. You can tag on a uh a pipe and then add suggestion and then some parentheses and put in a arbitrary string of text. If it if it that will make it look for a template so instead of looking for field underscore my field that html dot twig it'll look for field underscore whatever that string you passed is thathtml that twig. So like let's say you want to render that field as an icon you knowlet's say it's like a social media thing you know it's like facebook or something like thatyou can say field  pipe field or

00:00
Transcript
Play full episode

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner