[TYPO3-dev] New flexform featur
Steffen Kamper
steffen at sk-typo3.de
Sun Jul 13 23:14:25 CEST 2008
Dmitry Dulepov [typo3] schrieb:
> Hi!
>
> Martin Kutschker wrote:
>> Sections? Oops, where does that come from? All the little pi flexforms
>> have none, or do they? The "standard" ff and their API in pibase don't
>> talk about them.
>
> Sections is a standard feature of flexforms, they implement an array of
> elements inside the flexform. You can sections in plugin configuration,
> for example (similar to IRRE but without intermediate records).
>
>> Anyway Steffen ad I want that a fieldname is unique within the full
>> flexform so sections and containers shouldn't be addressed.
>
> Not possible I afraid. You can have fields with the same name inside
> different containers in the flexform:
>
> [CO] ROOT
> [SH] Sheet 1
> [EL] field_title =
> [SC] field_repeating
> [CO] field_sub
> [EL] field_title
> [CO] field_sub
> [EL] field_title
> [SH] Sheet 2
> [EL] field_title
> [SC] field_repeating
> [CO] field_sub
> [EL] field_title
> [CO] field_sub
> [EL] field_title
> [CO] field_sub
> [EL] field_title
>
> This is fully legal for flexforms.
>
>>> What about language? That should be also taken into account,s o the
>>> above may become:
>>> TCAdefaults.tt_content.pi_flexform.mySheet.mySection.myContainer.myAnotherContainer.myField.lDE
>>>
>>> = 1
>>
>> Nice to have, but you don't have this for normal fields, so no strict
>> requirement.
>
> You may want to define different values to field_title for different
> languages ;)
>
if it's a section it's internally known, so field can be adressed with
something like
...pi_flexform.field_title.1
It's only important to have this unique on first level, do you agree?
vg Steffen
More information about the TYPO3-dev
mailing list