Hello,

I am trying to add a views field with 'group multiple values' enabled, but these fields will not show up when I try to fetch the field values of that view.
I mean the field does not show up when I use drupal_set_message('<pre>' . var_export($vars['content'][0], true) . '</pre>'); in theme_preprocess_ddblock_cycle_block_content() in template.php.

For the description field I wanted to have a cck field of 3 textfields so I can easily limit the amount of rows displayed on the slider. I could just use a textarea but that would set the number of rows to unlimited.

Can you help me with this?
Thanks.
Danny

Comments

danny_joris’s picture

The field does show up when I disable 'group multiple values', but then it only shows the first value, which is not the point.

When I enable 'group multiple values' it shows up correctly in the views preview though.

danny_joris’s picture

I temporary fixed it by putting 3 text fields in one fieldgroup and then tweaking the template.php and the .tpl file bigtime.

merlinofchaos’s picture

Status: Active » Closed (works as designed)

The problem is that you're looking for the raw data in the query results, but some fields (like items with group multiple values) are retrieved via a secondary query.

You probably should be looking at $view->style_plugin->rendered_fields instead.