Adding a department site
This page is for administrators and site builders. It follows the steps of Setting up several sites in one installation for a department of a public body.
Contents
Content
Create a folder for the department under the root, for example "Department of Example", and note its node ID. Assign it to a section for the department if editors of different departments must be kept apart (see "Editors and roles per department").
The siteaccess
Copy settings/siteaccess/site to settings/siteaccess/dept_example and set:
# settings/siteaccess/dept_example/site.ini.append.php
[SiteSettings]
SiteName=Department of Example
SiteURL=dept.example.gov
IndexPage=/content/view/full/<node id>
DefaultPage=/content/view/full/<node id>
[DesignSettings]
SiteDesign=dept_example
AdditionalSiteDesignList[]
AdditionalSiteDesignList[]=simpleand in dept_example/content.ini.append.php:
[NodeSettings]
RootNode=<node id>Register and match it
# settings/override/site.ini.append.php
[SiteAccessSettings]
AvailableSiteAccessList[]=dept_example
RelatedSiteAccessList[]=dept_example
MatchOrder=host;uri
HostMatchType=map
HostMatchMapItems[]=dept.example.gov;dept_exampleKeep the entries the installer wrote; add yours.
Host, DNS and certificate
Add the host name to DNS, to the web server or Velocity, and to the certificate (Going live: hosts, HTTPS and siteaccesses).
The administration
Add dept_example to [SiteSettings] SiteList[] of the admin siteaccess, so previews and links can use it.
Checks
php bin/php/ezcache.php --clear-tag=ini
curl -sI https://dept.example.gov/ | head -1Open the site signed out; check the front page, a page, search, and that pages of other departments are not reachable under this host unless intended.
Related pages
- Per-site designs
- Per-site settings in extensions
- Free documentation: this page is free to copy, translate and improve under the GNU FDL 1.3.
Become an Exponential Partner
Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.