Drupal’s Taxonomy System Ma4hias Hu4erer (mh86) Drupalcamp Vienna 27.11.2009
About Me • Part‐Ime Drupal developer • Studying Business InformaIcs at TU Vienna • ParIcipated in GSOC 2007 • Contributed modules: Taxonomy Manager, Content Taxonomy, Email Field, …
Agenda • IntroducIon • Contributed Taxonomy modules • Drupal 7 improvements • Taxonomy Manager Showcase
What is taxonomy? • pracIce and science of classificaIon • one method to organize content • tags and administrator defined terms h4p://www.flickr.com/photos/mightymightymatze/2150298078
Why taxonomy? • make it easier for your users to find content • make use of exisIng classificaIons • allows you to build powerful applicaIons – recommendaIons, faceted search, auto classificaIon, …
New York Observer
Foreign Affairs
Concepts • Vocabulary – groups terms that describe the same aspect – e.g.: Topics, Regions, Genre, Tags • Term – actual category – relaIonships to other terms: hierarchical, related‐to – a4ached to nodes – e.g.: Sports, Culture, Europe, Austria
Kinds of vocabularies • Controlled vocabularies – list of predefined terms – flat list or hierarchical • Freetagging vocabularies – user defined tags – no structure
Hierarchical Vocabularies Topics Politics Economics Sports Business Finance Government Interior Policy Alpine Skiing Soccer
Features (1/3) • AdministraIon for – vocabularies – terms
Features (2/3) • Form fields on node add – select list – autocomplete
Features (3/3) • term pages where nodes with that term are listed • RSS feeds that list nodes of the same type • links between nodes of the same type
Term Page URLs • taxonomy/term/5 • taxonomy/term/5,6 • taxonomy/term/5+6 • taxonomy/term/5/1 • taxonomy/term/5/all • taxonomy/term/5+6/0/feed
Contributed Modules Display / Manage Form fields Browse List / Search Navigation Recommendations Content Auto Categorize Import / Export Access Control
Managing Terms • Taxonomy Manager – demo later • Term Edit – links on taxonomy lisIng pages to directly edit taxonomy terms – in D7 core
Form fields • Content Taxonomy – CCK fields for referencing terms – much more flexible than core taxonomy fields – many widgets available – D7: Taxonomy fields in core • Hierarchical Select • AcIve Tags
Form fields
Input Terms
Display Terms • Tagadelic • Vocabulary Index
List / Search Content • Views – term fields, filters, args • Faceted Search • Apache Solr
NavigaIon • Taxonomy Menu – exposes vocabularies as menus • Taxonomy Breadcrumb – generates taxonomy based breadcrumbs on node and term pages – [Home] >> [Voc] >> Term >> [Term] …
RecommendaIons • suggest similar content to users based on terms – Similar by Terms – Relevant Content
Auto Categorize • Open Calais – integraIon of Thomson Reuters’ Calais webservice – automaIcally analyzes your content and generates rich semanIc metadata • Autotagger – tags a node with a term, if that term is present within the text
Further modules • Import / Export – Taxonomy XML – Taxonomy CSV • Access Control – Taxonomy Access Control – Taxonomy Access Control Lite
Drupal 7 Improvements • Term Fields • Fields on Terms – Related Terms – Synonyms • Term Edit • More Hooks
Taxonomy Manager Demo!
Recommend
More recommend