2014-01-23 27 views
0

在我extbase擴展時,包括通過Typo腳本,插件extbase有多個插件,在我的ext_tables.php我有:有多個插件

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

在我ext_localconf.php:

\ TYPO3 \ CMS \ Extbase \公用\ ExtensionUtility :: configurePlugin( 'TYPO3' $ _EXTKEY, 'plugin1',陣列( 「 Test'=>'list,show',

),
// non-cacheable actions array('Test'=>'',));

\ TYPO3 \ CMS \ Extbase \實用\ ExtensionUtility :: configurePlugin( 'TYPO3。' $ _EXTKEY, 'plugin2', 陣列( '測試'=> '菜單', ) // non-cacheable actions array( 'Test'=>'', ));

現在,我該如何通過輸入法來調用plugin2?

例如,如果我嘗試插入我的plugin2在lib.leftcontent,我想這

lib.leftcontent < plugin.tx_plugin2 

但沒有任何反應!

回答

2
lib.leftcontent = USER 
lib.leftcontent { 
     userFunc = tx_extbase_core_bootstrap->run 
     pluginName = Plugin2 
     extensionName = MyExtension 
     vendorName = Vendor 
    } 
+0

不,這不是問題,對不起,如果我不清楚,我的英語很差。我想,例如,在'lib.leftcontent'中插入plugin2,如果我嘗試'lib.leftcontent user

+0

更新了我的答案 – hildende

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 

     } 
    } 

}