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

merlinofchaos’s picture

Yes. 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.

Fayna’s picture

Lol 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.

merlinofchaos’s picture

Title: Making fields follow columns specified » Removing field while in table column causes PHP error
Category: support » bug

They'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?

Fayna’s picture

Oh duh, thanks!

User: Name was in the User: Picture column.

merlinofchaos’s picture

Status: Active » Fixed

Ok, checked a fix into CVS. Thanks!

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.