Re: [Radiant] How can I use Mailer form on every page?

2009-05-27 Thread Mohit Sindhwani
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

Re: [Radiant] How can I use Mailer form on every page?

2009-05-27 Thread N. Turnage
Mohit Sindhwani wrote: 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

Re: [Radiant] How can I use Mailer form on every page?

2009-05-27 Thread Mohit Sindhwani
N. Turnage wrote: I just looked at its readme and it says: You configure the recipients and other Mailer settings in a mailer part The form and it's config are set up properly. On the /contact page everything works perfectly. But on other pages it doesn't. I'm guessing that's because you

Re: [Radiant] How can I use Mailer form on every page?

2009-05-27 Thread Mohit Sindhwani
Nate, I looked at the code of the mailer extension and found this: def config @config ||= begin page = self until page.part(:mailer) or (not page.parent) page = page.parent end string = page.render_part(:mailer) (string.empty? ? {} : YAML::load(string)) end

Re: [Radiant] How can I use Mailer form on every page?

2009-05-27 Thread Cristi Duma
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

Re: [Radiant] How can I use Mailer form on every page?

2009-05-27 Thread N. Turnage
Cristi Duma wrote: 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

Re: [Radiant] How can I use Mailer form on every page?

2009-05-27 Thread Cristi Duma
On 5/27/09 8:44 PM, N. Turnage wrote: Cristi Duma wrote: 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