You are here

README.txt in OG Vocabulary 6

Same filename and directory in other branches
  1. 5 readme.txt
  2. 7 README.txt
Description
-----------------
Adds a 'Taxonomy' tab to all group home pages where privileged users may
add/edit their own vocabularies/ terms.

Features
--------
* Fine grained permissions control who can see the Taxonomy tab, create or edit
vocabulary and terms.
* Privileged user can assign/ remove a vocabulary from a group right inside
the admin/taxonomy page.
* Rules module integrations.

Themes example
-------------------
You might want to group your terms by vocab on the node display.
Here is a snippit from groups.drupal.org for node.tpl.php which does so:

<?php if ($links || $terms) { ?>
<div class="links">
   <div class="left">
    <?php if ($terms  && !$is_preview) { ?>
       <?php
        // Group terms by vocab.
        foreach ($node->taxonomy as $tid => $term) {
            $vocabs[$term->vid][$term->tid] = l($term->name, "taxonomy/term/$tid");
          }
          krsort($vocabs);

          // Render a line for each vocab. performs a query to get vocab name.
          foreach ($vocabs as $vid => $vocab) {
              $fullvocab = taxonomy_get_vocabulary($vid);
              $output .= "<div id=\"node-vocab-$vid\">". $fullvocab->name. ': '. theme('links', $vocab). "</div>";
            }
         ?>
       <div class="terms"><?php print $output; ?></div>
    <?php } ?>
   </div>
   <?php if ($links) { ?>
     <div class="right">» <?php print $links?></div>
   <?php } ?>&nbsp;
</div>
<?php }; ?>

Author
------------------
Moshe Weitzman <weitzman AT tejasa.com
D6 Update: Darren Ferguson <darren.ferguson AT openband DOT net>
D6 further update: Amitai Burstein (http://drupal.org/user/57511)

Sponsors
------------------
Buyblue - http://buyblue.org
Green Party of Canada - http://www.greenparty.ca
D6 Update: OpenBand <http://www.openband.net/>

File

README.txt
View source
  1. Description
  2. -----------------
  3. Adds a 'Taxonomy' tab to all group home pages where privileged users may
  4. add/edit their own vocabularies/ terms.
  5. Features
  6. --------
  7. * Fine grained permissions control who can see the Taxonomy tab, create or edit
  8. vocabulary and terms.
  9. * Privileged user can assign/ remove a vocabulary from a group right inside
  10. the admin/taxonomy page.
  11. * Rules module integrations.
  12. Themes example
  13. -------------------
  14. You might want to group your terms by vocab on the node display.
  15. Here is a snippit from groups.drupal.org for node.tpl.php which does so:
  16. // Group terms by vocab.
  17. foreach ($node->taxonomy as $tid => $term) {
  18. $vocabs[$term->vid][$term->tid] = l($term->name, "taxonomy/term/$tid");
  19. }
  20. krsort($vocabs);
  21. // Render a line for each vocab. performs a query to get vocab name.
  22. foreach ($vocabs as $vid => $vocab) {
  23. $fullvocab = taxonomy_get_vocabulary($vid);
  24. $output .= "
    ". $fullvocab->name. ': '. theme('links', $vocab). "
    ";
  25. }
  26. ?>
  • ¬ª
  •  
  • Author
  • ------------------
  • Moshe Weitzman
  • D6 Update: Darren Ferguson
  • D6 further update: Amitai Burstein (http://drupal.org/user/57511)
  • Sponsors
  • ------------------
  • Buyblue - http://buyblue.org
  • Green Party of Canada - http://www.greenparty.ca
  • D6 Update: OpenBand