[html-formfu] Different attributes for the first record in a
repeatable block
Carl Franks
fireartist at gmail.com
Thu Mar 26 15:15:24 GMT 2009
2009/3/26 Ascii King <tech at swattermatter.com>:
> I believe the output of a Repeatable is wrapped in div tag. I use the
> following code to generate a div tag.
>
> - type: Repeatable
> nested_name: appointments
> counter_name: appointment_count
> attributes:
> class: ShawnTest
> id: appointment_count
> elements:
>
> This outputs:
> <div class="ShawnTest" id="appointment_count">
>
> This is wrapped around all of the elements in the Repeatable block.
That surrounds each individual repeat - but there's no tag containing
all the repeats - which is what you'd need for first-child to work.
Carl
More information about the HTML-FormFu
mailing list