typo3 - 更改 TYPO3 扩展 tx_news 中 Flexform 选择项的标签

标签 typo3 typoscript typo3-6.2.x

我想在 TYPO3 扩展 tx_news 的前端插件中向 Flexform 添加一个新的排序选项。到目前为止,通过添加这些内容,效果很好:

我的主题扩展的

ext_tables.php:

$TYPO3_CONF_VARS['EXT']['news']['orderByNews'] .= ',archive';

TypoScript 配置在我的主题扩展中:

plugin.tx_news.settings.orderByAllowed := addToList(archive)

我现在怀念的是可以在弹性表单的选择字段排序依据中更改新项目存档的标签。

我认为它是通过页面 TSconfig 和 TCEFORM.tt_content.pi_flexform.news_pi1.sDEF.settings.orderBy 完成的,但我无法弄清楚具体是如何完成的。

TYPO3版本是6.2

最佳答案

这对我有用:

TCEFORM.tt_content.pi_flexform.news_pi1.sDEF.settings\.orderBy.altLabels.archive = LLL:EXT:my_theme/pathto.xlf:archive

转义字段名前的点非常重要!

关于typo3 - 更改 TYPO3 扩展 tx_news 中 Flexform 选择项的标签,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39473035/

相关文章:

TYPO3 - 当在 8LTS 中加载扩展时,在 init 上加载 css 文件吗? getPageRenderer() 已被弃用

Typo3:添加 anchor 但不知道为什么

mapping - extbase 映射到现有表不起作用

TYPO3 - 自定义扩展 : show in flexform

php - Typoscript 和访问 $this->settings 的 TYPO3 问题

forms - Typo3 9.5 带有获取参数的预填充表单字段

openssl - XAMPP 3.2.1 和typo3 6.2 OpenSSL 不起作用

打字错误 3/打字错误 : How to make a fallback?

typo3 - 使用浏览器语言设置来设置语言(rlmp_language_detection)