Drupal - building taxonomy menu


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



Copy this code and paste it in your HTML
  1. <?php
  2. if (arg(0) == 'taxonomy' && arg(1)=='term' && is_numeric(arg(2))) {
  3. $terms = taxonomy_get_term(arg(2));
  4.  
  5. }
  6. ?>
  7.  
  8. <pre><?php echo $terms->name ?></pre>
  9. <pre><?php echo arg(0); ?></pre>
  10. <pre><?php echo arg(1); ?></pre>
  11. <pre><?php echo arg(2); ?></pre>
  12.  

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.