Closed (fixed)
Project:
Drupal core
Version:
6.17
Component:
markup
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
31 Jul 2010 at 21:46 UTC
Updated:
3 Jan 2014 at 01:42 UTC
Jump to comment: Most recent
Comments
Comment #1
marian_n commentedAny idea at least on how i can identify the teaser's node type, or how i can distinguish between teasers belonging to different type of nodes/content so that i could try to code something?
Comment #2
avpadernoComment #3
jacine@marian_n you can use a CSS selector like this if you don't need to worry about IE6 support:
.node-type.teaser { ... }Otherwise, you can also your own class in the node.tpl.php template file, by adding this code to the DIV.
if ($page == 0) { print ' node-teaser-' . $type; }That would allow you to use:
.node-teaser-news { ... }