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.
Not sure if this is the right place for this question, but is there a way/module to keep/add tabs and spaces to the html editor in TinyMCE wysiwyg? It can be so frustrating to have to sift through code that's had all the white spaces removed.
In Drupal 7, there a class e.g "path-node-17" added to the body tag so that we can target a particular node easily but this is missing in Drupal 8, I wonder how to get this node id class output in the tag in Drupal 8.
Is there something I don't know? I making a jquery to hide a div onclick, but after throwing an alert in there to see what was wrong, it shows class = undefined.
There is definitely a class, it is definitely named correctly. I even tried different items, different classes. What gives?
I'm currently playing around with / attempting to create a theme from scratch. I'm now looking to clean things up a little bit and remove much of the default libraries / css / javascript that is added. I've managed to remove modernizr but my biggest issue is figuring out how the paths relate to the actual libraries.
example: There is a piece of javascript called collapse.js which doesn't seem to be remove by core/misc/collapse, core/collapse etc.
I have a 'services' content type with several entries. One of its fields is a term reference checkbox field of the products this service can go with (using taxonomy). I'm now creating a views block to show the attached services on each product page but don't know the next step...
I'm trying to understand how to do this: "If on product page 'Bar', list any services where their field "Foo" = "Bar"
I'm stumbling around in the dark on this one, trying to learn.