AdSense filtering by node type

A few months back you and I talked about sprinkling ads in [Drupal] 4.7 and I pointed out the change in $seqid. Everything works great for sprinkling and a single ad on nodes. However, I've got a review module and don't want this code to show up on those pages. The reviews are saved as a regular page (../node/nn) but are aliased to ../reviews/review_name

Is there anyway to exclude pages in ../review from showing up?

-T

Copy your node.tpl.php template file to node-review.tpl.php and don't add the AdSense code to the node-review.tpl.php file. See http://drupal.org/node/17565


» deekayen's blog · Delicious · Digg · Technorati Topics:

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
  • Allowed HTML tags: <hr /> <a> <p> <em> <strong> <cite> <code> <blockquote> <ul> <ol> <li> <dl> <dt> <dd> <div> <img> <h1> <h2> <h3> <h4> <h5>
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options