Difference between revisions of "Drupal/C2/Taxonomy/English-timed"

From Script | Spoken-Tutorial
Jump to: navigation, search
(Created page with "{|border=1 |'''Time''' |'''Narration''' |- | 00:01 | Welcome to the Spoken tutorial on''' Taxonomy''' |- | 00:05 | In this tutorial, we will learn about * '''Taxonomy''' and...")
 
Line 5: Line 5:
 
|-
 
|-
 
| 00:01
 
| 00:01
| Welcome to the Spoken tutorial on''' Taxonomy'''
+
| Welcome to the '''Spoken tutorial''' on''' Taxonomy'''
  
 
|-
 
|-
 
| 00:05
 
| 00:05
| In this tutorial, we will learn about
+
| In this tutorial, we will learn about:
* '''Taxonomy''' and Adding a '''Taxonomy'''
+
* '''Taxonomy''' and
 +
* Adding a '''Taxonomy'''.
  
 
|-
 
|-
 
|00:11
 
|00:11
| To record this tutorial, I am using
+
| To record this tutorial, I am using:
 
* '''Ubuntu Linux Operating System'''
 
* '''Ubuntu Linux Operating System'''
* '''Drupal 8''' and '''Firefox Web browser'''
+
* '''Drupal 8''' and
 +
* '''Firefox Web browser'''.
 
You can use any web browser as per your choice.
 
You can use any web browser as per your choice.
  
Line 25: Line 27:
 
|-
 
|-
 
|00:27
 
|00:27
| Now that we have all of our''' Content types''' and''' fields''' built, we need to add''' categorization.'''And that’s where''' Taxonomy''' comes in.
+
| Now that we have all of our''' Content types''' and''' fields''' built, we need to add''' categorization.''' And, that’s where''' Taxonomy''' comes in.
  
 
|-
 
|-
Line 33: Line 35:
 
|-
 
|-
 
|00:41
 
|00:41
|Going back to our''' IMDB''' example, recall that we had a''' Movie Genre field''' on the''' IMDB site'''.
+
|Going back to our''' IMDB''' example, recall that we had a''' Movie Genre''' field on the''' IMDB site'''.
  
 
|-
 
|-
 
| 00:50
 
| 00:50
| Well, here’s the way it works in''' Drupal’s taxonomy'''.
+
| Well, here’s the way it works in Drupal’s '''taxonomy'''.
  
 
|-
 
|-
Line 61: Line 63:
 
|-
 
|-
 
| 01:24
 
| 01:24
| Now''',''' here’s one thing that is really important.
+
| Now, here’s one thing that is really important.
  
 
|-
 
|-
 
|01:28
 
|01:28
 
|One area that many''' sites''' fail on is -
 
|One area that many''' sites''' fail on is -
* using the''' built-in tagging widget''' or the''' tag vocabulary'''  to categorize their content.
+
using the''' built-in tagging widget''' or the''' tag vocabulary'''  to categorize their content.
  
 
|-
 
|-
Line 78: Line 80:
 
|-
 
|-
 
|01:47
 
|01:47
|So energy –''' e n e r g y''' isn’t the same as''' e n r e g y''' and''' Drupal''' doesn’t know the difference.
+
|So, energy –''' e n e r g y''' isn’t the same as''' e n r e g y''' and''' Drupal''' doesn’t know the difference.
  
 
|-
 
|-
 
| 01:56
 
| 01:56
| So suddenly, we will have 2''' categories''' and the content is no longer connected.
+
| So, suddenly we will have 2''' categories''' and the content is no longer connected.
  
 
|-
 
|-
 
| 02:02
 
| 02:02
| That’s why we always recommend a closed''' taxonomy''', like the one on the screen.
+
| That’s why we always recommend a closed''' taxonomy''', like the one on the '''screen'''.
  
 
|-
 
|-
 
|02:08
 
|02:08
|It’s easy to set up, and we are going to do that later on in this series.
+
|It’s easy to set up and we are going to do that later on, in this series.
  
 
|-
 
|-
Line 98: Line 100:
 
|-
 
|-
 
|02:17
 
|02:17
|We’ve already seen how it creates lists of content.But we can also use''' taxonomy''' to filter and sort all kinds of''' Views,''' if we use it correctly.
+
|We’ve already seen how it creates lists of '''content'''. But we can also use''' taxonomy''' to filter and sort all kinds of''' Views,''' if we use it correctly.
  
 
|-
 
|-
Line 118: Line 120:
 
|-
 
|-
 
| 02:46
 
| 02:46
|But as I mentioned earlier, we want to have a''' closed taxonomy -'''
+
|But as I mentioned earlier, we want to have a''' closed taxonomy'''-
* something that we can control, and not something that people can easily add''' terms''' to.
+
something that we can control and not something that people can easily add''' terms''' to.
  
 
|-
 
|-
 
| 02:56
 
| 02:56
| So we will click on''' Add vocabulary.'''And let’s name this as''' Event Topics.'''
+
| So, we will click on''' Add vocabulary.''' And, let’s name this as "Event Topics".
  
 
|-
 
|-
 
|03:02
 
|03:02
|In the''' Description,''' we will type -''' This is where we track the topics for Drupal events.'''
+
|In the''' Description,''' we will type - "This is where we track the topics for Drupal events".
  
 
|-
 
|-
 
| 03:09
 
| 03:09
| Click''' Save.'''Now we can add''' terms''' to our''' vocabulary'''.
+
| Click''' Save.''' Now we can add''' terms''' to our''' vocabulary'''.
 
Click on''' Add a term'''.
 
Click on''' Add a term'''.
  
 
|-
 
|-
 
| 03:16
 
| 03:16
|On the screen you see a list of the terms that we are going to add –
+
|On the screen, you see a list of the terms that we are going to add –
 
'''Introduction to Drupal,'''
 
'''Introduction to Drupal,'''
 
'''Site Building,'''
 
'''Site Building,'''
Line 151: Line 153:
 
|-
 
|-
 
| 03:34
 
| 03:34
| and it brings us back to this''' Add''' screen again.
+
| And, it brings us back to this''' Add''' screen again.
  
 
|-
 
|-
 
| 03:39
 
| 03:39
| Now, I’ll type''' Site Building''' and click''' Save.'''
+
| Now, I’ll type "Site Building" and click''' Save.'''
  
 
|-
 
|-
 
| 03:43
 
| 03:43
|'''Module Development''' and click''' Save.''' '''Theming…...,''' I’m just pressing ''' Enter''' and it automatically saves.
+
|'''Module Development''' and click''' Save.''' '''Theming…...'''. I’m just pressing ''' Enter''' and it automatically saves.
  
 
|-
 
|-
 
| 03:53
 
| 03:53
| And then the last one is''' Performance''', and click''' Save'''.
+
| And then the last one is''' Performance''' and click''' Save'''.
  
 
|-
 
|-
Line 171: Line 173:
 
|-
 
|-
 
| 04:03
 
| 04:03
| Clicking on''' Taxonomy''' here, and listing the''' terms''' in the''' Event Topics.'''
+
| Clicking on''' Taxonomy''' here and listing the''' terms''' in the''' Event Topics.'''
  
 
|-
 
|-
 
| 04:09
 
| 04:09
|We now have''' Introduction''',''' Module Development''',''' Performance''',''' Site Building''' and''' Theming.'''
+
|We now have''' Introduction, Module Development, Performance, Site Building''' and''' Theming.'''
  
 
|-
 
|-
 
| 04:16
 
| 04:16
|And they’re in alphabetical order.
+
|And, they’re in alphabetical order.
  
 
|-
 
|-
Line 187: Line 189:
 
|-
 
|-
 
| 04:23
 
| 04:23
|So I’m going to - move''' Module Development''' down,'''Site Building''' up,
+
|So, I’m going to - move''' Module Development''' down, '''Site Building''' up.
  
 
|-
 
|-
 
| 04:27
 
| 04:27
|* and I am going to put''' Theming''' after''' Site Building'''
+
| And, I am going to put''' Theming''' after''' Site Building''', and then''' Performance''' at the very end.
* and then''' Performance''' at the very end.
+
  
 
|-
 
|-
 
| 04:34
 
| 04:34
| Just click and drag these.Always remember to save your changes.
+
| Just click and drag these. Always remember to '''save''' your changes.
  
 
|-
 
|-
 
| 04:39
 
| 04:39
|Otherwise''' Drupal''' won’t remember them after you leave the screen.
+
|Otherwise''' Drupal''' won’t remember them after you leave the '''screen'''.
  
 
|-
 
|-
 
| 04:44
 
| 04:44
| So click''' Save'''.And there we have our''' terms''' in the order that we want.
+
| So, click''' Save'''. And there we have our''' terms''' in the order that we want.
  
 
|-
 
|-
 
| 04:50
 
| 04:50
| We have added the''' taxonomy''', but our''' Content type''' doesn’t know about this yet.
+
| We have added the''' taxonomy''' but our''' Content type''' doesn’t know about this yet.
  
 
|-
 
|-
 
|04:56
 
|04:56
| So let’s go and click on''' Structure, Content types.'''
+
| So, let’s go and click on''' Structure, Content types.'''
  
 
|-
 
|-
 
| 05:00
 
| 05:00
|And let’s manage our''' Fields''' and the''' Events Content type'''.Then click''' Add field.'''
+
|And let’s manage our''' Fields''' and the''' Events Content type'''. Then click''' Add field.'''
  
 
|-
 
|-
 
| 05:06
 
| 05:06
| Selecting a''' field type''' in this case is a''' Reference''' to the''' Taxonomy term''' in the''' vocabulary''' we just created.
+
| Selecting a''' field type''' in this case is a''' Reference''' to the''' Taxonomy term''', in the''' vocabulary''' we just created.
  
 
|-
 
|-
 
| 05:14
 
| 05:14
| So choose''' Taxonomy term''' and let’s name this''' Event Topics'''.Click''' Save and continue'''.
+
| So, choose''' Taxonomy term''' and let’s name this''' Event Topics'''. Click''' Save and continue'''.
  
 
|-
 
|-
Line 232: Line 233:
 
|-
 
|-
 
| 05:28
 
| 05:28
|Since we have already chosen that, be careful here.We will change it to''' Unlimited''' because an''' event''' can have more than one''' topic'''.
+
|Since we have already chosen that, be careful here. We will change it to''' Unlimited''' because an''' event''' can have more than one''' topic'''.
  
 
|-
 
|-
Line 240: Line 241:
 
|-
 
|-
 
| 05:40
 
| 05:40
| And down here, we need to make sure that we choose the correct reference type.
+
| And down here, we need to make sure that we choose the correct '''Reference type'''.
  
 
|-
 
|-
 
| 05:46
 
| 05:46
|Let’s choose''' Event Topics'''.Here, this is going to allow us to''' Create references entities if they don’t already exist.'''
+
|Let’s choose''' Event Topics'''. Here, this is going to allow us to "Create references entities if they don’t already exist".
  
 
|-
 
|-
 
| 05:56
 
| 05:56
| This is called''' Inline entity reference.'''Basically it means, if there was a''' topic''' that wasn’t in our listing, then any user can add it on the fly.
+
| This is called''' Inline entity reference'''. Basically, it means, if there was a''' topic''' that wasn’t in our listing, then any user can add it on the fly.
  
 
|-
 
|-
 
| 06:07
 
| 06:07
| We don’t want anyone to do that, so we will leave that unchecked.
+
| We don’t want anyone to do that. So, we will leave that unchecked.
  
 
|-
 
|-
Line 272: Line 273:
 
|-
 
|-
 
| 06:30
 
| 06:30
| We’ll do that later on in this series.With this we come to the end of this tutorial.
+
| We’ll do that later on, in this series. With this we come to the end of this tutorial.
  
 
|-
 
|-
Line 280: Line 281:
 
|-
 
|-
 
| 06:39
 
| 06:39
|In this tutorial we have learnt about
+
|In this tutorial, we have learnt about:
  
 
* '''Taxonomy'''
 
* '''Taxonomy'''
* Adding a '''Taxonomy'''
+
* Adding a '''Taxonomy'''.
  
 
|-
 
|-
 
| 06:48
 
| 06:48
| This video is Adapted from Acquia and OSTraining and revised by Spoken Tutorial Project, IIT Bombay.
+
| This video is adapted from '''Acquia''' and '''OSTraining''' and revised by '''Spoken Tutorial Project, IIT Bombay'''.
  
 
|-
 
|-
 
| 06:57
 
| 06:57
| The video at this link summarises the Spoken Tutorial project.Pls download and watch it.
+
| The video at this link summarizes the Spoken Tutorial project. Please download and watch it.
  
 
|-
 
|-
 
| 07:03
 
| 07:03
| The Spoken Tutorial Project Team conducts workshops and gives certificates.For more details, please write to us.
+
| The Spoken Tutorial Project team conducts workshops and gives certificates. For more details, please write to us.
  
 
|-
 
|-
Line 303: Line 304:
 
|-
 
|-
 
| 07:23
 
| 07:23
| This is Varsha Venkatesh signing off.Thanks for joining.
+
| This is Varsha Venkatesh, signing off. Thanks for joining.
  
 
|}
 
|}

Revision as of 16:49, 31 August 2016

Time Narration
00:01 Welcome to the Spoken tutorial on Taxonomy
00:05 In this tutorial, we will learn about:
  • Taxonomy and
  • Adding a Taxonomy.
00:11 To record this tutorial, I am using:
  • Ubuntu Linux Operating System
  • Drupal 8 and
  • Firefox Web browser.

You can use any web browser as per your choice.

00:23 Let us open our website which we created earlier.
00:27 Now that we have all of our Content types and fields built, we need to add categorization. And, that’s where Taxonomy comes in.
00:37 Taxonomy is nothing else but Categories.
00:41 Going back to our IMDB example, recall that we had a Movie Genre field on the IMDB site.
00:50 Well, here’s the way it works in Drupal’s taxonomy.
00:54 Movie genre would be a vocabulary and that’s the term for the main category.
01:00 And in that vocabulary, we have Terms.
01:04 So, on the screen, we have ACTION, ADVENTURE, COMEDY, DRAMA and ROMANCE.
01:11 And then under COMEDY, we have ROMANTIC, ACTION, SLAPSTICK and SCREWBALL.
01:18 We can have unlimited nested categories or terms in a Drupal vocabulary or taxonomy.
01:24 Now, here’s one thing that is really important.
01:28 One area that many sites fail on is -

using the built-in tagging widget or the tag vocabulary to categorize their content.

01:37 While it is great to be able to add categories on the fly, it has some inherent problems.
01:44 What happens if someone types a typo?
01:47 So, energy – e n e r g y isn’t the same as e n r e g y and Drupal doesn’t know the difference.
01:56 So, suddenly we will have 2 categories and the content is no longer connected.
02:02 That’s why we always recommend a closed taxonomy, like the one on the screen.
02:08 It’s easy to set up and we are going to do that later on, in this series.
02:12 For now understand that, Taxonomy can be used in so many ways.
02:17 We’ve already seen how it creates lists of content. But we can also use taxonomy to filter and sort all kinds of Views, if we use it correctly.
02:28 Well, let’s dive into taxonomy now.
02:32 We will set up a taxonomy for our Events Content type.
02:35 Click on Structure, scroll down and click on Taxonomy.
02:41 As you probably remember, we have been setting up tags all along.
02:46 But as I mentioned earlier, we want to have a closed taxonomy-

something that we can control and not something that people can easily add terms to.

02:56 So, we will click on Add vocabulary. And, let’s name this as "Event Topics".
03:02 In the Description, we will type - "This is where we track the topics for Drupal events".
03:09 Click Save. Now we can add terms to our vocabulary.

Click on Add a term.

03:16 On the screen, you see a list of the terms that we are going to add –

Introduction to Drupal, Site Building,

03:24 Module Development,

Theming, and Performance.

03:28 Let’s add those – Introduction to Drupal and click Save.
03:34 And, it brings us back to this Add screen again.
03:39 Now, I’ll type "Site Building" and click Save.
03:43 Module Development and click Save. Theming….... I’m just pressing Enter and it automatically saves.
03:53 And then the last one is Performance and click Save.
03:57 We can add complex vocabulary here, but we’ll just keep this simple for now.
04:03 Clicking on Taxonomy here and listing the terms in the Event Topics.
04:09 We now have Introduction, Module Development, Performance, Site Building and Theming.
04:16 And, they’re in alphabetical order.
04:19 But, I want to arrange them in the order of difficulty.
04:23 So, I’m going to - move Module Development down, Site Building up.
04:27 And, I am going to put Theming after Site Building, and then Performance at the very end.
04:34 Just click and drag these. Always remember to save your changes.
04:39 Otherwise Drupal won’t remember them after you leave the screen.
04:44 So, click Save. And there we have our terms in the order that we want.
04:50 We have added the taxonomy but our Content type doesn’t know about this yet.
04:56 So, let’s go and click on Structure, Content types.
05:00 And let’s manage our Fields and the Events Content type. Then click Add field.
05:06 Selecting a field type in this case is a Reference to the Taxonomy term, in the vocabulary we just created.
05:14 So, choose Taxonomy term and let’s name this Event Topics. Click Save and continue.
05:23 And now it’s going to ask us which Type of item to reference.
05:28 Since we have already chosen that, be careful here. We will change it to Unlimited because an event can have more than one topic.
05:37 Click Save field settings.
05:40 And down here, we need to make sure that we choose the correct Reference type.
05:46 Let’s choose Event Topics. Here, this is going to allow us to "Create references entities if they don’t already exist".
05:56 This is called Inline entity reference. Basically, it means, if there was a topic that wasn’t in our listing, then any user can add it on the fly.
06:07 We don’t want anyone to do that. So, we will leave that unchecked.
06:11 Click Save settings.
06:15 There is one more step before we add content.
06:18 We need to set up our URL patterns and we usually do this before we add content.
06:24 This ensures that the content we add has the correct human-friendly URL.
06:30 We’ll do that later on, in this series. With this we come to the end of this tutorial.
06:36 Let us summarize.
06:39 In this tutorial, we have learnt about:
  • Taxonomy
  • Adding a Taxonomy.
06:48 This video is adapted from Acquia and OSTraining and revised by Spoken Tutorial Project, IIT Bombay.
06:57 The video at this link summarizes the Spoken Tutorial project. Please download and watch it.
07:03 The Spoken Tutorial Project team conducts workshops and gives certificates. For more details, please write to us.
07:11 Spoken Tutorial Project is funded by NMEICT, Ministry of Human Resource Development and NVLI, Ministry of Culture Government of India.
07:23 This is Varsha Venkatesh, signing off. Thanks for joining.

Contributors and Content Editors

Pratik kamble, Priyacst, Sandhya.np14, Vijinair