[TYPO3-dev] Dynamic type field default value on record creation based on parent record type

Thomas "Thasmo" Deinhamer thasmo at gmail.com
Mon Oct 4 21:37:28 CEST 2010


Thomas "Thasmo" Deinhamer wrote:
> The problem now is, that TYPO3 does not(!) take the first value of this
> item array as default value. If I do not set the config option
> 'default', it seems that the type is just an empty string. (Or Zero?)

Does anybody have an idea? How could I preset the type field of an 
inline record, while not showing the type field as "public"?

The scenario is the following:

After creating a record "product" it is possible to change it's type. (A 
product is of a certain type.) Now it's possible to add articles to the 
product, which are just inline records. Those also have a type field 
which should always be the same as the type field of the parent product. 
Is there any solution for this?

Thanks a lot,
Thomas




More information about the TYPO3-dev mailing list