Hi everybody, I'm working on my site made in Drupal 6, I've created a view to show links for a content type nodes. I would like for this view to appear only for this specific content type. I've tried to insert some php code that I've copied paste from Drupal site, but it doesn't work. Do yo know how to do this? Thank you!
Well I'm answering myself, I found this one here http://drupal.org/node/844110 and it works: $nodeType = "news"; // valid node id in view mode if ( arg(0) == 'node' AND is_numeric(arg(1)) AND arg(2) == FALSE ) { $node = node_load(arg(1)); // cached if ( ($node->type == $nodeType) ) { return true; } } return FALSE; I'm posting it in case you need it too!
its really easy just add filter ..in filter select node type and which content or cck you want to show click on that..
Yes, the filter is in the view, but I can'f find it for the block, to make it a block condition, see?