- Accessing Oracle from PHP
- CSS tricks explained
- Conditional fields
- Drupal tips
- Installing Drupal
- Autologout when closing browser
- Block visibility depending on node type
- Editor instead of a text box
- Event calendar
- Hosting provider requirements
- Images
- Increasing upload and memory limit
- Meta tags
- Modifying the maintenance page
- Other fields besides title and body
- Permissions
- Second level primary links block
- Signup form using CCK
- Sticky table header
- Theme issues
- Translations
- Upload progress
- Useful modules
- Video uploads
- HTML / XML code
- PNG hack for IE5/6
With this code in the block visibility settings, the block appears only when a node is viewed of type xxx.
<?php
if (arg(0) == 'node' && is_numeric(arg(1)) &&
($node = node_load(array('nid' => arg(1)))) && $node->type == 'xxx') {
return TRUE;
}
return FALSE;
?>
Reference: http://drupal.org/node/64135 |
|||