TCA selectCheckBox-在流体模板中输出 [英] TCA selectCheckBox - Output in fluid template

查看:80
本文介绍了TCA selectCheckBox-在流体模板中输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在TCA中使用

        'uebersetzungen' => [
        'exclude' => true,
        'label' => 'LLL:EXT:maschinen/Resources/Private/Language/locallang_db.xlf:tx_maschinen_domain_model_maschine.uebersetzungen',
        'config' => [
            'type' => 'select',
            'renderType' => 'selectSingle',
            'items' => [
                ['6:1', 1],
                ['8:1', 2],
                ['11:1', 3],
                ['14:1', 4],
            ],
            'size' => 4,
            'maxitems' => 1,
            'eval' => ''
        ],
    ],

使用

        <f:switch expression="{maschine.uebersetzungen}">
            <f:case value="1">6:1</f:case>
            <f:case value="2">8:1</f:case>
            <f:case value="3">11:1</f:case>
            <f:case value="4">14:1</f:case>
        </f:switch>

现在我想将renderType更改为

Now I want to change the renderType to

'renderType' => 'selectSingleBox'

但是我不知道如何获取这几个值.

but I have no idea how to get the several values.

我阅读了 TYPO3 TCA类型是否在FLUID中选择? 但我不确定是否存在相同的问题,因为我在TCA中使用了不同的语法

I read TYPO3 TCA type select in FLUID? but I'm not sure whether it's the same problem because I have a different syntax in TCA

推荐答案

感谢@Paul Beck我为我的问题找到了答案.

Thanks to @Paul Beck I found an answer for my problem.

我可以使用此处发布的解决方案: TYPO3 TCA类型请选择流体?

I can use the solution posted here: TYPO3 TCA type select in FLUID?

但是我不得不换行

protected $featuresDecoded;

protected $featuresDecoded = [];

这篇关于TCA selectCheckBox-在流体模板中输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆