Using Views 2 and Drupal 6 to Create a Related Pages Block


/ Published in: PHP
Save to your folder(s)

I just wanted to have the argument code as text. It is provided as an image.


Copy this code and paste it in your HTML
  1. $node = node_load(arg(1));
  2. if($node){
  3. foreach($node->taxonomy as $term) { $terms[] = $term->tid;}
  4. return implode('+',$terms);
  5. } else {return;}

URL: http://drupaleasy.com/blogs/ryanprice/2008/06/using-views-2-drupal-6-create-a-related-pages-block

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.