Posted by sukh.singh on July 21, 2012 at 7:20am
I am building on one Drupal project where we have 1 main site and n number of sub-sites. The requirements are as follows per role base:
Super Admin
- Can create a n number of sub sites from main site front-end (a.foo.com, b.foo.com). We have wildcard entry for foo.com
- Can administer any sub-site created from main site.
- Can create content and can choose under which sub-site it will be available. (One content can be shared across multiple sub sites)
- Can create menus and can choose under which sub-site it will be available.
- Can create users (admin/editor/approver) for sub-sites.
- Should be able to set permission for the users (admin/editor/approver). For example add/remove/edit global navigation within the boundaries that the OEM Super Admin set for the site theme
Sub-Site Admin
- Modify content and blocks only for his sub site.
- Modify theme, create new theme.
- Configure google analytics and other social media plugins.
- Can modify node created by Super Admin.
Issue
- Which module to choose Domain Access, Sites, Spaces, Organic Group?
- Solution for both Drupal 6 & Drupal 7
Comments
Domain Access will get you
Domain Access will get you 90% of the way there. I think you'll need a bit of custom code to allow for subsite administration of GA settings and such on a per-domain basis, but for an experienced dev, it's not that tricky.
Could you elaborate on what you mean by creating and modifying themes, though? That's generally not something done through a web-based interface. However, I've worked on one Domain Access deploy where we got the Color module working to allow admins to change the colors of their subsites on a per-domain basis. It was quite tricky, but it more or less works.
The Boise Drupal Guy!
Creating and modifying themes means...
@Garret, firstly thanks for the answering to my question.
Creating and modifying themes means - Admin can take an existing theme and can modify its template and placements of the content in it as well and than he can save this theme as a new theme.
Also is it possible with Domain Access module that Admin of sub site can alter node created by Super Admin of main site. The node must not change for others sub-sites where it is being shown?
For example: Super admin created a node 1 which is homepage for all the sub-sites.
Sub-site 1: Admin wants on homepage the text should different on the homepage
Sub-site 2: Admin wants on homepage the latest new block should be on the left side rather than default in right sidebar.
Another Query
Can each sub-site admin choose different template for each node created?
For example: I have template A, B and C to choose from. Now when user create a node (for example node id 2) he can selected a template lets say he selected option A. so now when user view this node the system will use template A for node 2. is it possible with Domain Access?
Sukh Singh
Creating and modifying themes
From inside of a browser? Domain Access or no, this is probably going to be a difficult thing to do. I don't know of any current pre-built systems which can do something like this.
If you mean that the admins will build the themes using text editors and such like "normal" themers do, then that becomes a bit more plausible, but it will require working out a way to allow admins to upload their themes for use by Drupal without opening a big fat security hole.
No, this is not possible. You'll either need to use different nodes for each site, or build some sort of system by which different content fields on a node can appear for different sites (which would actually be an interesting project to contribute back, should you decide to go that route).
It's possible with some trickery and custom theming, but there's nothing to do that out of the box, no.
The Boise Drupal Guy!