[TYPO3-mvc] Various object types depending on the "type" field

Peter Niederlag typo3-list at niekom.de
Tue Feb 22 16:03:19 CET 2011


Hello,

Am 22.02.2011 15:28, schrieb Dmitry Dulepov:
> Hi!
[...]
> Taking, for example, tt_content table: if I use CType as a type field,
> how do I configure to use Tx_Ext_Domain_Model_Text and
> Tx_Ext_Domain_Model_Html for CType=text and CType=html respectively?

come on, I know you can do it. ;)

https://gist.github.com/812499

just replace recordtype 'foo_ce1' by 'text' and 'foo_ce2' by 'html'.
Adopt the Classes as you like...

[...]

hth,
Peter
-- 
Peter Niederlag
http://www.niekom.de * TYPO3 & EDV Dienstleistungen *


More information about the TYPO3-project-typo3v4mvc mailing list