Closed (works as designed)
Project:
Dynamic display block
Version:
6.x-1.0-rc6
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Jun 2010 at 17:54 UTC
Updated:
18 Jun 2010 at 18:06 UTC
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
Comment #1
danny_joris commentedThe 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.
Comment #2
danny_joris commentedI temporary fixed it by putting 3 text fields in one fieldgroup and then tweaking the template.php and the .tpl file bigtime.
Comment #3
merlinofchaos commentedThe 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.