I have a Content Type with a multiple value field 'field_types'. I create a Table view with the following settings:
- REWRITING/Rewrite the output of this field = Types: [field_types]
- MULTIPLE FIELD SETTINGS/Display all values in the same row = Yes
- MULTIPLE FIELD SETTINGS/Display type = Simple separator = ', ' (default value, but can be any type)

Now, the output is like: Types: R1, Types: R2, Types: R5, Types: R6, Types: R8;
I expect: Types: R1, R2, R5, R6, R8;
The later is also the default behaviour when showing the field on Node display page.

Comments

merlinofchaos’s picture

Category: bug » support
Status: Active » Fixed

This is not a bug, this is the intended behavior so that you can rewrite the individual parts if necessary. For your purpose, it sounds like you should be just using a label.

If you go check the box that says to use the field api template, I think you'll get the behavior you want, since that will remove most of Views' multi-value handling and it will be treated as a single field.

johnv’s picture

Status: Fixed » Closed (won't fix)

I tried several combinations, but I didn't find the appropriate combination. I'll report back when I find a solution.

Nathan Tsai’s picture

Use two of the same fields: [field_types] & [field_types_2]

[field_type]:

  • Exclude from display = Yes
  • MULTIPLE FIELD SETTINGS/Display all values in the same row = Yes
  • MULTIPLE FIELD SETTINGS/Display type = Simple separator = ', ' (or whatever)

[field_types_2]:

  • MULTIPLE FIELD SETTINGS/Display all values in the same row = Yes
  • MULTIPLE FIELD SETTINGS/Display "1" value
  • Hide if empty = Yes
  • Rewrite field = Types: [field_types]

This allows the field also to hide when empty.