I am trying to create a simple php if statement that goes something like this:
<?php if ($node->type == 'sales_team_page') {
'some html code goes here';
}
?>
This is not working though. Anyone have any ideas?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Output in Drupal is handled by the theme layer. Depending on what you’re trying to ouput, you typically pass an array to a theme_function. For instance, if you want to output a link, you use
theme_link(). api.drupal.org comes in very handy. An intro to the theme layer and a list of theme_functions lives here: http://api.drupal.org/api/drupal/modules–system–theme.api.php/group/themeable/7.It also seems possible that your condition isn’t being met.