In previous tutorial, we have installed Drupal in our workstation with the help of Acquia Dev Desktop environment. From this tutorial we will dig dipper into the Drupal. To learn about Drupal well, we need to get know about its user interface and need to learn the site administration of Drupal.
Understanding Key Terms in Drupal
Before start digging, we need to learn some key terms of Drupal. So, lets be it –
Core: Core is the Drupal you downloaded from drupal.org
Module: It is a piece of software, which extends Drupal. We can install these modules individually with Drupal core.
Theme: The theme, what define the way your site look. In Drupal it is called appearance.
Content type: It is a template for your content that you have on your site. There are two content types you will get in Drupal, Article and Basic page. But you can create as many types as you want.
Fields: Fields are the pieces of information inside content types. Perhaps, you have a content type called customer. You also may have fields like address and phone number with your content type.
Nodes: The pieces of content you create, is called node. In other way, every content is called node.
Views: Views are often used multiple nodes in one place.
Taxonomy: It relates to how you categories contents using vocabularies and terms.
Aggregator: Aggregator is a Drupal tool to collect news feeds from outside of your Drupal site.
Drupal Super User Page
So now, run Acquia Dev Desktop from your workstation and click on Go to my site link. Before click, make sure you have selected drupalworld from your dropdown list. It will go to the home page with your browser. Now, logged in with your username and password, what you gave at the time of installation. For me, it is –
Now, you will get the following screen –
- Shortcut bar
- Node or content
Here is the detail description of these tools –
Toolbar: This is the top most bar you will see which is called toolbar. Toolbar contains home button and some other tools option like Dashboard, Content, Structure, Appearance, People, Modules, Configurations, Reports and Help. And the right side you will get a greetings and logout options. The number of tools option may differ if you are not the super user or admin of the page. You may control the accessibility of these options in user basis. Here is the short description –
Structure: Structure is used to configure the physical structure of the site, like Blocks, Content types, Menus, Taxonomy etc.
Configurations: Configurations is the place where you can change the behavior of your site. Even you can change the internal configuration like, Automatic site maintenance task, file system configuration, enhance performance etc.
- Shortcut bar: The bar under the toolbar is called shortcut bar. This bar is fully customizable. You can add as many items as needed. Usually, we add only those items, which we use most frequently. With default installation, we get only “Add content” and “Find content”.
If you click on the Add content, it will open the content types you have. With default installation, it only has Article and Basic page content types. But, it is possible to add more content types as you needed.
Find content is the place where you can manage your contents and comments. Even you can filter through those.
- Node or content: Nodes are the contents of your site. It manages the creation, editing, deletion, settings, and display of the main site content.
- Block: Block allows you to create boxes of content, which are rendered into an area, or region, of one or more pages of a website. You can create blocks as per your needed.
Let’s Do Something Useful
We already have enough knowledge to work with something useful. Rest of the Drupal we will learn by doing. Let’s make a plan for our first site. Excited!!! Hmm… Me too.
Let’s imagine we have one battalion of Minions. These Minions can help people. People can contact with us to get our Minions.
So for our site, we have following requirements –
- Our site should be responsive
- Menu options – Home, About, Contact
- In the home page all the new work of Minions will come
- About page will contain information of service
- Contact page contains a contact form to contact with us
Requirement 1: Responsive Theme
We need to download a responsive theme for our site. So, go to https://drupal.org/project/corporateclean and download 7.x version of this theme. Keep it anywhere you like. Now go to Drupal toolbar, Appearance>Install new theme>Choose File, below Upload a module or theme archive to install. Locate your downloaded theme. Then click Install to install it. Now go to Appearance again. Click Enable and set default under CorporateClean theme. Click Settings under CorporateClean 7.x-2.2 (default theme) title. Change the fields as follows, only –
Select Color set – Custom
Header top – #ffffff
Header bottom – #ffffff
Content top – #ffffff
Content bottom – #ffffff
Block background – #ffffff
Under TOGGLE DISPLAY – Uncheck – Site slogan
Under LOGO IMAGE SETTINGS – Use the default logo – uncheck
Click Upload logo image– and locate your logo
Click Save configuration button.
As in our site, we will have only contact form but no search or login option will be available, we need to change the structure of our site.
Under First sidebar set every item to none. Then scroll down and click Save blocks.
Now question is how can the administrator will login his site? Sounds crazy, right!!! Solution is easy. Go to the following link, you will get everything –
If you are not logged in, you will get login form or a registration form. Happy now?
Requirement 2: Menu option – Home
We have prepared our site by now. We have to add some content. So, click on Add content from shortcut bar. Click Article. And write –
Tags: Bananaaaa Minion
Body: Minions ipsum aaaaaah bananaaaa bappleees. Belloo! bee do bee do bee do bappleees ti aamoo! Gelatooo hahaha chasy bananaaaa poulet tikka masala. Poopayee po kass tank yuuu! Jeje po kass uuuhhh po kass. La bodaaa daa la bodaaa hana dul sae tulaliloo bappleees butt daa tulaliloo poopayee tank yuuu! Pepete jiji uuuhhh me want bananaaa! Jiji po kass hahaha butt butt. Pepete potatoooo aaaaaah jeje chasy butt. Potatoooo wiiiii butt chasy po kass tulaliloo chasy poopayee tank yuuu! Jiji bee do bee do bee do. Tank yuuu! chasy tatata bala tu butt. Po kass me want bananaaa! Chasy hana dul sae hana dul sae bee do bee do bee do chasy wiiiii poopayee aaaaaah.
Image: Browse and Upload your image.
Click Comment settings tab. Choose Closed.
Now click Publishing options tab. Check Published and Promoted to front page
And, click Save. Now go to your home page. What you see? Taaadaaaa…
Requirement 3: In the home page all the new work of Minions will come
As you already completed Requirement 2, you can complete requirement 3 as well. Do the same what you have done in Requirement 2. Just make sure about Publishing options tab to check Published and Promoted to front page. You are all set.
Requirement 4: About page will contain information of service
Now we will create our menu links. By default we already have our Home menu link. We need to add two more. To do so, follow the sequence –
- Click on the Add content on shortcut bar.
- You will get two types of content. One is Article and other one is Basic page. All the menu items like Home, About and Contact will go to Basic page. Because they are individual page. Other normal content will be Article.
So, click on Basic page and write
Title: About us
Body: We are the group of good Minions, want to help you. We have good record to help people. All the people around us love us. (or, any other text you like)
Now scroll down, and in Menu settings tab, check Provide a menu link.
Menu link title: About
Description: About us
And click Save.
Do you see, something has changed! Cool, right!!!
Requirement 5: Contact page contains a contact form to contact with us
We have to create a contact form. To do so we need to enable a module, which is already installed. Go to Modules from the toolbar. You will see a number of modules under CORE. Find Contact, check it, scroll down and click Save configuration.
We need to change its permission to make it available for everyone. So, go to People on the toolbar and click Permissions tab. Under PERMISSION column find Contact. Check all three for Use the site-wide contact form. Scroll down and click Save permission.
Our contact form is ready. Go to –
Menu link title: Contact
Description: Contact us
Click Save. Now go to your home page. We are ready to go. What are you seeing? Isn’t it amazing? Isn’t it wonderful?
Oh, I almost forgot, we need to change our site name. Right? So, click Configuration from toolbar. Under System category click Site information. Write-
Site name: Minions World
Here, you can change your email address, too. Remember, you will get all the emails from your customer through your contact form in this address. So, you may change it, if you like. Now, scroll down and click Save configuration.
After all of these works, we have got one beautiful, full responsive site. If you don’t believe try to change your browser size. See what happens–
10 Drupal Must Have Modules
We know modules are pieces of software, which help us to serve our purpose. Because, we have already used one contact module for our site. There are lots-of-lots-of modules available to make our work easier for different purpose. Now, I will give you a comprehensive list of 10 modules, which are really important to know, if you want to work with Drupal. All of these modules can be downloaded from Drupal module download page.
- Administration menu: It will change the look your toolbar and very useful. You can download it from https://drupal.org/project/admin_menu.
- Views: If you ask me, what is Views? I will answer, Views is everything in Drupal. I can write a full tutorial with views. Try to use it. It is available on https://drupal.org/project/views.
- Chaos tool suite (ctools): This suite is primarily a set of APIs and tools to improve the developer experience. It also contains a module called the Page Manager whose job is to manage pages. It is also pre-required for many modules. Available from https://drupal.org/project/ctools.
- Token: Tokens are small bits of text that can be placed into larger documents via simple placeholders, like %site-name or [user]. The Token module provides a central API for modules to use these tokens, and expose their own token values. You can download if from https://drupal.org/project/token.
- Pathauto: The Pathauto module automatically generates URL/path aliases for various kinds of content (nodes, taxonomy terms, users) without requiring the user to manually specify the path alias. This allows you to have URL aliases like /category/my-node-title instead of /node/123. Available from https://drupal.org/project/pathauto
- CKEditor – WYSIWYG HTML editor: This module will allow Drupal to replace textarea fields with the CKEditor – a visual HTML editor, sometimes called WYSIWYG editor. Very very useful. Download it from https://drupal.org/project/ckeditor
- IMCE: IMCE is an image/file uploader and browser that supports personal directories and quota. Available in https://drupal.org/project/imce
- Entity API: This module extends the entity API of Drupal core in order to provide a unified way to deal with entities and their properties. Additionally, it provides an entity CRUD controller, which helps simplifying the creation of new entity types. You can download it from https://drupal.org/project/entity
- Backup and Migrate: Back up and restore your Drupal MySQL database and files or migrate a site between environments. Backup and Migrate supports gzip, bzip and zip compression as well as automatic scheduled backups. Must have for site maintenance. It is available on https://drupal.org/project/backup_migrate
- Google Analytics: I think you know about Google Analytics. This module adds the Google Analytics web statistics tracking system to your website. You can download it from https://drupal.org/project/google_analytics
The list, I have given is the most useful modules. It may change depends on the type of work you want to do with Drupal. By now, can you realize you are becoming a Gru of Drupal!!!
Happy Coding 🙂
Drupal – Site Administration