Being my TYPO3 extension called "my_content", I wanna create a plugin that lists a bunch of personas.
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'
]
);
I receive the error below:
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.
Is all the naming of plugins, vendor, etc, right? Is there something I'm doing wrong? Using TYPO3 8.7.18.
plugin.tx_mycontent_persona
, it's possible that thelist_type
in the tablett_content
is thentx_mycontent_persona
instead ofmycontent_persona
. – David