[TYPO3-english] TCA: default-value is always used if the array isempty

JoH asenau info at cybercraft.de
Tue Sep 21 13:18:36 CEST 2010


> The default value for the the field tx_myext_author should be the
> current user id. As you can see, the minitems-property is set to 0,
> so an empty entry should be accepted. Now, everytime when I open an
> existing record, with no item is selected, it automatically selects
> the default-value. But that should only happen, when I create a new
> record. Is there a way to solve that problem so that the
> default-value is only used, when a new record is created?

In TCA "default value" means "a value, that is set, when no other value is given".
So you can't select "nothing" and the minitems value is de facto overriden.

HTH

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
Xing: http://contact.cybercraft.de
Twitter: http://twitter.com/bunnyfield
TYPO3 cookbook (2nd edition): http://www.typo3experts.com


More information about the TYPO3-english mailing list