[TYPO3-shop] extended ListView
Tim Riemenschneider
lists-05 at tim-riemenschneider.de
Tue Aug 15 10:41:07 CEST 2006
I found out, that the line in ext_localconfig.php has to be different:
Seytzhan A. schrieb:
> Hi, Tomasz!
> 2. i add following to "ext_localconf.php" file of my extension
> *****************************************************************
> $TYPO3_CONF_VARS['EXTCONF'][TT_PRODUCTS_EXTkey]['extendingTCA'][] =
> $_EXTKEY;
> $TYPO3_CONF_VARS['EXTCONF'][TT_PRODUCTS_EXTkey]['getItemMarkerArray'][]
> =
> t3lib_extMgm::extPath($_EXTKEY).'class.user_seyitrealtyshop_regionhook.php';
Try:
TYPO3_CONF_VARS['EXTCONF'][TT_PRODUCTS_EXTkey]['PRODUCT'][] =
t3lib_extMgm::extPath($_EXTKEY).'class.user_seyitrealtyshop_regionhook.php:&user_seyitrealtyshop_regionhook';
(That is replace 'getItemMarkerArray' by 'PRODUCT', and add the
classname (not only the filename))
file tt_products/lib/class.tx_ttproducts_article_base.php, line 166ff:
// Call all getItemMarkerArray hooks at the end of this method
if (is_array
($GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][TT_PRODUCTS_EXTkey][$this->marker]))
{
foreach
($GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][TT_PRODUCTS_EXTkey][$this->marker]
as $classRef) {
$hookObj= &t3lib_div::getUserObj($classRef);
if (method_exists($hookObj, 'getItemMarkerArray')) {
$hookObj->getItemMarkerArray ($this, $markerArray, $item,
$catTitle, $imageNum, $imageRenderObj, $forminfoArray, $code, $id);
}
}
}
and $this->marker seems to be always 'PRODUCT'
cu
Tim
More information about the TYPO3-project-tt-products
mailing list