Tell me more ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

I've created a content type (event) that has a boolean field (status). I've created a template in my theme called node--event.tpl.php and I've got just about everything working as intended, but I want part of the template to be conditional based on that boolean.

How can I access that boolean in the template so I can use it in an if/else statement?

share|improve this question

1 Answer

up vote 0 down vote accepted

Probably the same way as other fields: http://api.drupal.org/api/drupal/modules!node!node.tpl.php/7

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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