node.tpl.php

Fix for Add Preious/Next Link

  1. <h3>mytheme_preprocess_node(){}</h3>
  2. <?php
  3. function myTheme_preprocess_node(&$vars, $hook) {
  4.   switch($vars['node']->type){
  5.     case 'nodeType':
  6.       if($vars['node']->body) {
  7.       $resultn =

Add Preious/Next Link

  1. <h3>mytheme_preprocess_node(){}</h3>
  2. <?php
  3. function myTheme_preprocess_node(&$vars, $hook) {
  4.   switch($vars['node']->type){
  5.     case 'nodeType':
  6.       if($vars['node']->body) {
  7.       $resultn =

load node.tpl.php by path

  1. function blueprint_preprocess_node(&$vars) {
  2.   // template name for current node id
  3.   $suggestions = array('node-'. $vars['nid']);
  4.   // additional node template names based on path alias

CCK Text field snippet within node-<type>.tpl.php works

  1. /*
  2.  * Code for BassPlaya
  3.  * I've tested this locally and it works for me
  4.  * the first part of the condional is if it's a view it will truncate it
  5.  * to 8 chars.
Syndicate content