Verzeichnisse anlegen:
/system/modules/AvisotaCustomFields
/system/modules/AvisotaCustomFields/config
/system/modules/AvisotaCustomFields/dca
/system/modules/AvisotaCustomFields/languages/de
Dateien anlegen:
/system/modules/AvisotaCustomFields/config/database.sql
Code:
-- **********************************************************
-- * *
-- * IMPORTANT NOTE *
-- * *
-- * Do not import this file manually but use the TYPOlight *
-- * install tool to create and maintain database tables! *
-- * *
-- **********************************************************
--
-- Table `tl_avisota_recipient`
--
CREATE TABLE `tl_avisota_recipient` (
`acceptAGB` char(1) NOT NULL default '',
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/system/modules/AvisotaCustomFields/dca/tl_avisota_recipient.php
PHP-Code:
<?php if (!defined('TL_ROOT')) die('You can not access this file directly!');
$GLOBALS['TL_DCA']['tl_avisota_recipient']['fields']['acceptAGB'] = array
(
'label' => &$GLOBALS['TL_LANG']['tl_avisota_recipient']['acceptAGB'],
'exclude' => true,
'filter' => true,
'inputType' => 'checkbox',
'eval' => array('mandatory'=>true, 'tl_class'=>'w50 m12', 'importable'=>true, 'exportable'=>true)
);
/system/modules/AvisotaCustomFields/languages/de/tl_avisota_recipient.php
PHP-Code:
<?php if (!defined('TL_ROOT')) die('You can not access this file directly!');
$GLOBALS['TL_LANG']['tl_avisota_recipient']['acceptAGB'] = array('Ich akzeptiere die <a href="...link...">AGBs</a>.', 'Hiermit akzeptieren Sie unsere AGBs.');
Eventuell ist dies für weitere Sprachen nachzuholen.
Wenn ich nichts vergessen habe, sollte nach einem DB Update das Feld in dem "Abonnement Verwalten" Modul auswählbar sein.
MfG Tristan
Lesezeichen