Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
I am new to Drupal 8 and cannot seem to be able to figure this out.
I have a custom menu--main.html.twig template where I need to get node ID from an alias. I am able to extract item.url in a macro and then would like to use a twig tweak function to load a field from another node.
I'm a beginner in Drupal and I'm helping to administer a site djanemag.com, but the problem is the look of the main page that is without the graphics and all messed up according to the print. However, the other pages are working perfectly.
I created an Olivero subtheme. It's working fine... but my Olivero subtheme broke when activating Aggregate JavaScript files: dropdown menus are no longer working, and the search is unusable.
I'm using Drupal core 9.3.9
In console:
Uncaught TypeError: Cannot read properties of null (reading 'addEventListener')
at js_N6YcbK7swTTO49Zu5WT0LHu1uhUK8RuVmnXXesZEYMA.js:5516:73
at js_N6YcbK7swTTO49Zu5WT0LHu1uhUK8RuVmnXXesZEYMA.js:5521:3