0

I have a view of type 'term' that displays in a grid, all the terms in a vocabulary. I need to display 2 images per term, but this is not possible I believe. (E.g. the taxonomy Image module only allows you to add one image per term).

So I thought maybe a solution to this would be to create another content type with one piece of content per term. And then associated each one with one of the vocabulary terms. And then create relationship in the view to link them. However I cant figure out how to get the view to do this. Is this possible?

1 Answer 1

0

It's possible, but not terribly easy in D6.

In Drupal 6 (unlike 7 and 8) vocabularies were not fieldable, so the approach you took is a reasonable one. You probably do not need a relationship in the view, just adjust the filter to include content types of the new type, and then use sorting to move the to the start or end of the result set. You could sort by content type or use the usually ignored "sticky" field on the nodes if its not in use (set all your new images to be sticky and then sort the list to place them where you want).

You could also create a block that uses the same filter pattern as the original view, but limit to the new content type and the only 2 results. Then place that block on the page that's displaying the grid.

Note: Drupal 6 is no longer officially supported by the community. While there are some places that are offering long term support for Drupal 6, you should plan to move to Drupal 7 or 8 soon.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.