PEBCAK as usual. Sorry for the waste of bandwidth.
By debugging this stupid problem however, I did find one bug (which Zdenek
fixed already in the meantime) and one improvement opportunity (for which I
will put a patch in the JIRA.
-will
On 18.12.2009, at 16:51, Will Scheidegger wrote:
>
> Thanks for the feedback, Zdenek. Yes, it's a small thing to fix and really is
> not a problem.
>
> For those who are trying to figure out what I meant with my original post:
> Strange enough the output of checkbox values works in one of my forms but not
> in the other. So I'm currently trying to find the difference between the
> two...
>
> -will
>
> On 18.12.2009, at 16:40, Zdenek Skodik wrote:
>
>>
>> Dear Will,
>>
>> as usually you're right;) With
>>
>> <input type="${content.type}" id="${content.controlName}_${label_index}"
>> name="${content.controlName}" value="${data[1]!data[0]!?html}"
>> ${checked} />
>> <label for="${content.controlName}_${label_index}">${data[0]}</label>
>>
>> it works for me..fixed at m-m-form-1.1.
>>
>> --
>> Best regards,
>>
>> Zdenek Skodik
>> Magnolia International Ltd.
>>
>> Magnolia® - Simple Open-Source Content Management
>>
>>
>> On Fri, 2009-12-18 at 16:13 +0100, Will Scheidegger wrote:
>>> Oh... and while we're at it, doesn't the formSelection.ftl produce
>>> non-valid HTML for checkboxes?
>>>
>>> <label id="${content.controlName}_label"
>>> for="${content.controlName}_${label_index}">
>>> <input id="${content.controlName}_${label_index}"
>>> name="${content.controlName}" type="${content.type}"
>>> value="${data[1]!data[0]!?html}" ${checked} />
>>> ${data[0]}
>>> </label>
>>>
>>> If you have multiple select boxes, you'll end up with multiple <label />
>>> elements with the same ID if I'm not mistaken.
>>>
>>> -will
>>>
>>> On 18.12.2009, at 14:47, Will Scheidegger wrote:
>>>
>>>>
>>>> Dear Magnolians
>>>>
>>>> Probably a very simple question for those familiar with the subject: How
>>>> can I get the form values of a checkbox paragraph. E.g. when I add a
>>>> checkbox paragraph (i.e. a "Selection" paragraph), name the field
>>>> "interests" and add three possible values like this
>>>>
>>>> Skiing:ski
>>>> Surfing:surf
>>>> Soccer:soccer
>>>>
>>>> How can I get the selected values printed in my mail form? I tried
>>>>
>>>> ${interests}
>>>>
>>>> as with a regular edit field, but honestly did not really expect this to
>>>> work - and it did not. So now I simply tried to check if there was
>>>> anything like that in the model:
>>>>
>>>> <#if interests??>
>>>> There is a "interests" value
>>>> <#else>
>>>> There is NO "interests" value
>>>> </#if>
>>>>
>>>> And I do get NO as an answer. What is the right way to do this?
>>>>
>>>> Thanks!
>>>> -will
>>>>
>>>> ----------------------------------------------------------------
>>>> 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]>
> ----------------------------------------------------------------
>
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------