Okay, die oder zumindest eine Lösung gefunden.
Funktion in der Klasse AttributeOption (isotope/library/Isotope/Model) überschreiben mit:
PHP-Code:
public function getAsArray(IsotopeProduct $objProduct = null, $blnPriceInLabel = true)
{
return array(
'value' => $this->id,
'page_producer' => $this->page_producer,
'label' => ($blnPriceInLabel ? $this->getLabel($objProduct) : $this->label),
'group' => ($this->type == 'group' ? '1' : ''),
'default' => ($this->isDefault ? '1' : ''),
'model' => $this
);
}
(Muss ich noch mit eigenem Modul überschreiben).
Danach in den Templates wie folgt auslesen:
iso_list_variants
PHP-Code:
$objAttributeProducer = $GLOBALS['TL_DCA']['tl_iso_product']['attributes']['producer'];
$producer_label = $objAttributeProducer->getOptionsForProductFilter(array($item['product']->producer));
echo $producer_label['label'];
iso_collection_default
PHP-Code:
$objAttributeProducer = $GLOBALS['TL_DCA']['tl_iso_product']['attributes']['producer'];
$producer_label = $objAttributeProducer->getOptionsForProductFilter(array($item['product']->producer));
echo $producer_label[0]['label'];
Ist ein Lösungsansatz. Vielleicht haben aber die Isotope-Kenner noch einen viel eleganteren...
Lesezeichen