Is it possible to have nodes default publish to a user's domain as well as a root domain without publishing to 'All affiliates'? The problem that I am having with 'All Affiliates' is it is too global, and it would be nice if a default setting was available to have a typical node publish to the user and root domains.

I am fairly new to Drupal, and when it comes to coding, my skills are limited so far. Perhaps I should be looking at this problem differently, and resolve through the Views module?

Comments

agentrickard’s picture

Easy to do in code, maybe someone has written it?

nonsie’s picture

Adding my 2 cents - it would be awesome if publishing could be grouped (with a separate realm) for grouped subdomains. Using location based sites (each city as a subdomain) as an example:
Group 1: all cities in US
Group 2: all cities in Canada

In publishing options a user with sufficient publishing perms would see the options to publish to
1. all affiliates
2. affiliate group(s) such as group 1 and group 2
3. individual subdomains

In domain settings one could define one or more groups the subdomain belongs to....

agentrickard’s picture

Also easy to implement, using existing APIs. Any takers?

mtopro’s picture

nonsi- that takes the idea to another level, but that is exactly what I am talking about. I am happy to help any way I can, although as I said I am still learning.

agentrickard’s picture

No need to use a separate relam -- though you could -- just use hook_form_alter() to create group clusters. Also see hook_domainrecords() and hook_domaingrants().

nonsie’s picture

Ken, my idea was to have groups so that when you add another subdomain and assign it to a group all content published to that group will be available on the newly created subdomain (hence separate realm).
I'd love to pick your brain on that if you ever have a free minute. It's something I need to implement by the end of the year on one of my sites.

agentrickard’s picture

Status: Active » Postponed

You could do it with a new realm, or just do it by clustering several existing gids for the existing domain_id realm. The first method is less database storage, the second, a little easier to implement.

Both can be accomplished pretty easily, but I doubt I will have time to work on them.

I am not working on any new features until #298696: * ROADMAP * Please read this first is completed.

agentrickard’s picture

Status: Postponed » Closed (won't fix)