I created a simple block display in Views2 to display several different vocabularies from one node.

If I add only one field for a content taxonomy vocabulary it's ok, but if I add another taxonomy content field it interleaves the two in the (unformatted) display list and duplicates some terms and omits others from both vocabularies.

I have one argument, the NID.

The display also displays the Vocabulary Title for each term which does not occur in the straight node output which displays the title once for all the terms in a vocabulary.

Here's the result with just two fields:

Living Room Amenities: Aircon
Kitchen Amenities: Electric Kettle
Living Room Amenities: Aircon
Kitchen Amenities: Flatware
Living Room Amenities: Aircon
Kitchen Amenities: Refrigerator
Living Room Amenities: Aircon
Kitchen Amenities: Sink
Living Room Amenities: Balcony
Kitchen Amenities: Electric Kettle
Living Room Amenities: Balcony
Kitchen Amenities: Flatware
Living Room Amenities: Balcony
Kitchen Amenities: Refrigerator
Living Room Amenities: Balcony
Kitchen Amenities: Sink
Living Room Amenities: Seaview
Kitchen Amenities: Electric Kettle
Living Room Amenities: Seaview
Kitchen Amenities: Flatware

It should look something more like this (ignore all the leading periods - I added these because extra spaces get deleted here):

Kitchen Amenities: Electric Kettle
...............................Flatware
...............................Refrigerator
...............................Sink

Living Room Amenities: Aircon
......................................Balcony
......................................Seaview
......................................Cable TV
......................................Regular TV
......................................Ceiling Fan
......................................Telephone

It's also interesting that the display in the node output looks just like above (spaces instead of "."s) but when I copy and paste that output here it looks like this:

Living Room Amenities:
Aircon
Living Room Amenities:
Balcony
Living Room Amenities:
Seaview
Living Room Amenities:
Cable TV
Living Room Amenities:
Regular TV
Living Room Amenities:
Ceiling Fan
Living Room Amenities:
Telephone

Comments

druplicate’s picture

Also I should note that adding any other 2nd multivalued field causes this problem not just content taxonomy fields. I initially was using an image field from a multiple image file field and was seeing a taxonomy term followed by an image followed by a duplicated term then another image, and in fact some duplicate images as well.

druplicate’s picture

Priority: Normal » Critical

I filed a bug report about this in the Views queue which produced this discussion:

http://drupal.org/node/586716

From that you'll note that the immediate problem is solved simply by checking the "Group Multiple Values" in the Views fields configuration section.

However I discovered another potential bug that appears to be in the Content Taxonomy module.

If instead of configuring Views with a multi-value content taxonomy field, you use the field "Taxonomy All Terms" and check off the relevant vocabulary, you should get the separate fields/vocabularies displayed. But only the "Living Room" field shows terms. I have quite a few content taxonomy fields in one node and none of them show up. Yet, Views will display all of those fields properly when using content taxonomy fields and checking that box.

Have a look at the discussion in the Views queue for more details.

I'm elevating this to critical as I have a feeling it's uncovering something fundamentally important.

mh86’s picture

Category: bug » support
Status: Active » Fixed

If you are using the Taxonomy All Terms field, content taxonomy fields should have the option "Save values additionally to the core taxonomy system.." checked. otherwise this field is not going to show the values.

Status: Fixed » Closed (fixed)

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

yan’s picture

Category: support » bug
Status: Closed (fixed) » Active

I think #3 is not the problem. I'm using "Save values additionally to the core taxonomy system.." but both "Taxonomy: All Terms" and displaying the Content Taxonomy Field produce wrong output when I use more than one field in views. In my case, just one field is shown, the other one disappears. This does not happen with taxonomy vocabularies that don't use Content Taxonomy.

yan’s picture

To provide some more information: I tried to reproduce the error in a fresh Drupal install and I could, but only in a calendar view. That was actually the use case where I experienced the problem the first time. Using a non-calendar view type, the vocabularies are displayed correctly.

The problem is that, using two different vocabularies, only the terms of the second term are shown.

yan’s picture

No ideas? Or should this be moved to Calendar module?