[TYPO3-dev] Fields in the TCA that does not exist in the DB
Mads Brunn
mads at typoconsult.dk
Wed Oct 17 16:09:55 CEST 2007
Hi Steffen
Steffen Kamper wrote:
> I think atm that's not possible. But it could be done by giving a special
> parameter like "passtrhough" to prevent the sql integration.
> Did you localized where it happens?
I think you're right...
It happens in t3lib_tcemain->recordInfo
(when it's called by t3lib_tcemain->checkValue)
It does a simple check to get the current value of the field.
So far I'm handling it by using a star ("*") as fieldname. This is ok as
long as nobody else get's the same idea. But it would be better if the
tcemain could process non-existant fields, especially for fields of type
group or select that uses MM-relations. This way I could create a field
dynamically like this:
$TCA[$tablename]['columns'][t3lib_div::shortMD5('tx_categories'.$tablename)]
= array(
...
);
(to avoid conflicts with other extensions introducing "dynamic" fields)
Do you know who to call? :-)
./mads
More information about the TYPO3-dev
mailing list