Drupal domain access documentation
-
Upload
shoeab-ahmed -
Category
Software
-
view
84 -
download
2
Transcript of Drupal domain access documentation
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 .
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.
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 .
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
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 .
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.