Hallo,
ich habe die Erweiterungen abonnement und isotope_abonnement von github heruntergeladen und mit Contao 3.5.6 installiert. Allerdings wird beim Erstellen eines Produkts in isotope nicht die Auswahl eines Abos angezeigt. Liegt es jetzt wohl an der leider zu schnell installierten isotope-Version 2.4.0-beta1? Mir kommt die tl_iso_product.php aber auch unvollständig vor, wo werden die Felder denn der Palette hinzugefügt? Oder habe ich da was übersehen?!
PHP-Code:
<?php if (!defined('TL_ROOT')) die('You can not access this file directly!');
/**
* Contao Open Source CMS
*
* @copyright Michael Fleischmann 2014 (info@michael-fleischmann.com)
* @package isotope_abonnement
* @license LGPL
* @filesource
*/
array_insert($GLOBALS['TL_DCA']['tl_iso_product']['fields'],5,array
(
'aboId' => array
(
'label' => &$GLOBALS['TL_LANG']['tl_iso_product']['aboId'],
'inputType' => 'select',
'foreignKey' => 'tl_abo.title',
'eval' => array('mandatory'=>true,'tl_class'=>'w50', 'includeBlankOption' => true,),
'attributes' => array('legend'=>'abonnement'),
'sql' => "int(10) unsigned NOT NULL default '0'",
),
'expiretime' => array
(
'label' => &$GLOBALS['TL_LANG']['tl_iso_product']['expiretime'],
'exclude' => true,
'inputType' => 'timePeriod',
'options' => array('m','h','d','w','M'),
'reference' => &$GLOBALS['TL_LANG']['tl_iso_product']['intervalReference'],
'save_callback' => array(array('Abo','saveInterval')),
'load_callback' => array(array('Abo','loadInterval')),
'attributes' => array('legend'=>'abonnement'),
'eval' => array('mandatory'=>true, 'rgxp'=>'digit','helpwizard'=>true,),
'explanation' => 'expiretime',
'sql' => "int(10) unsigned NOT NULL default '0'",
),
)
);
Es wäre super, wenn mir hier jemand eine Hilfestellung geben könnte
Vielen Dank im Voraus und herzliche Grüße
Petra
Lesezeichen