node-reference

Fix for Display block on specific node type, and set current node ID as view argument for node reference.

  1. <?php  
  2. // Make sure this is a block version of the view, and the current page is a node
  3. if ($view->build_type == 'block' && arg(0) == 'node' && is_numeric(arg(1))) {
  4.        

Fix for Display block on specific node type, and set current node ID as view argument for node reference.

  1. <?php  
  2. // Make sure this is a block version of the view, and the current page is a node
  3. if ($view->build_type == 'block' && arg(0) == 'node' && is_numeric(arg(1))) {
  4.        

Display block on specific node type, and set current node ID as view argument for node reference.

  1. <?php  
  2. // Make sure this is a block version of the view, and the current page is a node
  3. if ($view->build_type == 'block' && arg(0) == 'node' && is_numeric(arg(1))) {
  4.        
Syndicate content