drupal domain access documentation

21
Drupal Domain Access Documentation on Drupal domain access module

Upload: shoeab-ahmed

Post on 14-Apr-2017

83 views

Category:

Software


2 download

TRANSCRIPT

Drupal Domain AccessDocumentation on Drupal domain access

module

Step 1: Install & activate moduleAfter installing module from https://www.drupal.org/project/domain

A new Structure “Domains” will be added automatically by the module .

Step 1: Install & activate module

Structure After Installing Module (screenshot)

Modify settingsGive write permission to sites/default/settings.php

and after modifying settings.php according to the next slide change sites/default/settings.php permission back to write protected .

Step 2: Modify settings (Continuing)

Append sites/default/settings.php …….add this line below at the end of the fileinclude DRUPAL_ROOT . '/sites/all/modules/domain/settings.inc';

Step 3: Set up DomainFrom Structure » Domains a domain can be added. This domain must be enlisted in “Hosting” and in the HTTP server as well . Adding Domain is pretty simple. Set up the Site slogan, Email address, and frontpage for the newly created domain from settings Structure » Domains » domain.name

Domain must be set to active.

Add Sub Domain (screenshot)

Add Sub Domain (screenshot)

Setup Sub Domain (screenshot)

Step 3: Theme From Structure » Domains by clicking on the “edit domain” and then in “settings” we can change the admin theme for the newly created domain.

For the front end to have a different theme other than the main site we need to activate “Domain Themekey” module and for this module to work we need another module .

Edit Domain to setup frontend theme (screenshot)

Step 3: Theme(Continued) Name of this module is “ThemeKey” . We can have it from this link https://www.drupal.org/project/themekey.

After activating “ThemeKey” and “ThemeKey UI” from Module a new tab named “Theme” will be added in Structure » Domains » domain.name

Add and activate themekey module (screenshot)

Step 3: Theme(Continued) In the “Theme” tab in “domain” which is under “Structure” menu, there will be enlisted all the themes from the main site and activating any of this theme will provide a separate theme for the newly created domain’s front end .

If “Theme” doesn’t appear just update script and run cron .

Select theme from theme tab (screenshot)

Front end Of two sites

Node of two sites

Different views and BlocksSince we have different page and blocks in drupal for each themes so we don’t have to be too concerned about these.

Watch the screenshot in the next slide.

We can have different blocks by default for different themes

Thank You