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 »
  • Tailoring confirmation emails per site
Pages: [1]

Author Topic: Tailoring confirmation emails per site  (Read 1586 times)

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Tailoring confirmation emails per site
April 02, 2012, 07:24:41 pm
Hi,

I'd like to use CiviCRM multisite to create 'microsites'. For example we have a set of womens' events for which we want to have a microsite where people can get info and register. It seems we can do that nicely with multisite but without multiorg - the microsite has it's own look but the contacts are contained within our main database.

But how do I tailor the registration confirmation email for each domain?

Ideally I'd like to do ...
Code: [Select]
if domain-id == 1 then
    include TPL for domain 1
else if domain_id ==2 then
    ...

Is that possible?

Ken

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Tailoring confirmation emails per site
April 11, 2012, 08:14:29 am
Try {$domain.id} - if that doesn't work I'll check again. The multisite permissioning module exposes {pirg.id} which actually is {domain.id} but I think there is something exposed in core now
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

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: Tailoring confirmation emails per site
April 12, 2012, 01:46:02 am
Eileen,

{#domain.id} is not set for me. I'm using vanilla 4.1.1.

Thanks for your help,

Ken

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Tailoring confirmation emails per site
April 12, 2012, 12:20:06 pm
What about {domain.id}?
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

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: Tailoring confirmation emails per site
April 20, 2012, 01:17:14 am
I tried both {domain.id} and {$domain.id}

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Tailoring confirmation emails per site
April 20, 2012, 12:50:31 pm
Looks like civimail exposes {domain.name} & not ID - I think the same tokens are called
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 »
  • Tailoring confirmation emails per site

This forum was archived on 2017-11-26.