How Multi Domain Works - AamAadmiParty/india-standalone-drupal GitHub Wiki
Drupal by default does not give any functionality to create a Multi-Domain site.
For AAP we are using a module Domain Access, which creates virtual subdomains. The subdomains so created share the database and the code amongst each other i.e. a content created on one subdomain is also available another and there are no different sites for different subdomains.
Now, to make sure the content intended for Rajasthan does not show up on West Bengal subdomain, we mark the content being created to show only on Rajasthan sub domain. The content can also be shared between multiple subdomains.
For any content (news, page etc.) you create on any domain there is only one copy of that content present. You may mark that content to be shown only on the Main Site or Only on one State Site or Main site + one/multiple state site(/s) or Multiple State Sites.
Now, to make creation of content as simple as possible, there are 4 roles to create and approve content on the site.
- State Domains Author
- All Domains Author
- State Domains Approver
- All Domains Approver
Lets walk through what functionalities there are in the AAP site for each role.
- A user with 'State Domains Author' role can create content of type
- Create content of any type required. (You will not be allowed to edit the content after saving it.)
- A user with 'All Domains Author' role can create content of type
- Create content of any type required. (You will not be allowed to edit the content after saving it.)
- A user with 'State Domains Approver' or 'All Domains Approver' role can create content of type
- Create content of any type required.
- To publish/unpublish content of domains assigned to you, follow the instructions below
- Click on Affiliated Content in the admin menu at the top of the page
- This will redirect you to a page where you will see Content assigned to all affiliates in the first row, clicking on which will take you to a page where you will see a list of content shared between all the subdomains.
- In the other rows you will see Aam Aadmi Party, content, click on whatever subdomains content you want to see. Refer Image below (Here the approver has been assigned Rajasthan Domain only)
- After clicking on the subdomain's content link, you will be redirected to a page showing all the content for that subdomain, sorted by recently updated date. At the top of the page you will see filters to filter the content by Status or Type or both.
- You can view the content by clicking on the title of the content. If you have edit/delete permissions for the content than you will see edit and delete link in the last column of the row.
- To edit or publish/unpublish the content click on edit, you'll be redirected to the edit page of the content. Now, to publish or unpublish the content at the top of the page just below your username you will see a Publish or Unpublish link, click on the link for the intended action.
- Before publishing the content it is advised to check the Source Domain of the content on its edit page should be the one your content is intended for.
For State Specific Users, it is advised to login only from the subdomain assigned to you and not from others.
###For All Domains users or multi state site users, while creating/editing the content you will see a fieldset titled Domain Access Options just below the Title text field.
- Use Publish to field to select the Domains on which to show the content being created or edited.
- Use Source Domain list to select the source domain. State Domain Approvers of that domain would only be able to edit/publish the content.



