Lab / Drupal

Drupal7: Page type test

This story is very short. If you need to use your any code only in one concrete page content type you can use this code on page.tpl.php

<?php if ( !empty($node) && $node->type == 'YourContentType'): ?>

 Your HTML or any other code

<?php endif; ?>