Posted By

JuliaKM on 10/24/07


Tagged

textmate drupal taxonomy cck


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

basicmagic
kellyharding
panatlantica


Drupal Taxonomy Terms From CCK Taxonomy


 / Published in: HTML
 

  1. <?php
  2. $i = 0;
  3. $limit = count($field_field_of_interest);
  4. while ($i <= ($limit-1)) {
  5. $tags[] = l($field_field_of_interest[$i]['view'], 'taxonomy/term/'. $field_field_of_interest[$i]['tid']);
  6. $i++;
  7. }
  8. if ($field_field_of_interest){
  9. print t("Fields of Interest") . ": " . implode(' | ', $tags);
  10. }
  11. ?>
  12.  
  13. <br />
  14.  
  15. <?php
  16. $i = 0;
  17. $limit = count($field_professional_area);
  18. while ($i <= ($limit-1)) {
  19. $tagsTwo[] = l($field_professional_area[$i]['view'], 'taxonomy/term/'. $field_professional_area[$i]['tid']);
  20. $i++;
  21. }
  22. if ($field_professional_area){
  23. print t("Professional Area") . ": " . implode(' | ', $tagsTwo);
  24. }
  25. ?>

Report this snippet  

You need to login to post a comment.