Drupal 8 Guide for Novice

D8 Guide for Novice

Here's quick points which are covered in the Blog. 

  1. Why to use Drupal 8
  2. How to install
  3. Basic Module Installation

Why To Use Drupal 8:

  • Mobile friendly: Drupal 8 is designed with mobile-first approach. All its themes are responsive and adapts to different sizes of screen.new admin toolbar works efficiently on mobile devices.
  • Views: Views are powerful tool to create different content and blocks which is available in drupal 8 core with better performed tuning. Admin panel of drupal 8 also uses views.
  • Inline editor: Drupal 8 provides inline editor which is edits content of a page without going to the edit page.
  • Symfony framework: Symfony framework is used in Drupal 8 which makes the code easy to maintain, scale, and reuse.
  • CkEditor: Drupal 8 provides CkEditor module as core for editing web pages easily.
  • New picture module: Drupal 8 introduces new picture module to automatically resize the image.
  • Multilingual Ready: With multilingual capabilities, you can translate anything in system.
  • New Template Engine: Drupal 8 uses “Twig” template instead of PHP template.
  • New Fields: The Drupal 8 comprises five completely new field types.The new field types are: Email, Date, Link, Reference, Telephone.
  • REST (Representational State Transfer): For reading, creating, deleting and updating resources.

How to install:

Drupal 8 can be installed with two Methods:

  1. Manual Installation
  2. With Composer

Manual Installation

Manual Installation is similar as Drupal 7.

Step 1: Download and extract Drupal (Rename its project name)

Step 2: Create the database

Step 3: Create settings.php and the files directory (Linux users have to give read/write permission to both settings.php and files directory same as D7.)

Step 4: Run the installation script (add DB detail,create user etc.)

With Composer

Just write or paste following command in Terminal(Linux,MacOS etc) or Command Prompt(Microsoft Windows). Make Sure You have Composer Installed.

composer create-project drupal-composer/drupal-project:8.x-dev my_project --stability dev --no-interaction

Above command downloads latest release of drupal 8 with project name “my_project”. Now follow steps from Step 2 from Manual Installation.

Basic Module Installation

Drupal 8 Module can be installed with three Methods:

  1. With drush
  2. With Composer
  3. Manual Installation

With drush (Recommended)

To install module with drush use following Command in Terminal(Linux,MacOS etc) or Command Prompt(Microsoft Windows). Make Sure You have drush Installed.

drush dl module_name

It will download module data into your_project/modules/module_name. To enable module write following code.

drush en module_name

With Composer

Just write or paste the following command in terminal(Linux, MacOS etc) or Command Prompt(Microsoft Windows). Make Sure You have Composer Installed & Drupal specific Packagist repository.

composer require drupal/module_name

Manual Installation (Not Recommended)

Hope this helps you and make Drupal8 rolling. Feel free to share valuable feedbacks and need more assistance regarding Drupal 8 Web Development Contact us now!.