Hey Andrew,
thanks for your reply. I will check it now. My idea is just to learn how to
play with radiant. I'm not trying to reinvent the wheel :-)

Best regards,

VP

On Tue, Jul 7, 2009 at 12:23 AM, Andrew Neil
<[email protected]>wrote:

> Hi,
>
> You might like to have a look at these extensions:
>
>        http://github.com/pilu/radiant-newsletter/tree/master
>
> http://github.com/nelstrom/radiant-subscriber-lists-extension/tree/master
>
> I wrote the subscriber_lists extension to gather email addresses through a
> form on the website. It is basically a simplified version of the newsletter
> extension (which is much more ambitious). The newsletter extension also
> allows you to send emails to all of the email addresses that you gather
> through the form. At the time I tried it out, I was unable to make rails
> send email using a googlemail address, but I think that might have been
> fixed since.
>
> Both of these extensions are quite out of date, so they might need a bit of
> work to get them working with the current version of Radiant. I think they
> worked fine on Radiant 0.6.9.
>
> I don't intend to update the subscriber list extension. If anyone would
> like to take over it's maintenance, that's grand. For myself, I would always
> choose to let a 3rd party deal with subscriber lists in the future. The
> likes of MailBuild (http://www.mailbuild.com/) offers code snippets that
> you can include in your templates. I recommend that you try them out.
>
> Cheers,
> Drew
>
>
>
> On 4 Jul 2009, at 09:54, Victor Pereira wrote:
>
>  Hi, i'm trying to write a simple extension to store emails, that users can
>> entry thru the newsletter form in one of the default templates.
>> So i changed the snippet newsletter to something like that:
>> <div class="box"> <h3>Our Newsletter</h3> <form action="/newsletter/send"
>> method="get"> <input class="email" value="Enter your email address..."
>> type="text" id="email" name="name" /> <input class="subscribe"
>> type="submit"
>> value="Subscribe" /> </form> </div>
>>
>> my route at my extension.rb is something like:
>>
>> define_routes do |map|
>>   map.connect '/newsletter/send',
>> :controller=>'newsletter',:action=>'send'
>> end
>>
>> As a test i tried to call my controller/action like that:
>>
>> http://localhost:3000/newsletter/[email protected]
>>
>> It didnt work, my controller is like that:
>>
>> class NewsletterController < ApplicationController no_login_required
>> #skip_before_filter :verify_authenticity_token def send #...@news =
>> Newsletter.find_or_create_by_email(params[:email]) @news =
>> Newsletter.new(params[:email]) @news.save flash[:notice] = "Your e-mail
>> was
>> added to our newsletter" redirect_back_or_default("/") end end
>>
>> Questions:
>> 1) I cannot use a normal form syntax in my html?
>> 2) I cannot access the params at my controller?
>>
>> Thanks!
>> _______________________________________________
>> Radiant mailing list
>> Post:   [email protected]
>> Search: http://radiantcms.org/mailing-list/search/
>> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>>
>
> _______________________________________________
> Radiant mailing list
> Post:   [email protected]
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>
_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to