[TYPO3] TYPO3 Fatal Error: Extension key "tt_products" was NOT loaded! (t3lib_extMgm::extRelPath)
Franz Holzinger
franz at fholzinger.com
Wed Aug 23 09:58:59 CEST 2006
Hello Michael,
> I'm curious: What is the relation of "tt_products" with
> "mbi_products_categories"?
>
$EM_CONF[$_EXTKEY] = Array (
'title' => 'Shop Categories',
'description' => 'Enables hierarchical categories for products. Works
with every version of tt_products and table.',
'category' => 'misc',
'shy' => 0,
'dependencies' => 'tt_products',
It uses hooks to extend tt_products.
// Hook for extending tt_products TCA
$TYPO3_CONF_VARS['EXTCONF'][TT_PRODUCTS_EXTkey]['extendingTCA'][] =
MBI_PRODUCTS_CATEGORIES_EXTkey;
The TCA for the products categories will be changed with the categorie
tree.
And you have where clauses which directly access the tt_products tables.
if ($this->pid_list) {
$SPaddWhere = ' AND tt_products_cat.pid IN (' . $this->pid_list . ')';
}
Therefore this dependancy is needed to avaid SQL error messages.
And in the next version there will be a category mm table:
// Hook for extending the products list
require_once(PATH_BE_mbiproductscategories.'lib/class.tx_mbiproductscategories_category.php');
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][TT_PRODUCTS_EXTkey]['prodCategory'][]
= 'tx_mbiproductscategories_category';
- Franz
More information about the TYPO3-english
mailing list