Jac*_*cuz 4 typo3 typo3-tca typoscript
我需要从其他插件的主体调用typo3插件并将其结果传递给模板.这是伪代码,描述了我想要实现的目标:
$data['###SOME_VARIABLE###'] = $someOtherPlugin->main();
$this->cObj->substituteMarkerArray($someTemplate, $data);
Run Code Online (Sandbox Code Playgroud)
可能吗?
谢谢!
如果您使用整个pi构造,例如链接,标记功能等,它会起作用,并且TSFE数据可能被破坏.
德米特里说:http: //lists.typo3.org/pipermail/typo3-english/2008-August/052259.html
$cObjType = $GLOBALS['TSFE']->tmpl->setup['plugin.']['tx_rgsmoothgallery_pi1'];
$conf = $GLOBALS['TSFE']->tmpl->setup['plugin.']['tx_rgsmoothgallery_pi1.'];
$cObj = t3lib_div::makeInstance('tslib_cObj');
$cObj->start(array(), '_NO_TABLE');
$conf['val'] = 1;
$content = $cObj->cObjGetSingle($cObjType, $conf); //calling the main method
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2467 次 |
| 最近记录: |