I love modx, but really when it comes to add ons, I just feel useless ! Pretty hard to understand sometimes ... and feel pretty lonely when it come to gettig some support ... I am trying to get the newsletter add on to work and cannot pass the first easy step .... getting the subscribe page to work and get user in the database ... I just don't know what it is I am doing wrong, if anyone could help that would be great ... So I followed the instructions and I have a form set up
<!--
* FormIt is required!
* Fields used: firstname, lastname, company, email
* The 'ditsnewssignup' hook (snippet) adds the subscriber or returns an error message.
* Redirects to a 'thankyou' page!
* Don't forget to specify the group(s) the subscriber should be added to (see below) and set the confirmPage
* Of course, you can also use this in a "normal" contactform.
-->
[[!FormIt? &hooks=`spam,ditsnewssignup,redirect` &redirectTo=`28` &validate=`email:required:email` &confirmPage=`27` ]]
<form action="/[[~[[*id]]]]" method="post">
<p>First name:<br />
<input name="firstname" type="text" value="[[+fi.firstname]]" /></p>
<p>Email:<br />
<input name="email" type="text" value="[[+fi.email]]" [[!+fi.error.email:notempty=`class="error"`]] /></p>
<input type="hidden" name="groups[]" value="1" /><!-- First group to add subscriber to. Ignored if not public! -->
<input type="submit" value="Subscribe" />
</form>
The first pb I have is that the nothing gets in the database ... Second issue is that the redirect does not work and redirects to an unknown page ..
Any ideas ?
Thank you