Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.10
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
17 Jun 2010 at 18:10 UTC
Updated:
28 Jan 2011 at 03:17 UTC
Hello,
Please correct me if I'm wrong: You can't preprocess views fields with 'group multiple values' enabled?
That is my issue at the moment. I want to use it to set up a dynamic block display: #830622: Views field with 'group multiple values' does not work
Thanks.
Danny
Comments
Comment #1
dawehnerThis is not so nice solved currently. But you could write a style plugin which changes this behavior.
Currently every grouped content is added after the other
Comment #2
danny_joris commentedThanks ! I appreciate yours & Earl's quick and helpful responses a lot ! :)
Comment #3
dawehnerSo this is fixed? I don't think so
For me this is a feature request / support request but no bug issue.
Comment #4
Letharion commentedI take it Danny was satisfied with the answer "It doesn't work".
Comment #6
jfarry commentedJust in case anyone else comes across this thread in desperation, the solution i used is the simplehtmldom API module: http://drupal.org/project/simplehtmldom
You can use this on the $output variable (which is in the tpl.php file or the particular row you're working with in Views) and manipulate it in a more simple way, instead of using multiple regular expression pattern replacements etc.
As an example, I wanted my outputted fields to just have class names, which were the same as the content in the field. I achieve this with this little piece of code:
I hope this helps someone else. I spent hours trying to find the particular preprocess function in views (that i'm not sure exists, lol) and I don't think a style plugin would have worked in my case. This was the next best thing :)