I did this on a site some time ago. It was an older version of radiant and mailer extension but it should work for you.

I created a snippet which I used then on every page. The trick is to post the contact form to a page that has mailer part. Like this

<form class="mailer-form" method="post" action="/newsletter/">
<div>
<input type="hidden" value="newsletter" name="mailer_name"/>
</div>
<label for="email">Email:</label>
<input type="text" name="mailer[email]" class="required validate-email" id="email" />
<input type="submit" value="Trimitere"/>
</form>

The "newsletter" page has the mailer part and it works just fine.

Contact me if id doesn't work, we'll find a solution :)

Cristi

PS: or did it work allready? I'm too tired right now to read all the posts..

On 5/27/09 3:20 PM, N. Turnage wrote:
Hey guys,

I have built a contact form with Mailer and I would like to use it in my template so that it is at the bottom of every page. It is working on the contact page itself, but on any other page I get the "Mailer config is not valid" error. The ReadMe for Mailer says that you can use it in a snippet, but doesn't mention the syntax to do that. Right now I have this set up in a snippet that is at the bottom of my template:

<div id="contact">
<r:find url="/contact/">
<r:content />
</r:find>
</div>

The form is defined in the body of the /contact page (obviously). How can I use this in my template on pages other than /contact? Thanks.



~Nate
_______________________________________________
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

_______________________________________________
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to