Hey all,
I need some help. I'm trying to make a mailer page where I want to allow
users to select the recipient. However, I really don't want to expose
the recipient's address. I was planning on using the following form:
<r:mailer:form name="contact">
<div class="field">
<label for="destination">Destination</label>
<div class="input"><r:select name="destination">
<r:option value="0">First</r:option>
<r:option value="1">Second</r:option>
</r:select></div>
</div>
... Other stuff ...
</r:mailer:form>
The code suggests that the mailer part is rendered before it is parsed
as YAML. So I set my mailer to:
subject: "Sent from your mailer form"
from_field: email
recipients:
<r:mailer:if_value name="recipient" equals="0"> -
[email protected]</r:mailer:if_value>
<r:mailer:if_value name="recipient" equals="1"> -
[email protected]</r:mailer:if_value>
But when I run it I get the following error:
syntax error on line 4, col 53: `'
I'd rather not have to customize the extension if I don't have to.
--
Adam van den Hoven
Hybrid Web Developer
Little Fyr Media
p: 604.618.0845
e: [email protected]
w: http://www.littlefyr.com
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant