Hi,

I want to stop showing some blocks on a particular 'content type' page.

That may get done with below steps. I am not sure how to implement these steps.

1. Create a content type page with this URL - http://example.com/contenttype/title
2. Configure the block to stop showing it on page - contenttype/

Thanks,
Gaurav Goel

Comments

tdimg’s picture

Grab yourself the pathauto module (needs the token module to work), go to the node settings and provide a setting to each content type. So for example for Story you could have article/[title]/[nid] - I put in nid just to avoid possible conflicts.

Then in the specific block configuration you set Show block on specific pages, you set it to Show on only the listed pages and write in the textarea: article/*.

The alternative would be to use some php code in this last textarea, but this one here is the saver way to go.

mdixoncm’s picture

If you wanted to do it the PHP way (if your nodes have to have different URLS for example) you could use something like this

<?php
  if (arg(0)=='node' && intval(arg(1)){
    $node=node_load(arg(1));
    if ($node->type=='YOUR CONTENT TYPE'){
      return true;
    }
  }
?>

On your block's settings page, set the 'display if this PHP code evaluates to true' and pop the above into the textarea

Mike,
Computerminds offer Drupal development, consulting and training