All posts tagged with: Twig

Display one level only of a multi-level menu in Drupal

2022. Jun. 27. · 2 min read
Task: display the third level menu items of a four levels menu separately, without their children. Should be easy to set it using the admin UI of Drupal, right? Nowadays not, unfortunately!

Drupal Twig Template Structure of (Some) Form Elements

2020. Mar. 18. · 1 min read
I built a form with Webform module and checked Twig debug info.

Drupal 8 Twig: add custom CSS classes to menus (based on menu name)

2016. Apr. 30. · 8 min read
Twig templates of Drupal 8 make our life much easier when we want to customize the HTML output. But when the goal is to change a Drupal 8 menu we have to use the menu.html.twig template which is not the most friendly one and it’s customization can be tricky because of several reasons. So I wanna show you how I did it.

Drupal 8 theming basics

2014. Apr. 13. · 8 min read
You can read below – kind of – a transcript of the presentation I gave at Drupal Developer Days, Szeged 2014.