Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subscribe to list on other website (on multisite setup) #113

Closed
bartrylant opened this issue Mar 10, 2020 · 3 comments
Closed

Subscribe to list on other website (on multisite setup) #113

bartrylant opened this issue Mar 10, 2020 · 3 comments
Labels
question Further information is requested

Comments

@bartrylant
Copy link

Hi

I'd like to create a subscribe form on website B for a mailing list that is created on website A. If I do
{% set mailingList = craft.campaign.mailingLists.id(2900).one() %}
I get an error message saying that mailing list does not exist. (It's created on site A, and the subscribe form is on site B.)

It's a multilingual website but the mailing list is one list in one language, so only created on one site.

@bartrylant bartrylant added the question Further information is requested label Mar 10, 2020
@bencroker
Copy link
Collaborator

Can you try specifying the handle of the site in which the mailing list exists, as the current site is used by default.

{% set mailingList = craft.campaign.mailingLists.id(2900).site('siteA').one() %}

@bartrylant
Copy link
Author

That works for displaying the form, but as soon as I try to subscribe, I get a 404 error saying
"Mailing list not found."

@bencroker
Copy link
Collaborator

Fixed in 3d3b340 for the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants