无法确定扩展的默认控制器
Default controller for extension cannot be determined
作为我的 TYPO3 扩展名为 "my_content",我想创建一个列出一堆角色的插件。
web/typo3conf/ext/my_content/Configuration/TSconfig/ContentElements/persona.tsconfig:
mod.wizards.newContentElement.wizardItems.plugins {
elements {
persona {
iconIdentifier = tx-mask-persona
title = LLL:EXT:my_content/Resources/Private/Language/locallang_db.xlf:tx_mycontent_domain_model_persona
description = LLL:EXT:my_content/Resources/Private/Language/locallang_db.xlf:tx_mycontent_domain_model_persona.description
tt_content_defValues {
CType = list
list_type = mycontent_persona
}
}
}
show := addToList(persona)
}
web/typo3conf/ext/my_content/Configuration/TCA/Overrides/tt_content.php:
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
'Vendor.my_content',
'Persona',
'Personas'
);
web/typo3conf/ext/my_content/ext_localconf.php:
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Vendor.my_content',
'Persona',
[
'Persona' => 'list'
],
// non-cacheable actions
[
'Persona' => 'list'
]
);
我收到以下错误:
Oops, an error occurred!
The default controller for extension "MyContent" and plugin "Persona" can not be determined. Please check for
TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin() in your ext_localconf.php.
plugins、vendor等的命名都是对的吗?
我做错了什么吗?
使用 TYPO3 8.7.18.
我的 TypoScript 看起来不错:
tt_content.list.20 {
mycontent_persona = USER
userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
extensionName = MyContent
pluginName = Persona
vendorName = Vendor
}
我的 list_type 插件是 "mycontent_persona"。
我真的不知道这个插件有什么问题。一切似乎都很好。
缓存也被清除。
您的扩展名需要使用 registerPlugin()
和 configurePlugin()
中的驼峰式,所以不要使用 my_content
,在本例中是 MyContent
。
作为我的 TYPO3 扩展名为 "my_content",我想创建一个列出一堆角色的插件。
web/typo3conf/ext/my_content/Configuration/TSconfig/ContentElements/persona.tsconfig:
mod.wizards.newContentElement.wizardItems.plugins {
elements {
persona {
iconIdentifier = tx-mask-persona
title = LLL:EXT:my_content/Resources/Private/Language/locallang_db.xlf:tx_mycontent_domain_model_persona
description = LLL:EXT:my_content/Resources/Private/Language/locallang_db.xlf:tx_mycontent_domain_model_persona.description
tt_content_defValues {
CType = list
list_type = mycontent_persona
}
}
}
show := addToList(persona)
}
web/typo3conf/ext/my_content/Configuration/TCA/Overrides/tt_content.php:
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
'Vendor.my_content',
'Persona',
'Personas'
);
web/typo3conf/ext/my_content/ext_localconf.php:
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Vendor.my_content',
'Persona',
[
'Persona' => 'list'
],
// non-cacheable actions
[
'Persona' => 'list'
]
);
我收到以下错误:
Oops, an error occurred!
The default controller for extension "MyContent" and plugin "Persona" can not be determined. Please check for
TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin() in your ext_localconf.php.
plugins、vendor等的命名都是对的吗? 我做错了什么吗? 使用 TYPO3 8.7.18.
我的 TypoScript 看起来不错:
tt_content.list.20 {
mycontent_persona = USER
userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
extensionName = MyContent
pluginName = Persona
vendorName = Vendor
}
我的 list_type 插件是 "mycontent_persona"。
我真的不知道这个插件有什么问题。一切似乎都很好。 缓存也被清除。
您的扩展名需要使用 registerPlugin()
和 configurePlugin()
中的驼峰式,所以不要使用 my_content
,在本例中是 MyContent
。