By pushkarpathak on
I wanted to have customize footer for a View. The text on footer will depend upon the value of Membership Type. I am using this code
if ($view->field_member_type[0]['value'] == 'Associate Membership') {
print '**************************************';
}
This is not giving any output. How can I check the value of "field_member_type"
Comments
AFAIK the $view object is not
AFAIK the $view object is not available in header/footer PHP code (check via get_defined_vars()). In which case you might need to use an attachment view and Views custom field module http://drupal.org/project/views_customfield to let you run code in a field.
gpk
----
www.alexoria.co.uk
Thanks gpk, this module
Thanks gpk, this module solved my problem.
Regards
chanakya
:-)
Cool!
gpk
----
www.alexoria.co.uk