Introduction to Drupal 7                            Session 2.3 - Homework                           Taxonomy Categorizati...
Homework• Read this through• Create categorization for your news content  type• The categorization should be in a taxonomy...
Agenda•    What is Taxonomy•    Managing taxonomies•    Taxonomy categorizations to content types•    Taxonomy manager mod...
Taxonomy• provides a mechanism for categorizing  content on your site• In Drupal taxonomy is divided into two  elements: a...
Taxonomies• Flat structure – no hierarchy – Tags example• Hierarchy – Categories with levels and sub-  levels• No limitati...
Managing taxonomies• Administration > Structure > TaxonomyDrupalist: Kalin Chernev    Course by Init Lab (http://initlab.o...
Our news categories•    News about products•    News about services•    General news•    Team newsDrupalist: Kalin Chernev...
Adding taxonomy category to a                    content type• Decide which content type will be categorized  with a given...
In our case• The news content type has several categories• We need to create a taxonomy vocabulary for  the category• We n...
Adding terms reference field• Administration > Structure > Content types• Decide which content type will take the terms  c...
Adding new field explained• Add new field > This is the label of the field• Category > has to be machine readable       – ...
Taxonomy term reference field• We want the Office Assistant to be able to  select multiple pre-defined values       ⇒ We n...
Selecting a term on content editDrupalist: Kalin Chernev   Course by Init Lab (http://initlab.org)   13
Seeing the taxonomy term ouputDrupalist: Kalin Chernev   Course by Init Lab (http://initlab.org)   14
Working with hierarchies• Drupal provides a simple mechanism for  creating and managing hierarchical structures  of taxono...
Taxonomy Manager – better UIhttp://drupal.org/project/taxonomy_managerDrupalist: Kalin Chernev   Course by Init Lab (http:...
ContactsKalin Chernev       – E: kalata@shtrak.eu       – T: twitter.com/kalinchernev       – U: http://shtrak.eu/kalataDr...
Upcoming SlideShare
Loading in...5
×

Introduction to Drupal 7 - Taxonomy Categorization - Homework included

2,572

Published on

Drupal taxonomy categorization lecture, including the homework for lecture 2 end.

Published in: Technology, Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
2,572
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Introduction to Drupal 7 - Taxonomy Categorization - Homework included

  1. 1. Introduction to Drupal 7 Session 2.3 - Homework Taxonomy CategorizationDrupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 1
  2. 2. Homework• Read this through• Create categorization for your news content type• The categorization should be in a taxonomy reference field• There should be a hierarchy categorizationDrupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 2
  3. 3. Agenda• What is Taxonomy• Managing taxonomies• Taxonomy categorizations to content types• Taxonomy manager moduleDrupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 3
  4. 4. Taxonomy• provides a mechanism for categorizing content on your site• In Drupal taxonomy is divided into two elements: a vocabulary and term• A vocabulary is simply a group of related terms• A term is a word or phrase that describes a distinct aspect of a vocabularyDrupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 4
  5. 5. Taxonomies• Flat structure – no hierarchy – Tags example• Hierarchy – Categories with levels and sub- levels• No limitations on the number of vocabularies• No limitations on the number of terms• No limitations on the depth of categorizationDrupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 5
  6. 6. Managing taxonomies• Administration > Structure > TaxonomyDrupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 6
  7. 7. Our news categories• News about products• News about services• General news• Team newsDrupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 7
  8. 8. Adding taxonomy category to a content type• Decide which content type will be categorized with a given taxonomy vocabulary;• Include a reference field to the vocabulary that we wish to link to the content;• One field with a given taxonomy term reference can be shared b/n content types;Drupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 8
  9. 9. In our case• The news content type has several categories• We need to create a taxonomy vocabulary for the category• We need to add several terms to the taxonomy vocabularyDrupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 9
  10. 10. Adding terms reference field• Administration > Structure > Content types• Decide which content type will take the terms categorization• Click on the “manage fields” link;• To add a new term reference field: – Enter a value in the “Add new field” – OR – Choose a field from the already created fields listDrupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 10
  11. 11. Adding new field explained• Add new field > This is the label of the field• Category > has to be machine readable – No white spaces, special signs, etc• Term reference is the field type you need• Type of term reference widget – Select list > Drop down with option values – Check boxes/ radio buttons > depends on # of values – Autocomplete term widget > As the default Tags fieldDrupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 11
  12. 12. Taxonomy term reference field• We want the Office Assistant to be able to select multiple pre-defined values ⇒ We need the “Check boxes/ radio buttons“ ⇒ “Number of values” option should be “Unlimited” to have checkboxes instead of radio buttons ⇒ The autocomplete type of widget is also possible in this case, but it’s better to enable the OA to choose a category of predefined visible options listDrupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 12
  13. 13. Selecting a term on content editDrupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 13
  14. 14. Seeing the taxonomy term ouputDrupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 14
  15. 15. Working with hierarchies• Drupal provides a simple mechanism for creating and managing hierarchical structures of taxonomy terms – use the handles ☺Drupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 15
  16. 16. Taxonomy Manager – better UIhttp://drupal.org/project/taxonomy_managerDrupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 16
  17. 17. ContactsKalin Chernev – E: kalata@shtrak.eu – T: twitter.com/kalinchernev – U: http://shtrak.eu/kalataDrupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 17

×