繁体   English   中英

如何在TYPO3 flexform中设置userFunc“参数”

[英]How set userFunc “parameters” in TYPO3 flexform

我在我的TCA中配置了Google Map

    'configuration_map' => array(
        'exclude' => 0,
        'label' => 'Map',
        'config' => array(
            'type' => 'user',
            'userFunc' => 'Vendor\\Extension\\Utility\\LocationUtility->render',
            'parameters' => array(
                'lng' => 'lng',
                'lat' => 'lat',
                'address' => 'address',
            ),
        ),
    ),  

我需要在flexform中进行相同的配置,例如下面的示例。 如何在xml中设置userFunc“参数”?

 <settings.map>
    <TCEforms>
      <label>Map</label>
    <config>
        <type>user</type>     
        <userFunc>Vendor\Extension\Utility\LocationUtility->render</userFunc>                                      
      <parameters>
      </parameters> 
      </config>
    </TCEforms>
  </settings.map>

它应该是:

<settings.map>
    <TCEforms>
        <label>Map</label>
        <config>
            <type>user</type>     
            <userFunc>\Vendor\Extension\Utility\LocationUtility->render</userFunc>                                      
            <parameters>
                <lng>lng</lng>
                <lat>lat</lat>
                <address>address</address>
            </parameters> 
        </config>
    </TCEforms>
</settings.map>

顺便说一句,您应该使用\\开头一个命名空间\\

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM