Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Need to add class to node without alter the content. For example i have a node whose name is "node_6277_view_container", but i want to add a class or and id so i can postprocess the node without modifing other nodes. Thanks in advance!
Comments
Comment #2
HomerO CreditAttribution: HomerO commentedSolved
Used jQuery on hook_alter_TYPE and displayed node.title + node.content
Comment #3
tyler.frankenstein CreditAttribution: tyler.frankenstein commentedThank you for reporting and solving this issue, my favorite kind of issue.