[TYPO3-dev] XCLASS extension overriding core functionality?
Steffen Kamper
steffen at dislabs.de
Mon May 14 13:30:53 CEST 2007
"Hartmut Plehn" <plehn at rz.uni-wuerzburg.de> schrieb im Newsbeitrag
news:mailman.1.1179141987.4611.typo3-dev at lists.netfielders.de...
> Hi,
>
> I recently tried to define some TCA fields readonly and noticed that
> readOnly=1 in the config section made no difference at all.
>
> I found that the corresponding code (function getSingleField_typeInput in
> class.t3lib_tceforms.php) is not executed at all because it is overridden
> per XCLASS extension in file class.ux_t3lib_tceforms.php of date2cal!?
>
> What can be done about this except not using date2cal or hoping that all
> core changes are being cloned in all extensions using XCLASSes to extend
> core functionality? In the case of date2cal it should probably ignore
> non-date fields?
>
> Any hints?
> Hartmut
> --
> Hartmut Plehn, Universitaet Wuerzburg
Hi,
you see one of the bad things of xclassing. If there is no hook, xclassing
is the only way, but for this whole class has to be imported, so any updates
has to be implemented manually.
give the author of date2cal a note about that and ask for a hook solution
instead.
vg Steffen
More information about the TYPO3-dev
mailing list