我有TYPO3 4.6,在tempvoila模板我有Typo腳本對象路徑lib.header
,我想 到插件的輸出重定向到lib.header
我有擴展廊和插件寫入並在ext_localconf.php配置等這樣的:TYPO3 4.6包括extbase插件與的TypoScript
Tx_Extbase_Utility_Extension::configurePlugin(
$_EXTKEY,
'RandomPhotoSlideShow',
array(
'Photo' => 'randomPhotoSlideShow',
),
// non-cacheable actions
array(
'Photo' => ''
)
);
在ext_tables.php這樣的:
Tx_Extbase_Utility_Extension::registerPlugin(
$_EXTKEY,
'RandomPhotoSlideShow',
'Gets random photos for slide show'
);
和模板的TypoScript我有這樣的:
plugin.tx_gallery.widgets {
papaWidget = USER
papaWidget {
userFunc = tx_extbase_core_bootstrap->run
pluginName = RandomPhotoSlideShow
extensionName = Gallery
controller = Photo
action = randomPhotoSlideShow
switchableControllerActions {
Photo {
1 = randomPhotoSlideShow
}
}
settings =< plugin.tx_gallery.settings
persistence =< plugin.tx_gallery.persistence
view =< plugin.tx_gallery.view
}
}
lib.header < plugin.tx_gallery.widgets.papaWidget
但是什麼都沒有顯示,有人請指教我在哪裏有錯誤,或者如果在TYPO3 4.6中包含的extbase 1.4有所改變?
非常感謝:),我有randomPhotoSlideShowAction那裏,但我不給那裏回報值:),現在一切都好,我沒有意識到必須返回呈現的視圖 – anjalis 2012-01-09 19:54:42