簡體   English   中英

如何將存儲庫擴展的 flexform 覆蓋到站點 Package 以更改配置

[英]How to overwrite A flexform of repository extension in to the Site Package in order to change the configuration

是否有任何文檔可以幫助我將 powermail 擴展的 Flexform 覆蓋到我的站點 package 中? 這樣我就可以編輯字段配置。

請幫忙,我一直在尋找這個很長。

謝謝。

Powermail 文檔中有一節“ 添加新的 FlexForm 屬性”。

in2code(Powermail 背后的人)發表了一篇(德語)博客文章“ [PHP] FlexForm einer Extension komplett ersetzen

在 ext_localconf.php

$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['postUserLookUp'][] = \ABC\MyPackage\Hooks\OverwriteFlexForm::class . '->overwrite';

在 OverwriteFlexForm.php 中:

    <?php
declare(strict_types=1);
namespace ABC\MyPackage\Hooks;

/**
 * Class OverwriteFlexForm
 */
class OverwriteFlexForm
{

    /**
     * @var string
     */
    protected $path = 'FILE:EXT:my_package/Configuration/FlexForms/FlexformStudyfinderList.xml';

    /**
     * @return void
     */
    public function overwrite()
    {
        $GLOBALS['TCA']['tt_content']['columns']['pi_flexform']['config']['ds']['powermail_pi1,list']
            = $this->path;
    }
}

在 FlexformStudyfinderList.xml 中:

Flexform Code goes here.

最后,我自己找到了解決方案。 感謝各位的支持。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM