How can I access a filed value of the node that I don't want to display in the view, is there any way to pass the field variable in $fields using view but not include it in display, I'm just want to use this field for checking a condition.

1 Answer 1


You can simply check "exclude from display" for this field.

  • Hi soju, if I do this I don't have the value of that field in templates file, for example I override views-view-field.tpl.php and $fields only contains fields that don not excluded from display. you can try it.
    – Mojtaba Es
    Commented May 4, 2011 at 13:15
  • 1
    Then don't check exclude and override views-view-fields.tpl.php instead of views-view-field.tpl.php
    – soju
    Commented May 4, 2011 at 13:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.