简体   繁体   English

在typo3中加载/重新加载特定的插件选项卡添加插件页面?

[英]Load/Reload specific plugin tab in typo3 add plugin page?

I have configured my extension to add an icon to quick select the plugin as WizIcon under the insert new record in page, and it works: 我已经配置我的扩展程序添加一个图标,以便在页面中插入新记录下快速选择插件作为WizIcon,它可以工作: 我的插件WizIcon

The only problem, is that once clicked, my plugin is selected, but with the first tab enabled by default: 唯一的问题是,一旦点击,我的插件就会被选中,但默认情况下会启用第一个标签: 自动选择标签

I want it to autoselect the "Plugin" tab, as it have the options for the plugin, as it is a pain clicking that tab everytime. 我想让它自动选择“插件”选项卡,因为它有插件的选项,因为每次点击该选项卡都很痛苦。 Is there a simple way to do that? 有一个简单的方法吗?

UPDATE: This also applies in flexforms with reload which will reload if field have changed, but will reload the first tab, rather than current one. 更新:这也适用于具有重新加载的flexforms,如果字段已更改,将重新加载,但将重新加载第一个选项卡,而不是当前选项卡。

Any hint will be really apreciated. 任何提示都会非常苛刻。 (No google info, no typo3 manual info nothing about this) (没有谷歌信息,没有typo3手册信息没有关于此)

This behavior is hardcoded to the TYPO3 source. 此行为硬编码到TYPO3源。

If you really want to change this you can take a look at "t3lib/class.t3lib_tceforms.php". 如果你真的想改变这个,你可以看看“t3lib / class.t3lib_tceforms.php”。 There is a function getDynTabMenu() which returns a call to $GLOBALS['TBE_TEMPLATE']->getDynTabMenu(). 有一个函数getDynTabMenu() ,它返回对$ GLOBALS ['TBE_TEMPLATE'] - > getDynTabMenu()的调用。 The 7th parameter defines the default opened tab. 第7个参数定义默认打开的选项卡。 This is set to 1. You might change this to any number. 这设置为1.您可以将其更改为任何数字。 But be aware that this will change the default tab for any content element and it is really not recommended to patch the core locally. 但请注意,这将更改任何内容元素的默认选项卡,并且实际上不建议在本地修补核心。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM