Display one level only of a multi-level menu in Drupal
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!
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!
I built a form with Webform module and checked Twig debug info.
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.
You can read below – kind of – a transcript of the presentation I gave at Drupal Developer Days, Szeged 2014.