Kein Problem.
In der Datei "isotope/dca/tl_iso_related_product.php" wird aus:
PHP-Code:
'products' => array
(
'label' => &$GLOBALS['TL_LANG']['tl_iso_related_product']['products'],
'exclude' => true,
'inputType' => 'text',
'eval' => array('mandatory'=>true, 'tl_class'=>'long'),
'sql' => "blob NULL",
),
einfach folgendes (= TableLookupWizard):
PHP-Code:
'products' => array
(
'label' => &$GLOBALS['TL_LANG']['tl_iso_related_product']['products'],
'exclude' => true,
'inputType' => 'tableLookup',
'eval' => array
(
'mandatory' => true,
'doNotSaveEmpty' => true,
'tl_class' => 'clr',
'foreignTable' => 'tl_iso_product',
'fieldType' => 'checkbox',
'listFields' => array(\Isotope\Model\ProductType::getTable().'.name', 'name', 'sku'),
'joins' => array
(
\Isotope\Model\ProductType::getTable() => array
(
'type' => 'LEFT JOIN',
'jkey' => 'id',
'fkey' => 'type',
),
),
'searchFields' => array('name', 'alias', 'sku', 'description'),
'customLabels' => array
(
$GLOBALS['TL_DCA'][\Isotope\Model\Product::getTable()]['fields']['type']['label'][0],
$GLOBALS['TL_DCA'][\Isotope\Model\Product::getTable()]['fields']['name']['label'][0],
$GLOBALS['TL_DCA'][\Isotope\Model\Product::getTable()]['fields']['sku']['label'][0],
),
'sqlWhere' => 'pid=0',
'searchLabel' => 'Search products',
),
'sql' => "blob NULL",
),
Zusätzlich dazu wird in der Datei "isotope/library/Isotope/Backend/RelatedProduct/Callback.php" (Zeile 32) aus:
PHP-Code:
$arrProducts = trimsplit(',', $row['products']);
wird dann einfach:
PHP-Code:
$arrProducts = unserialize($row['products']);
Und in der Moduldatei "isotope/library/Isotope/Module/RelatedProducts.php" (Zeile 87) aus:
PHP-Code:
$ids = trimsplit(',', $category->products);
einfach folgendes machen:
PHP-Code:
$ids = unserialize($category->products);
Hoffe das hilft weiter.
Lesezeichen