[TYPO3-dev] Conditions, when XCLASS has been ignored
Tapio Markula
tapio.markula at xetpoint.fi
Fri Aug 24 22:35:05 CEST 2007
Popy kirjoitti:
> The XCLASS declaration has to be done BEFORE the class is included.
>
> Where do you declare your XCLASS ?
in ext_localconf.php of cource - doesn't work elsewhere at all.
the another plugin uses
require_once
(t3lib_extMgm::extPath('cms').'tslib/'."class.tslib_content.php");
in a file, which has been declared in ext_localconf.php
# Templavoila hook
require_once(t3lib_extMgm::extPath($_EXTKEY).'class.tx_tv_rendering.php');
the another plugin was *before* my plugin in the ext list.
I put that manually after and no problems.
because of some config options I had set
I had set 'priority' => 'bottom',
If some other plugin has XCLASS for the same file, my plugin gets
precende - but direct require_once for the same file cause then problem,
because if it is before any XCLASS any XCLASS would then be ignored.
but that cause problems, if some class has been included before my
XCLASS has been called. Maybe I must take that off priority setting
'loadOrder' => 'tm_contentaccess,th_specialelements',
doesn't help
Seems that there is always danger that plugins have been installed in
wrong order.
More information about the TYPO3-dev
mailing list