[TYPO3-dev] Conditions, when XCLASS has been ignored

Tapio Markula tapio.markula at xetpoint.fi
Fri Aug 24 22:48:09 CEST 2007


Popy
 > 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 problem with one XCLASS solved - but I got 
another! If I put th_specialelements either before or after always 
XCLASS problem.


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 class file cause then 
problem,
because if might be before any XCLASS any XCLASS for certain file would 
then be ignored.


Maybe I must take that off priority setting - but that doesn't help always.

'loadOrder' => 'tm_contentaccess,th_specialelements',

doesn't help - seems to have no effect.

Seems that there is always danger that plugins have been installed in 
wrong order and XCLASSes cause always some conflicts with some plugins.




More information about the TYPO3-dev mailing list