Closed (outdated)
Project:
Drupal core
Version:
7.x-dev
Component:
Bartik theme
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
27 Jan 2011 at 18:39 UTC
Updated:
17 Apr 2015 at 11:46 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jyve commentedTotally agree with the patch above, since Drupal should not focus on having only two view modes (teaser and full), since extra view modes can be created.
Only suggestion I would make is to use view-mode- as the class prefix, so that the view mode class does not overlap with the node type class.
Comment #2
swentel commentedTrue, better patch using view-mode class.
Comment #3
swentel commentedMoving this to Bartik for some more discussion.
Comment #4
swentel commentedActually, with #1051164: Remove unnecessary $variables['submitted'] override in template.php in, we can ditch the preprocess_node completely in bartik. New patch.
Comment #5
moshe weitzman commentednice to remove bartik special case.
Comment #6
amateescu commentedI think it would be better to name it
node-view-mode-[view_mode], since we are in the node module.Also, there are a lot of other places that are affected by this change :)
Comment #7
mgiffordNo longer applies.
Comment #8
galactus86 commentedis there a way to do this to add a body class instead of on node?