Hello Patric,

I see, yes we were not quite in the same place there. As far as i know
there is no built-in support for what you need. The only thing that
comes into my mind is some kind of hack where you iterate through the
content like explained in my previous mail and then stuff all labels
into the parameter map with a special name e.g. "email_label", before
the email is generated. Then you could use them in your template.
Feels a bit dirty but would work.

Greetings,
Anton

On Mon, Mar 14, 2011 at 6:35 PM, patric dosch
<[email protected]> wrote:
> Hello Anton,
>
> Thanks for the answer! I'm not sure if we are in the same place.
>
> I want to prepare the email in the paragraph "E-Mail Settings" (Screenshot). 
> As far as I've seen, I have only access the form data (${subject}), ie. the 
> value, equal to the parameter-map in the ContactEmailProcessor.
>
> Greetings,
> Patric
>
>
> -----Ursprüngliche Nachricht-----
> Von: [email protected] 
> [mailto:[email protected]] Im Auftrag von Anton Matheis
> Gesendet: Montag, 14. März 2011 14:21
> An: Magnolia User-List
> Betreff: Re: [magnolia-user] Form Module: Read Label from Select, Checkboxes 
> or Radios in Email
>
>
> Hello Patric,
>
> you can see how Magnolia is doing it in
> DefaultFormDataBinder#getErrorMessage(String message, Content node) for 
> normal fields and in formSelection.ftl of the from module how the labels are 
> retrieved for check boxes etc.
> So for the selections you would have to read the labels definition and split 
> at newlines like in the template.
>
> Greetings,
> Anton
>
> On Mon, Mar 14, 2011 at 12:31 PM, patric dosch 
> <[email protected]> wrote:
>> Hello list,
>>
>> when sending an email using the form modules, I would like to read the
>> label of the selected entries to a select or group of checkboxes / radios.
>> Currently I just get the form-value. Is there a suggested way to get
>> the label?
>>
>> Greets, patric
>>
>> ________________________________
>> ----------------------------------------------------------------
>> For list details see
>> http://www.magnolia-cms.com/home/community/mailing-lists.html
>> To unsubscribe, E-mail to: <[email protected]>
>> ----------------------------------------------------------------
>>
>
>
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------
>
>
>
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------
>


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to