Tuesday, March 7, 2017

Headless Drupal

Drupal is the world’s popular and widely used CMS framework. Drupal back-end system is very strong and can be used for managing any type of content like text, categories, media, geospatial, etc. 

The term Headless Drupal means, use Drupal as a backend system and Rest server, so that content operations (read, update, delete) can be done from another language or tool. Drupal 8 comes with Rest Server included in its core. In Drupal 7 we can achieve this with a contributed module called Services or RestWS.

Nowadays people are using many devices like desktops, laptops, mobiles, tablets to explore the content and in parallel front-end frameworks are also invented to provide a better user experience while viewing content among different devices.

Since most people are using smartphones these days, many businesses want to stay with people always by providing their services through mobile apps and attract people with some offers and ads.

Using Headless Drupal content-rich back-end system can be done very quickly and data can be exposed through REST API. The front-end can be done by using any of the desired front-end frameworks like Angular JS, Backbone, or any other similar framework. We can also use the same REST API for developing mobile applications.


This way we can build different kinds of applications like a single page (SPA), responsive, mobile apps, etc. with a single Drupal back-end system.

Tuesday, February 7, 2017

Drupal 8 Multisite Creation

Goto /d8codebase/sites/sites.php file.

Add below array
$sites = array(
 'site1.com' => 'site1', // Domain name => Folder name.
 'site2.com' => 'site2',
);

Then create site1, site2 folders inside /d8codebase/sites/ folder

Like in D7, Inside site1 and site2 folders create separate settings.php and add the database and other configurations specific the site.

Add site1.com and site2.com in vhosts file.