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.
In my case I want to write some javascript code inside the paragraph-something.hmtl.twig taking elements from the theme variables and then putting this javascript attached to the bottom of the page. Something like:
{{ attach_library('my/code') }}
but being able to write the code dynamically and not link to a js file pre-comp.
I need to change the background of the parent li element for a submenu anchor element with the is-active" class. How do I add a "current" class to the parent li element? (that's one way to do it)
I don't think there's anyway to do it just using css and the existing classes that are available.
Why doesn't the Barrio theme (Bootstrap 5) support drop down menus? That's why I'm using Superfish. Bootstrap 4 supported drop down menus.
This yields a table. With also 2 filters on Media type and Year.
So now to my problem.
When i use it as a plain table (no grouping used) i can use NO RESULT BEHAVIOR and when i filter on a media type which the table doesn't have or a year that isnt added i get a response.
Hi, I'm attempting to learn Drupal through the book Drupal 8: Enterprise Web Development by Nick Abbott. In Module 2 chapter 5, the book has us create and install a custom theme based on Classy. I copied and pasted the code directly from the book; however, when I did so and then set the custom theme as default, I did not see anything other than bare HTML without any CSS or JavaScript.