Closed (fixed)
Project:
NineSixty (960 Grid System)
Version:
7.x-1.0
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 Feb 2011 at 09:43 UTC
Updated:
30 May 2012 at 01:30 UTC
How do you add grid classes to different fields inside a view?
I'm assuming this has to do with a .tpl file or a preprocess function?
Been struggling with this for a few days so I thought I'd ask here.
Thanks,
Nimi
Comments
Comment #1
Jose Chaves commentedI have a similar problem, I have a Views Grid display (with Panel Fields) that is breaking lines and I need to solve this. I can't find out where and how.
Where I need a result like:
Name: Lorem ipsum dolor sit amet in the same line
what's happening is two kinds of results.
This:
Name:
Lorem ipsum dolor sit amet
and this:
Name: Lorem ipsum
dolor sit amet
Any suggestions? Thanks!
Comment #2
dgsiegel commentedyou could use the semantic views module to add classes to each of the fields
Comment #3
Jose Chaves commentedthanks for helping.
Comment #4
ishmael-sanchez commentedYou can also use the style settings in views to add grid classes if need be. Or you can render the view as a content display and use the field.tpl.php to add grid classes as well.