We Recommend

HTML: The Definitive Guide HTML: The Definitive Guide
They teach you that learning HTML is like learning any other language and that reading a book of rules can only take you so far. Readers begin writing what may be their first Web page just two pages into the book's second chapter. From there on, they provide a wide range of HTML coding to allow readers to learn from good examples. The book includes a handy "cheat sheet" of HTML codes for quick reference.


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.