Hi again,
I'm having trouble making fields with the table style align to the column I specify for them. I've tried with or without a separator--is a separator required? Nothing seems to happen when I choose the same column for both fields that I have in the view. The second field just comes right up to the first one with no spacing if there's no separator. Am I doing something wrong or do I not understand how the columns are supposed to work?
This is how it looks when they both have the same column, ie: I chose the "User: Name" field column for both fields. The second one is User: Active.
http://img183.imageshack.us/img183/32/tablecolumnsho6.jpg
I deleted one of the two fields but then had this error come up:
warning: Invalid argument supplied for foreach() in /../sites/all/Modules/views/theme/views-view-table.tpl.php on line 17.
Once I added a second field, the error went away.
I can make a separate issue for the error if that's preferred. I just thought it was kind of related.
Comments
Comment #1
merlinofchaos commentedYes. The idea of a separator is that it separates things. If you don't use a separator then they'll appear right next to each other. Not separated.
I'd like a little more detail about what you added/deleted to get that error.
Comment #2
Fayna commentedLol thanks for the explanation. The idea of the columns made me think you could have multiple fields below each other, essentially in one "column" but I guess that's not the case.
To get the error, I removed the User: Picture field I had that was in the same column as the User: Name field. After I added another field, the User: Active one, it went away.
Comment #3
merlinofchaos commentedThey're table columns. You can use
<br />as your separator to get the effect you're asking about.I'll see if I can duplicate the problem you ran into. Was User: PIcture in the User: Name column or was User: Name in the User: Picture column?
Comment #4
Fayna commentedOh duh, thanks!
User: Name was in the User: Picture column.
Comment #5
merlinofchaos commentedOk, checked a fix into CVS. Thanks!
Comment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.