[TYPO3-v4] Virtual TCA fields
JoH asenau
info at cybercraft.de
Tue Mar 30 14:17:35 CEST 2010
>> What would it take in your opinion to add "virtual" fields to the
>> TCA. I mean fields that would be rendered in TCEforms, based on
>> their TCA configuration, but that would not have a database
>> counterpart.
>
> We occasionally need this for things like a checkbox that says:
> "Search for news-tags in news-bodytext and write to mm table when
> record is saved". This is usually done only once for a record. A
> processDatamap
> hook then does the magic and unsets the checkbox field to 0 on save.
That's exactly how the tagpack adds the "tag" field to records of tables
listed as "taggable" in the TSconfig section. So it seems that handling
"virtual fields" is already possible. The only thing which doesn't exist yet
but might be useful, would be a switch to mark the fields as "virtual" so
that you don't have to unset the dataArray before saving the actual record.
Just my 2 cents
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-project-v4
mailing list