Needs work
Project:
Views PHP
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Feb 2012 at 02:30 UTC
Updated:
18 May 2016 at 13:16 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
rogical commentedComment #2
grasmash commented+ 1
Comment #3
matt__ commented+1
IMO this is a bug, not a feature request.
Comment #4
bloomt commented+1 The person that solves this problem will be getting a virtual high five from this guy.
Comment #5
capellicIn the meantime, use the field_view_field() function to get the properly rendered field:
http://www.computerminds.co.uk/articles/rendering-drupal-7-fields-right-way
Comment #6
icanko commentedMaybe I don't understand the question, but I think you could add some fields that contain the needed tokens and exclude them from display. Then add the php field and use the other fields as variables.
Comment #7
liquidcms commentedthis is exactly right as it gives the non-rewritten field values... but its a start and much more useful than as it is now.
so i can now do this:
this is on the -alpha version
Comment #8
liquidcms commentedhmm.. no, i think my patch is wrong.. it may only pull token from first row.. ughh
Comment #9
liquidcms commentedbut this one works.. :)
Comment #10
liquidcms commentedpatch above didnt account for tokens sometimes getting processed before the php field is processed.
new patch fixes this and seems pretty solid now..
Comment #11
ikeigenwijs commented+1 for this functionality!
.patch does not apply on clean install.
The function pre_render can not be found in views_php*
I did not found what to patch to get this working
No classes in views_php*
.module needs to be added otherwise file not found.
Also I think the standard is to do relative of the module root.
I want to review if you have a new version.
Comment #12
marcopbazz commented#11 the file to patch is views_php_handler_field.inc (in plugins/views).
Patch work only for output, not for value (but this is related to this: https://www.drupal.org/node/1140896)