Drupal Views combine 2 columns into 1?

Kirk Hings picture Kirk Hings · Aug 4, 2009 · Viewed 12k times · Source

I've got two content types, both have a node title and a document attachment, the doc attachment fields are different names (being from two different content types).

In my view, I'm displaying the node title and the file name in a table. The node titles are great all in one column, but the two content typed attachment fields are displaying in two separate columns, making three columns total when there should only be two. Every row has a single doc title, but one or the other column is always blank now depending on which content type's doc title is displayed.

How can I combine these two fields to display in the same column so it looks seamless? It is not important to know that these docs came from two different content types. These are organized by larger taxonomy terms so it's not feasible to just do two different views.

Answer

Kirk Hings picture Kirk Hings · Aug 5, 2009

Alas, the answer was right in the views help:

Column

By default, each field is its own column. However, you can place multiple fields in the same column. To do this, pick which field you want to represent the column, then pick another field and set the 'column' value to that field. You can place as many fields as you like in a single column, but only the main field in a column can be click-sorted.