Problem

Today the options under "Group multiple values" can only take static values. This works in most cases, but when building complex views this isn't always sufficient.

Solution

If we can have the options "Show n values" and "Starting from n" tokenized those values would be able to use other fields' values. This would allow for more dynamic views without any big impact on CCK's codebase or the performance of the view. This also plays nice with the new Views integration in content_multigroup.module for 6.x-3.x when using the [delta] token for fields in a multigroup.

The attached patch works and applies to both 6.x-3.x and 6.x-2.x as content_handler_field_multiple.inc hasn't changed. The patch will still need some documentation as well as modification to options_form() in order to present all the available tokens in a sensible way.

This patch is sponsored by LRF Media and will be maintained and rerolled by NodeOne.

CommentFileSizeAuthor
multiple_option_tokens.patch1.62 KBdixon_
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

markus_petrux’s picture

Version: 6.x-3.x-dev » 6.x-2.x-dev
Component: content.module » Views Integration

Not strictly related to CCK3.

dixon_’s picture

Status: Active » Needs review

Setting this to "needs review" to get some eyes on it.

chrism2671’s picture

I agree this is essential. Current integration of views with multi-fields is extremely inflexible.

dixon_’s picture

Assigned: dixon_ » Unassigned