当我在typo3 cms 9.5.4后端的菜单中选择Web/Functions时,会得到以下错误:
高级功能 没有注册模块。请联系您的系统管理员。
我是系统管理员。我找不到怎么注册模块。如何注册模块?
发布于 2019-02-18 07:39:50
据我所知,EXT:wizard_crpages和EXT:wizard_sortpages不再在TYPO3 9.x中维护。
EXT:func已转移到TYPO3扩展库,以保留注册您自己的向导的可能性。
更新:
现在可以通过页面树中的上下文菜单创建多个页面并对页面进行排序。只需左键或右键单击任何页面前面的图标,然后从上下文菜单中选择More options ...。
发布于 2019-02-18 07:57:30
正如Peter所写的,扩展func已经从核心中删除,实际上并不被标记为兼容9.5版本。而且应该避免更多的使用。
但以下两个文件将帮助您注册自己的模块:
ext/扩展名/ext_tables.php
// Module wizard
if (TYPO3_MODE === 'BE') {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction(
'web_func',
\Vendor\Extension\MyModuleFunction::class,
null,
'LLL:EXT:extension/Resources/Private/Language/locallang_module.xlf:mymodulefunction'
);
}ext/extension/Classes/MyModuleFunction.php
<?php
namespace Vendor\Extension;
class MyModuleFunction
{
/**
* Initialize the object
*
* @param \object $pObj A reference to the parent (calling) object
* @throws \RuntimeException
*/
public function init($pObj)
{
// Required method
}
/**
* Checking for first level external objects
*/
public function checkExtObj()
{
// Required method
}
/**
* Main function creating the content for the module.
*
* @return string HTML content for the module, actually a "section" made through the parent object in $this->pObj
*/
public function main()
{
return '<h1>My module function</h1>';
}
}https://stackoverflow.com/questions/54740905
复制相似问题