Drupal/C3/Adding-Functionalities-using-Modules/English

From Script | Spoken-Tutorial
Revision as of 16:23, 23 September 2016 by Priyacst (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Title of Script: Adding Functionalities using Modules


Keywords: video tutorial, drupal, Core module, Contribute module, Custom module

book module, forum module, Book outline, Navigation, Blocks, Forum Topic, Comments


Visual Cue
Narration
Slide 1:

Adding Functionalities using Modules

Welcome to the Spoken tutorial on Adding Functionalities using Modules.
Slide 2:

Learning Objectives


In this tutorial, we will familiarize ourselves with Modules.


We will learn about

  • Book Module and
  • Forum Module
Slide 3:

System requirement


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.

Time Narration
00:18 Modules and themes are the primary way to extend or add features to a Drupal website.
00:30 Drupal offers a complete content management system.
00:40 But sometimes we need more, and that is where modules come in.
00:45 Modules add features to our Drupal website.


There are three kinds of modules in Drupal.

00:50 There are Core Modules.


These are the modules that come with Drupal, by default.

00:55 They can be turned off.


But never go into the core area of a website using ftp, for instance, and remove these modules.


They will just get re-installed again, whenever we update Drupal.  

01:08 These Core Modules are designed for the basic functionality of Drupal.
01:14 Then, there are Contributed Modules.


We have already installed one, we installed Devel earlier.

01:20 A Contributed Module is a module that someone in the community contributes.


And it is available at drupal.org.

01:35 The final kind of module is a Custom Module.
01:40 This is where we just have some specific functionality that we need for our project.


This module is not available and nobody else thought of it, upto this point.


But, very obviously, we either have to build it ourselves or pay someone else to do it for us.

01:50 There are many different modules available for Drupal.
01:58 Over here at drupal.org, we can see that there are 32,458 modules already.
02:03 Modules do a variety of things.
02:08 One module may add a field to the Content type.


Another module may add a complete Voting System for our entire website.  

02:16 But we can only use a module that is compatible with the version of Drupal we’re on.


And so, we will always need to filter our modules here, at drupal.org/project/modules.

02:30 When we filter them, they are always listed in the order of popularity.
02:48 On the first three or four pages, are the most popular modules.


Which means, they’re the most used and often they’re the most helpful.

03:05 To summarise, Modules add features and there are many modules available for free, at drupal.org
Time Narration
00:05 Let us open our website which we created earlier.


Click on Extend and then scroll down.


Here we have some of the modules that come with Drupal by default.


But they are not already turned on.

00:20 Let’s enable the Book module.
00:25 Scroll down a little bit further and we’ll find the Forum module.


Let’s turn that one on, too.

00:50 We can turn two completely separate modules on, at the same time.
00:55 Scroll down to the bottom and click on Install.
01:00 The Book module and Forum module are two very, very different types of modules.


But they both create brand new Content types.


And they bring added functionality to Drupal by extending it.

01:15 Drupal modules do very different things, even though they are all modules.
01:25
  • When you want to add new features to your site
  • where it’s a whole new functionality
  • or even just a new Field type
  • you are adding a module to extend the Drupal core.
01:40 Now, let’s click on Structure and Content types.


We see that, there are two new Content Types here - a Book page and a Forum topic.

01:50 Check the Book page Content type by clicking Content and then Add content.
02:00 The Book page creates a book on our site, complete with
  • chapters,
  • navigations
  • and even a block that can go anywhere we want.
02:10 Click on Book page.


Now let’s type the Title as Our Drupal Manual.


In the Body, let’s type This is the beginning of our Drupal manual.

02:25 On our Publication settings we have a new setting.
02:30 Click on BOOK OUTLINE and change None to Create a new book.


Then click Save and publish.

02:48 Notice a new link over here, named Add child page.
02:56 At drupal.org, click on Documentation.


Now, when we click on Understanding Drupal, we can see the Book module.

03:05 Over here on the right hand side, is the navigation.


Here, at end of the page, is some more navigation, which is automatically generated.


On the left hand side, are the links.

03:15 Click on Drupal concept.


Notice we have navigation here.


And our navigation on the right hand side, has also expanded to show us what’s coming up next.

03:25 We can build complete and complex user guides or any kind of books we want using the Book module.
03:35 Let’s go back to our website and click on Add child page.
03:40 Type the Title as Installing Drupal and Body as This is where we explain how to install Drupal.
03:52 Notice that it is automatically put in the Drupal manual that we are creating.


This happens simply because we clicked on Create Book page.

03:59 Click Save and publish.
04:03 We can see that the navigation is automatically generated for us.
04:08 Click Up.


It takes us to the main level.


Recall - I mentioned earlier that there is a block available with this.

04:15 Click on Structure and Block layout.


And in the Sidebar first, let’s place the block.


Click Place block and we can see here - we have the Book navigation menu.

04:30 Click Place block.


Then click Save block.

04:40 Click Save blocks and go back to our site.


Here is our Book navigation, Our Drupal Manual and Installing Drupal.


This will collapse and grow as needed, when we add new child pages.

05:00 Again I am reminding you.


Go to drupal.org.


Browse through the user manual or documentation that uses the Book module to make this happen.

05:10 It’s really powerful if this is the kind of content you need on your site.


You are not restricted to the title and the body here.


You can add fields to the Content type that comes with the Book module.

Time Narration
00:05 If a website really benefits from having a forum, then the Forum module is really helpful.
00:25 Click on Content and then on Add content.
00:30 The Forum module actually creates a new Content type called Forum topic.
00:37 These are "field able", which means we are not restricted to just the title and the body.
0:42 Click on Forum topic. Enter a new forum topic, say, Learning Drupal.


In the Forums, put it in the General discussion.


Then enter the body - Hi, I’m just learning Drupal. Can someone help me?

01:05 Click Save and publish.
01:10 Now because it is in the Forum Content type, one responds through adding comments.
01:18 Let’s add a comment -


Sure I can help. You should just read everything at Drupalville!


And then click Save.

01:35 Since we are logged in as the super user, these are automatically approved.
01:40 If we click on General discussion, we have one general discussion.
01:47 Forum topic called Learning Drupal, with 1 comment.
01:52 Now, if we click on the comment, we can continue to add comments.


In this manner, we can create all kinds of forums.

02:00 Let’s click on the word Forums.
02:08 You can click here to add a new forum topic that will be in the general discussion.


But as the administrator, you might want more forums apart from this one.

02:15 So, let’s do that.


Click on Structure and then on Forums.


Here’s where we can add new forums and new containers.

02:28 If I want to add a forum, I can do that.


And I can reorder them anyway I want.

02:50 Let’s come back to Content and then on Add content and a Forum topic.


Now I have a choice of putting it in the other forums.

03:02 This is how we can maintain a nice forum like this, on our Drupal website.


With this we come to the end of our tutorial.

Slide 5:

Summary


Let us summarize.


In this tutorial we have learnt about

  • Introduction to Modules
  • Book Module and
  • Forum Module
Slide 6:

Acknowledgement


This video is
  • adapted from Acquia and OSTraining
  • and revised by Spoken Tutorial Project, IIT Bombay.
Slide 7:

Acknowledgement


The video at this link summarises the Spoken Tutorial project.


Pls download and watch it.

Slide 8:

Spoken Tutorial Workshops


The Spoken Tutorial Project Team conducts workshops and gives certificates.


For more details, please write to us.

Slide 9:

Acknowledgement


Spoken Tutorial Project is funded by
  • NMEICT, Ministry of Human Resource Development
  • And NVLI, Ministry of Culture

Government of India.

This is Calvin Nikil Tomy signing off.


Thanks for joining.

Contributors and Content Editors

Nancyvarkey, Priyacst