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.
Hi! I can't find a class for a full node... Or i have to create new *.tpl.php?
It is very hard to theming without it. Add please ;)
Comments
Comment #1
himerus CreditAttribution: himerus commentedwhy don't you use the node-teaser class (that is there) to style for default (.node) first, then overwrite anything that has the .node-teaser class?
otherwise, I suppose this could be added easy enough, it is however, definitely NOT critical.
Comment #2
alexander_danilenko CreditAttribution: alexander_danilenko commentedthanks!
Comment #3
webbykat CreditAttribution: webbykat commentedIf anyone else has this need and overriding the default is impractical, you can add a class that reflects the view mode with preprocessing:
This will produce node-full, etc. I added the if statement to prevent it from happening on the teaser, because the core node module already provides a node-teaser class by default, and I didn't want to output two.
Comment #4
vinoth.3v CreditAttribution: vinoth.3v commentednot only node-full, but promoted, sticky classes would be more helpful
Comment #5
steinmb CreditAttribution: steinmb as a volunteer commentedComment #6
apaderno