CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Multi-Site functionality »
  • When/how does a multisite's Domain Group get created
Pages: [1]

Author Topic: When/how does a multisite's Domain Group get created  (Read 1611 times)

chiebert

  • I post occasionally
  • **
  • Posts: 50
  • Karma: 1
  • CiviCRM version: 4.3
  • CMS version: Drupal 7
  • MySQL version: 5.1
  • PHP version: 5.3
When/how does a multisite's Domain Group get created
March 07, 2012, 02:09:41 pm
Hi all - after running through the process a few times in the past couple of days, I'm just about to update the 4.1 wiki docs on setting up multi site/multi org (N Drupal sites + 1 CiviCRM database) and I'm scratching my head on one part of the behaviour.

Short summary, a.k.a., "the steps thus far":

  • Install CiviCRM for Drupal Site1
  • Insert a new Domain for Site2 to the civicrm_domain table
  • Build navigation links for Site2 via MySQL import
  • Install Drupal Site2 if you haven't already
  • Install CiviCRM for Drupal Site2, either manually or auto-manually
  • Configure Civi in Site1
  • Configure Civi in Site2
  • Optionally sort out Access Control for Sites1 and 2

As part of steps 6 and 7 above, one 'turns on' multisite for each Domain, and then must associate that domain with a Group specifically designed to gather/segregate contacts for each separate Domain in the multi-site set-up.

Here's the thing: at some point, the relevant group - the one that you are supposed to associate with a given domain - gets automagically created by CiviCRM, but I'm not sure when it happens. The domain group doesn't exist (see /civicrm/group ) before you turn on Multisite, but it also didn't appear immediately once I did turn on multisite - at least not in the four tests I've run in the last day or two with fresh installs. The last time, I was about to create a group for this purpose - had the 'add group' form open, and was called away - then came back and decided to check once more before submitting the form, at behold! there it was.

I'm just thinking that, if this is normal behaviour, I'll add a wee line about it in the docs, so peeps aren't pulling out hair needlessly. It would then be, like, some zen thing - configuring CiviCRM à la tai chi. :)

Deepak Srivastava

  • Ask me questions
  • ****
  • Posts: 677
  • Karma: 65
Re: When/how does a multisite's Domain Group get created
March 07, 2012, 02:52:38 pm
Automagical creation of the site group happens when you have multisite turned ON AND

1. A new contact is created, since the thumb rule is all contacts must belong to the site group by default. And if it doesn't exist tries to create one.

2. When a drupal user logs in and requires internally creating a corresponding civicrm contact using #1 rule above.

So yes, automagical creation of site group is a normal behaviour. And thanks for updating the doc.
« Last Edit: March 07, 2012, 03:05:45 pm by Deepak Srivastava »
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

chiebert

  • I post occasionally
  • **
  • Posts: 50
  • Karma: 1
  • CiviCRM version: 4.3
  • CMS version: Drupal 7
  • MySQL version: 5.1
  • PHP version: 5.3
Re: When/how does a multisite's Domain Group get created
March 07, 2012, 04:10:37 pm
Aha! Thanks, Deepak. So, it's perfectly fine to go ahead and create a site group oneself if you've just set this up and are dotting 'i's and crossing 't's: if you've already created the group and set it up as the site/domain group, Civi groks the fact and carries on. Happiness!

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: When/how does a multisite's Domain Group get created
March 07, 2012, 08:43:30 pm
I have a function I use to create sites - but it's not 100%

https://svn.fuzion.co.nz/repos/fuzion-code/trunk/drupal/d7modules/civicrm_multidomain/civicrm_multidomain.inc
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Multi-Site functionality »
  • When/how does a multisite's Domain Group get created

This forum was archived on 2017-11-26.