[TYPO3] ajaxtabs: dynamic flexform xml, BE cache problem
Thomas Hempel
thomas at work.de
Fri Jun 30 11:26:04 CEST 2006
Hi Vikram,
> array (
> 'method' => 'add',
> 'path' => 'sheets/advanced/ROOT/el',
> 'type' => 'fields',
> 'source' => 'field',
> 'source_config' => array (
> 'table' => 'tt_content',
> 'db_field' => 'pi_flexform'
> 'path' => 'sheets/advanced/ROOT/el',
> 'xml_field' => 'totalTabs',
> ),
>
> 'field_config' => array(
> 'path' => 'sheets/advanced/ROOT/el',
> 'name' => 'tab_###FINDEX###_title', // new field name
> 'label' => 'Tab[###FINDEX###] Title',
> 'config'=> array (
> 'type' => 'input'
> ),
> ),
> ),
Almost, because some of the things you try to use are not implemented
until the new version 1.2.0 which I had uploaded to the TER just a few
minutes ago. ;-)
Here is a working config:
array (
'method' => 'add',
'path' => 'sheets/advanced/ROOT/el',
'type' => 'fields',
'source' => 'field',
'source_config' => array (
'table' => 'tt_content',
'db_field' => 'pi_flexform',
'path' => 'advanced/lDEF',
'xml_field' => 'totalTabs',
),
'field_config' => array(
array (
'name' => 'tab_###FINDEX###_title',
'label' => 'Tab[###FINDEX###] Title',
'config'=> array (
'type' => 'input'
),
),
array (
'name' => 'tab_###FINDEX###_title_b',
'label' => 'Tab[###FINDEX###] Title B',
'config'=> array (
'type' => 'input'
),
)
),
),
I also have updated the manual and added the information about the markers.
> 1) Is it essential that the tab where we add new fields needs to be
> empty or may have some dummy tag which will get truncated ?
That doesn't matter because new elements will be added to the end of the
fieldlist.
>
> 2) could you explain a bit about ###FINDEX###, ###SINDEX###. Are they
> some auto incremented variables which could be used to form tag names?
See the updated manual in the sections field_config and sheet_config
> 3) Is there some kind of path validating debug option.
Currently not but I thought about it some time. I'm not sure how this
can be achieved in a nice and usable way.
I hope that helps!?
Greets,
Thomas
--
typo3-unleashed.net
More information about the TYPO3-english
mailing list