Drupal - building taxonomy menu
Copy this code and paste it in your HTML
<?php
if (arg(0) == 'taxonomy' && arg(1)=='term' && is_numeric(arg(2))) {
$terms = taxonomy_get_term(arg(2));
}
?>
<pre><?php echo $terms->name ?>
</pre> <pre><?php echo arg(0); ?></pre> <pre><?php echo arg(1); ?></pre> <pre><?php echo arg(2); ?></pre>
Report this snippet
Comments
Subscribe to comments