0

在我的 extbase 扩展中有多个插件,在我的 ext_tables.php 我有:

\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin($_EXTKEY, 'plugin1', 'Services du CSPQ' );

\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin( $_EXTKEY, 'plugin2', 'plugin2' );

在我的 ext_localconf.php 中:

\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin( 'TYPO3.' . $_EXTKEY, 'plugin1', array( 'Test' => 'list, show',

),
// 不可缓存的动作 array('Test' => '',) );

\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin( 'TYPO3.' . $_EXTKEY, 'plugin2', array( 'Test' => 'menu', ), // 不可缓存的操作 array( 'Test' => '', ) );

现在,我如何通过打字稿调用 plugin2 ?

例如,如果我尝试在 lib.leftcontent 中插入我的 plugin2,我尝试了这个

 lib.leftcontent < plugin.tx_plugin2

但什么也没发生!

4

3 回答 3

2
 lib.leftcontent = USER
 lib.leftcontent {
        userFunc = tx_extbase_core_bootstrap->run
        pluginName = Plugin2
        extensionName = MyExtension
        vendorName = Vendor
    }
于 2014-01-24T07:40:30.243 回答
1

You first need to bootstrap your plugin as described in various article here on Stackoverflow, e.g. How do I bootstrap a plugin on TYPO3 CMS 6.0 with extbase?. Start with

lib.leftcontent = USER
lib.leftcontent {
  userFunc      = TYPO3\CMS\Extbase\Core\Bootstrap->run
  ...

and add all the other stuff as described in the linked article.

于 2014-01-24T14:40:18.027 回答
1

不要忘记行动。喜欢 tx.fe_manager

lib.userview = USER
lib.userview {
  userFunc = tx_extbase_core_bootstrap->run
  extensionName = Femanager

  pluginName =  Pi1
  vendorName = In2

  #controller = Edit 
  #action = edit

  switchableControllerActions {
        Edit {
          1 = edit
          2 = update
          3 = delete
          4 = confirmUpdateRequest

        }
  }

}
于 2015-04-24T11:16:30.117 回答