[TYPO3] flexform wizard (edit, add) problem ...
Kay Strobach
typo3 at kay-strobach.de
Tue Sep 9 11:14:38 CEST 2008
hello list,
i created an extension with an flexform, and have a problem with the add
wizard.
In some hours of searching i found out, that flexforms use nearly the
same configuration options like other fields via tca (no irre, as i
understand)
So i created a flexform with a field to select a record from the current
page. To increase the usability I added a wizard, to create a new record.
The created record is not selected in the flexform, after saving and
closing the created record (Point 3 in the list below).
I also tried to set <setValue>set</setValue>, but this doesn't work as well.
like described on
http://typo3.org/documentation/document-library/core-documentation/doc_core_api/4.1.0/view/4/3/#id4284746
Do you have any suggestions how to make the following scenario possible:
1. create content record
2. hit the plus(add.gif) in the flexform, create new record of type
tx_pbsurvey_item
3. After saving and closing the record from point 2 select the
created record in the list ...
Many Thanks
Regards Kay
Versioninfo:
Typo3 4.2.1
PHP 5+
Part of the flexform
...
<selectedquestion>
<TCEforms>
<label>selected Question</label>
<config>
<type>select</type>
<size>1</size>
<minitems>0</minitems>
<maxitems>1</maxitems>
<foreign_table>tx_pbsurvey_item</foreign_table>
<foreign_table_where>
AND tx_pbsurvey_item.pid = ###CURRENT_PID### ORDER BY
tx_pbsurvey_item.sorting
</foreign_table_where>
<selicon_cols>6</selicon_cols>
<items>
<numIndex index="0">
<numIndex index="0">«»«» no Question selected
«»«»</numIndex>
<numIndex index="1">0</numIndex>
</numIndex>
</items>
<wizards>
<add>
<type>script</type>
<title>Create new Record</title>
<icon>add.gif</icon>
<params>
<table>tx_pbsurvey_item</table>
<pid>###CURRENT_PID###</pid>
<setValue>prepend</setValue>
</params>
<script>wizard_add.php</script>
</add>
<edit>
...
</edit>
<list>
...
</list>
</wizards>
</config>
</TCEforms>
</selectedquestion>
...
More information about the TYPO3-english
mailing list