You are here

README.txt in Node Class 7

Same filename and directory in other branches
  1. 8 README.txt
  2. 6.2 README.txt
  -----------------------------------------------------------------------------------------
                                    ABOUT THE MODULE
  -----------------------------------------------------------------------------------------
  This is a simple module that adds custom classes per node
  
  
  
  -----------------------------------------------------------------------------------------
                                    HOW TO USE NODE CLASS
  -----------------------------------------------------------------------------------------
  Open your node.tpl.php in your theme and add the following :
  <?php print node_class($node) ?>
  
  So your whole tag will look like :
  <div id="node-<?php print $node->nid; ?>" class="<?php print node_class($node) ?> 
  node<?php if ($sticky) { print ' sticky'; } ?><?php if (!$status) { print ' node-unpublished'; } ?>">

File

README.txt
View source
  1. -----------------------------------------------------------------------------------------
  2. ABOUT THE MODULE
  3. -----------------------------------------------------------------------------------------
  4. This is a simple module that adds custom classes per node
  5. -----------------------------------------------------------------------------------------
  6. HOW TO USE NODE CLASS
  7. -----------------------------------------------------------------------------------------
  8. Open your node.tpl.php in your theme and add the following :
  9. So your whole tag will look like :