当前位置: 动力学知识库 > 问答 > 编程问答 >

drop down menu - typo3 extbase get TCA selectbox values in fluid template

问题描述:

I have one non extbase extension, that extends the fe_users table by field named prefix.

CREATE TABLE fe_users (

prefix int(11) unsigned DEFAULT '0' NOT NULL,

);

In file ext_tables.php

'prefix' => Array (

'exclude' => 0,

'label' => 'LLL:EXT:extend_feusers/locallang_db.xml:fe_users.prefix',

'config' => Array (

'type' => 'select',

'items' => Array (

Array('LLL:EXT:extend_feusers/locallang_db.xml:fe_users.prefix.I.0', '0'),

Array('LLL:EXT:extend_feusers/locallang_db.xml:fe_users.prefix.I.1', '1'),

Array('LLL:EXT:extend_feusers/locallang_db.xml:fe_users.prefix.I.2', '2'),

Array('LLL:EXT:extend_feusers/locallang_db.xml:fe_users.prefix.I.3', '3'),

Array('LLL:EXT:extend_feusers/locallang_db.xml:fe_users.prefix.I.4', '4')

),

'size' => 1,

'maxitems' => 1,

)

),

In file locallang_db.xml

<label index="fe_users.prefix">Prefix</label>

<label index="fe_users.prefix.I.0"> </label>

<label index="fe_users.prefix.I.1">Mr.</label>

<label index="fe_users.prefix.I.2">Ms.</label>

<label index="fe_users.prefix.I.3">Mrs.</label>

And Using another extbase plugin I want to set and get these values using fluid template.

Anybody know how get and set these values using fluid selectbox ?

分享给朋友:
您可能感兴趣的文章:
随机阅读: