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

Process mailchimp forms based on class name instead of id #40

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

slackero
Copy link
Contributor

@slackero slackero commented Feb 8, 2021

I had the problem to use the Mailchimp extension twice on a page (constant in the footer and inside content). It always resulted in DOM errors – because id="mailchimp-form" isn't unique in this case.

Because I did not find a simple solution to load another template (Templates/Form/Index.html) to just use a completely different structure I have refactored the JavaScript.

Bit off-topic:
Would be great to have an option to select another template or just have access to the outer tt_content values. I thought to use a custom tt_content.layout value as condition but it's not available when the mailchimp form is rendered.

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

Successfully merging this pull request may close these issues.

1 participant