Skip to main content
8 events
when toggle format what by license comment
Apr 11, 2013 at 13:52 comment added dbj44 Niether really, I want a class for field name, ideally. But a row I want to target will always be the row with the third occurence of the class 'article' (named after it's content type) - so maybe I can do it by position???
Apr 11, 2013 at 13:19 comment added Tyler Durden I do not quite understand your question. Do you want to add a specific class based on position or on content type?
Apr 11, 2013 at 13:16 comment added dbj44 Sorry, what's the difference between a fields view and a content view? Can I use some kind of logic in these tpls, like: if node:field_name is 'date' then add class 'date'
Apr 11, 2013 at 13:14 comment added Tyler Durden I've updated my answer adding a IF statement
Apr 11, 2013 at 13:12 history edited Tyler Durden CC BY-SA 3.0
added 158 characters in body
Apr 11, 2013 at 12:49 comment added Tyler Durden You may want to add it in the node--article.tpl.php . Is it a fields view or a content view?
Apr 11, 2013 at 11:24 comment added dbj44 Won't this just add 'YOUR CLASS' to every row? Let's say I have an entity bundle called 'article' with a field called 'date'. I need to target date. So I need to add the class 'date' just to that one row, wherever it occurs in the list. Makes sense?
Apr 11, 2013 at 9:53 history answered Tyler Durden CC BY-SA 3.0