Drupal 8

Drupal is a free, open-source CMS (Content Management System) application built on PHP. It is a powerful solution for creating various online projects starting from personal blogs, through corporate platforms all the way up to political and governmental websites.

The script was first written and released by Dries Buytaert in 2001 and it was focused on massaging. Since 2014 the application is developed and maintained by a community of users, which assures the reliability it is proud of.

The latest major release of the platform – Drupal 8 was announced in 2015 and includes brand new features and improvements such as the WYSIWYG (What You See Is What You Get) editing interface and the new intuitive object-oriented backend.

Since 2017 the application is used by more than 1.2 million websites including well-known organizations, governmental and university platforms and many others.

Despite of the fact that there are lots of CMS scripts available on the market Drupal has a leadership position, compared to the others. At the chart below you can see the market share that Drupal takes.

Going forward i am going to share issues and tips faced in my Drupal 8 projects. Hope it might be helpful to someone who might have face same type of issue in their project.

 

Advertisements

Drupal Architecture Diagram

This is really useful those who wants to understand the schema and its flow. For better view, right click on the image and view the image the separately…
schemagraph-2007-10-18

Disable drupal modules using MySQL query

I am doing a project in drupal.  After enabling a module, my site is not loading and i can’t able to disable that module.  so i start searching Google and found this easy solution. May be it will be helpful for others who have similar problems.

Connect to your mysql shell or phpmyadmin and then use following query to disable a module:

UPDATE system SET status=0 WHERE name='module name';

Remember to change module name to the name of the module you want  to disable. 
This action will disable that module so that administrators can access to the administration panel again.

To list all drupal modules:

SELECT * FROM system WHERE type='module';

Get the path to a Drupal module or theme

This is a very useful function in Drupal’s API that is hard to find searching online for file system paths to Drupal modules or themes or anything like that.

So to get the path to a Drupal module or theme it’s as simple as:

<?php
drupal_get_path('module', $module_name);
?>

or:

<?php
drupal_get_path('theme', $theme_name);
?>

http://api.drupal.org/api/function/drupal_get_path/5