【问题标题】:How can I rename backend labels e.g. 'author' in Typo3 and read them如何重命名后端标签,例如Typo3 中的“作者”并阅读它们
【发布时间】:2016-01-12 01:35:35
【问题描述】:

如何重命名两个后端标签“作者”和“作者电子邮件”,您可以在编辑页面属性的“元数据”选项卡中找到它们。

我尝试首先在模板配置中使用以下 sn-ps,然后在页面属性中页面 TSConfig 的资源选项卡中使用第二个,清空所有缓存但没有任何反应:

TCEFORM {
tt_content {
    author.label = Teaser
}

}

见:How to rename subheader in TYPO3 CMS backend

还有这个:

TCEFORM.author.label.default = Teaser
TCEFORM.author_email.label.default = Sub_Teaser

我尝试通过以下方式读取这些字段:

lib.teaser.20 = TEXT
lib.teaser.20.data = levelfield : -1 , author, slide

有人可以帮忙吗?

【问题讨论】:

    标签: typo3 typoscript


    【解决方案1】:

    字段 author 和 author_email 是表“pages”的属性,而不是“tt_content”。 请试试这个: TCEFORM { pages { author.label = Teaser } }

    【讨论】:

    • 你能告诉我怎么读吗?我试过这样: lib.headerteaser.20.data = levelfield : -1 , Teaser, slide (headerteaser 是我的'手工' Gridelement) 但是源代码中仍然没有内容,只有我构建的空包装它。
    • 在模板中我使用了以下viewhelper
    • 好吧,“lib.headerteaser”是与 TCEFORM 不同的问题。请在 stackoverflow 上创建新答案,然后粘贴您的代码(TS、Fluid...)。
    • 谢谢罗伯特!我确实创建了一个新的:stackoverflow.com/questions/34755983/…
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-11-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-03-25
    • 1970-01-01
    相关资源
    最近更新 更多