Typo3 静态信息表摆脱了 onchange 事件
Typo3 Static Info Tables get rid of onchange event
我正在使用 tt_products 2.8.1 和 static_info_tables 6.3.6 以及 Typo3 6.2.17。
在我的结帐页面上,我有一个国家/地区下拉列表,如下所示:
<select size="1" id="field_personinfo_country_code" name="recs[personinfo][country_code]" onchange="this.form.submit();">
我需要摆脱 onchange 事件。
onchange="this.form.submit();"
plugin.tx_staticinfotables_pi1.onChangeAttribute = ''
在我的模板常量中应该这样做。不幸的是,这并没有改变任何东西。对如何去除这个的任何想法都有帮助。
谢谢!
tt_products2.8.1 中缺少此功能。
您必须更改文件 view/class.tx_ttproducts_info_view.php:
中的第 499 行
$markerArray['###PERSON_COUNTRY_CODE###'] =
$staticInfo->buildStaticInfoSelector(
'COUNTRIES',
'recs[personinfo][country_code]',
'',
$countryCodeArray['billing'],
'',
'',
'field_personinfo_country_code'
);
参数 6 是 onChangeCountryAttribute。这是 tt_products 2.12.0 中的设置值:默认为 "this.form.submit();"。
作为替代方案,您也可以将对象 $staticInfo 设置为您自己的对象。扩展 div2007 有一个方法:
$staticInfo = \JambageCom\Div2007\Utility\StaticInfoTablesUtility::getStaticInfo();
我正在使用 tt_products 2.8.1 和 static_info_tables 6.3.6 以及 Typo3 6.2.17。
在我的结帐页面上,我有一个国家/地区下拉列表,如下所示:
<select size="1" id="field_personinfo_country_code" name="recs[personinfo][country_code]" onchange="this.form.submit();">
我需要摆脱 onchange 事件。
onchange="this.form.submit();"
plugin.tx_staticinfotables_pi1.onChangeAttribute = ''
在我的模板常量中应该这样做。不幸的是,这并没有改变任何东西。对如何去除这个的任何想法都有帮助。
谢谢!
tt_products2.8.1 中缺少此功能。 您必须更改文件 view/class.tx_ttproducts_info_view.php:
中的第 499 行$markerArray['###PERSON_COUNTRY_CODE###'] =
$staticInfo->buildStaticInfoSelector(
'COUNTRIES',
'recs[personinfo][country_code]',
'',
$countryCodeArray['billing'],
'',
'',
'field_personinfo_country_code'
);
参数 6 是 onChangeCountryAttribute。这是 tt_products 2.12.0 中的设置值:默认为 "this.form.submit();"。
作为替代方案,您也可以将对象 $staticInfo 设置为您自己的对象。扩展 div2007 有一个方法:
$staticInfo = \JambageCom\Div2007\Utility\StaticInfoTablesUtility::getStaticInfo();