Here is an example of how to set global configuration variables (e.g. title, homepage URL) for the subdomain.

global $conf;
$conf['site_name']='The title of this domain';
$conf['site_frontpage']='node/244'; // The URL of the page to displayed on the front page of the domain.

The code should go to the 'Initialization code' field of the domain.

My sample multidomain

Comments

druvision’s picture

Title: Readme addon: setting global config vars » Documention addon: setting global config vars

Continued:

My sample multidomain site is http://www.levavie.com.

Note: To fetch the site front page URL in the theme:

            global $conf;
            print '<h1><a href="'. check_url($conf['site_frontpage']) .'" title="'. $site_title .'">';

(The example is taken from the garland theme.

wayland76’s picture

Component: interface » documentation
Status: Reviewed & tested by the community » Active

1. No patch is attached
2. It goes under Documentation.