I want a block to show on all pages classifieds as "products/*" but I do not want it to show on node 113 (because it is currently classified under products). Does anyone know the PHP script to allow this?

Current setting:
Show block on specific pages: products/*

New setting:
Show if the following PHP code returns TRUE (PHP-mode, experts only):

Comments

nevets’s picture

It sounds like you want something like

// By default we do not want to see the block
$ret = FALSE;

$node = menu_get_object();
if ( !empty($node) ) {
  // This assumes the content type is 'products', change if needed to the actual content type
  if  ( $node->type == 'products' && $node->nid != 113 ) {
   $ret = TRUE;
  }
}

return $ret;