Drupal

How to Generate URL Aliases using Pathauto in Drupal 8

Submitted by Rajasekhar on Sat, 12/08/2018 - 07:14

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. The aliases are based upon a "pattern" system that uses tokens which the administrator can change.

Requirements: Install below module also with the Pathauto module.

  • Token
  • CTools

Follow below steps:

How to Update Drupal 7 Website Core to Latest Update (Minor Version)

Submitted by Rajasekhar on Sat, 11/17/2018 - 19:31

This note describes how to upgrade Drupal 7 core to the latest update (minor version): 7.x to 7.y. See references to understand different types of upgrade. 

Steps are:

  1. Take the backup of the website

    1. create a zip file of the website folder in cpanel

    2. take backup of the database using backup and migrate module

  2. Download latest Drupal 7 core zip file from drupal.org website.

  3. Upload the Drupal core to the website folder

  4. Extract the Drupal core

Issues Faced while migrating a Drupal 7 Website to a New Server with Cpanel

Submitted by Rajasekhar on Sat, 11/17/2018 - 19:28

Issues Faced:

I have got the fatal error when I am trying to check my site is loading properly or not (Step 10). FYI – See below image.


error

 

 

So I had googled it and find out a solution from drupal.org site.

Available Link: https://www.drupal.org/project/webform/issues/2811063

[Practical P-2] How to Migrate a Drupal 7 Website to a New Server with Cpanel (with Screenshots) - PART B

Submitted by Rajasekhar on Sat, 11/17/2018 - 19:21

Please follow steps after done with PART A:

  1. Upload the source file zip to the folder in the new server.
  • Go to FILES section, click on File Manager and select Web Root (public_html/www) directory to place the file and click on Go.

  • Now you can able to see your File Manager Webroot directory and the files.

[Theory] How to Migrate a Drupal 7 Website to a New Server with Cpanel

Submitted by Rajasekhar on Sat, 11/17/2018 - 19:14

Steps to migrate the website are:

  1. Create a backup of the website from the existing server

    1. Create a zip file of the source folder

      1. Note: You may have to check with the person/team that handles the older server.

    2. Take a database backup of the website using backup & migrate module of Drupal.

      1. Note: If you do not have permissions, you may ask a person/team that handles the old website.

How to auto-generate title in Drupal 7

Submitted by Rajasekhar on Sat, 11/17/2018 - 19:10

Install and enable the module Automatic Nodetitles

Edit the content type for which you need to enable the automatic title generation

Add a new field 'Title(Optional)' .

In the edit page of content type, click 'Automatic title generation' and enable the option you need and give the pattern for title generation

Save the content type.

When you create a content, provide value for the title(optional) and it will generate the title 

Tags

How to Add Images Within the Content using Insert Module

Submitted by Rajasekhar on Sat, 11/17/2018 - 19:07

There are two ways to insert images into the content. If we want to just display an image at the top of the content, we can use the default image field of Drupal content types.

But to add images within content, we have to install 'insert' module.

Setup:

  1. You need to install the module and enable it.

  2. Enable insert button and configuration by going to the image field setting for the content type (e.g. blog).

After enabled, now we can insert images using below steps.

[Practical P-3] Setting Up Drupal 8 In Local Using Acquia Dev Desktop part 3 - Post Install Configuration

Submitted by Rajasekhar on Sat, 11/17/2018 - 18:54
  • Click on the local site link (See the last image of the page), you will get Drupal configuration page, Choose the language and click on Save and continue. See Step 1
  • Select profile, Save and continue. See Step 2
  • If you got warnings to check out theory and page down we have option continue anyway. Click on it and installation will start now. See Steps 3 and 4

[Practical P-2] Setting Up Drupal 8 In Local Using Acquia Dev Desktop part 2 - Installing Drupal

Submitted by Rajasekhar on Sat, 11/17/2018 - 18:50
  • Launch the Acquia Dev Desktop to start Drupal Installation. Now you have three options to install your Drupal site, you can choose any option as required. See below screenshot.
  • If you don’t have any existing site, then click on the first option.

  • Oops got an error when trying the first option as shown below.