Views of computed fields are not working for me since I installed the latest cck (4.7) and date (4.7). I get blank fields, but strangely, the fields sort correctly, so the information must be being partially retrieved - just not displayed. Has there been some change to the latest cck that has caused this perhaps?
Comments
Comment #1
patrickharris commentedAm I the only one experiencing this problem?
Comment #2
wrunt commentedIf you're using the value of a date field in your computed field then you may need to change your code. A recent version of date.module changed the value that is available to computed field. Have a look at the duration example to see how to use date fields now.
Comment #3
patrickharris commentedMy computed fields don't use dates ... they just grab some taxonomy data. This data is being stored fine when I save nodes, and is even being sorted by the views module correctly, but will not display (the field appears empty in a view).
Comment #4
patrickharris commentedUnfortunately I haven't managed to fix this, so for lack of a better idea, I'm using hook_nodeapi to do my changes on submit.
Comment #5
Ryan Simpkins commentedI've also had the same issue. I had some success with using the CVS version of cck (you have to modify it to use module_exist instead of module_exists). This at least will display some text - but alas, it is wrong. I am guessing there is still a bug betweek views/computed/cck that need to be ironed out by the developers.
Comment #6
wrunt commentedI've just committed a new version that should fix this.
Comment #7
Ryan Simpkins commentedIs it supposed to be in CVS yet then? I just downloaded the latest cvs and it still does not appear to be working. Please let me know what additional information would be helpful.
Comment #8
wrunt commentedOk, I've worked out the problem. The latest cck-cvs.tar.gz works with HEAD, whereas cck-4.7.0.tar.gz works with 4.7. I haven't tested computed field against HEAD, but chances are it doesn't work.
I just tried cck-cvs with computed_field-4.7 (identical to computed_field-cvs at this point) and it doesn't work.
To use computed field I would recommend using drupal 4.7.3 with the latest version of cck-4.7 (not cvs), and the latest computed_field-4.7. Sorry about the confusion.
Comment #9
tcashen commentedI tried drupal 4.7.4, cck 4.7.0, and computed field 4.7.0, and computed fields are still not available for display in views.
Comment #10
tcashen commentedThe problem has been figured out. I need to store the values in order for them to show up as an option in views.
Comment #11
somes commentedI think you might still have this problem in that the code is fine if you use static variables and example given in the docs but once you try and join strings together this goes a skew.
ie puting a 'wow' works but 'big' . 'wow'
doesnt appear
Comment #12
wrunt commented'big' . 'wow' works for me.