Hi Peter!

I had the same kind of questions, 
Because I have a page with several forms like "tell a friend", "newsletter
sign up", and "contact us", and I was thinking how to make it, because also
are forms with special layouts, so the <r:mailer:foo /> tags are not usefull
for me.

Which <r:mailer:form /> does is to make a form with attributes method=post
and action=name-of-mailer-page
And also add a hidden form field called mailer_name with
value="the-name-of-the-mailer", and then if you add, in example:
<r:mailer:text name="naam" />

You'll get something like <input name="mailer[naam]" type="text" />

So, you can hardcode the form following this rules, and then have more
flexibility.

Is a very basic workaround, but worked for me.

Regards,

Q.


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Peter Berkenbosch
Sent: Thursday, November 22, 2007 11:09 AM
To: [email protected]
Subject: Re: [Radiant] Howto use a template for the mailer extension

Found!

http://dev.radiantcms.org/radiant/wiki/HowToUseMailerExtension

P.

On Nov 22, 2007 2:54 PM, Peter Berkenbosch <[EMAIL PROTECTED]>
wrote:

> Hello List,
>
> In the README of the mailer extensions is mentioned that you can add a
> page part email and/or email_html to use as a mail template.
>
> I've looked it up in the mailer code:
>
> plain_body = part( :email ) ? render_part( :email ) : render_part(
:email_plain )
> html_body = render_part( :email_html ) || nil
>
> The mail form has something like:
> Naam:<br/>
> <r:mailer:text name="naam" /><br/>
> E-mail adres:<br />
> <r:mailer:text name="email" /> <br/>
>
> How can I use this in a template? (I feel like an idiot, but I don;t get
> it)
>
> Thanks.
>
> --
> met vriendelijke groet,
>
> Peter Berkenbosch




-- 
met vriendelijke groet,

Peter Berkenbosch
_______________________________________________
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