Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Latest commit

 

History

History
122 lines (83 loc) · 3.05 KB

File metadata and controls

122 lines (83 loc) · 3.05 KB

NOTE: This plugin is deprecated since Dec'16

Taiga Contrib Sendinblue Subscription

Kaleidos Project Managed with Taiga.io

Plugin to subscribe and unsubscribe users to the newsletter and user list in Sendinblue

Installation

Configure Sendinblue

In Sendinblue you have to add two custom attributes to your contacts.

1 - Open Sendinblue. 2 - Go to Settings > Attributes & CRM 3 - Add the attributes: - Remove 'SURNAME' and 'NAME' - Add 'FULL_NAME' and 'USERNAME' (text type both of them).

Production env

Taiga Back

In your Taiga back python virtualenv install the pip package taiga-contrib-sendinblue-subscription with:

  pip install -e "git+https://github.com/taigaio/taiga-contrib-sendinblue-subscription.git@stable#egg=taiga-contrib-sendinblue-subscription&subdirectory=back"

Then modify in taiga-back your settings/local.py and include this line:

  SENDINBLUE_NEWSLETTER_LIST_ID = "my-newsletter-list-id"
  SENDINBLUE_TAIGA_USERS_LIST_ID = "my-taiga-user-list-id"
  SENDINBLUE_API_KEY = "XXXXXXXXXXXXXXXXX"

  INSTALLED_APPS += ["taiga_contrib_sendinblue_subscription"]

Taiga Front

Download in your dist/plugins/ directory of Taiga front the taiga-contrib-sendinblue-subscription compiled code (you need subversion in your system):

  cd dist/
  mkdir -p plugins
  cd plugins
  svn export "https://github.com/taigaio/taiga-contrib-sendinblue-subscription/branches/stable/front/dist" "sendinblue-subscription"

Include in your dist/conf.json in the contribPlugins list the value "/plugins/sendinblue-subscription/sendinblue-subscription.json":

...
    "contribPlugins": [
        (...)
        "/plugins/sendinblue-subscription/sendinblue-subscription.json"
    ]
...

Dev env

Taiga Back

Clone the repo and

  cd taiga-contrib-sendinblue-subscription/back
  workon taiga
  pip install -e .

Then modify in taiga-back your settings/local.py and include this line:

  MAILCHIMP_NEWSLETTER_ID = "my-newsletter"
  MAILCHIMP_API_KEY = "XXXXXXXXXXXXXXXXX"

  INSTALLED_APPS += ["taiga_contrib_sendinblue_subscription"]

Taiga Front

After clone the repo link dist in taiga-front plugins directory:

  cd taiga-front/dist
  mkdir -p plugins
  cd plugins
  ln -s ../../../taiga-contrib-sendinblue-subscription/front/dist sendinblue-subscription

Include in your dist/conf.json in the contribPlugins list the value "/plugins/sendinblue-subscription/sendinblue-subscription.json":

...
    "contribPlugins": [
        (...)
        "/plugins/sendinblue-subscription/sendinblue-subscription.json"
    ]
...

In the plugin source dir taiga-contrib-sendinblue-subscription run

npm install

and use:

  • gulp to regenerate the source and watch for changes.
  • gulp build to only regenerate the source.