在Typo3中设置Mask-Elements的后端标题 [英] Set backend title for Mask-Elements in Typo3

查看:71
本文介绍了在Typo3中设置Mask-Elements的后端标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Typo3服务器.在此之上,我使用遮罩创建了一些不同的内容元素. 在这些元素中,经常有重复的内容,例如文本或其他内容. 因此,编辑者在后端创建了一个新元素,他们可以在其中添加标题和所需的尽可能多的文本部分. 通常看起来像这样:

I have a Typo3 server. On that I created some different content elements with mask. In this elements there are often repeating content, like texts or other stuff. So the editors make a new element in the backend, there they can add a headline and as much text parts as they want. Often it looks like this:

那很好,编辑器可以看到文本部分的预览".在此示例中,"Karriere,Partner ...".该命名是自动发生的. 我的问题是,有时没有任何标题.它始终是无标题".作为编辑器,很难找到合适的下拉菜单来编辑某些内容,因此您几乎必须打开所有下拉菜单并搜索合适的下拉菜单.

Thats good, the editor can see a "preview" of the textparts. In this example "Karriere,Partner...". This naming happens automatically. My Problem is, some times there arent any titles. Its always "No title". As an editor its quite hard to find the right dropdown to edit some stuff, you mostly have to open all dropdowns and search for the right one.

它看起来像这样:

在两个元素中都有一些非常适合标题的字符串输入.

In both elements there are some string inputs that are very good for the title.

所以我的问题是,面具将如何选择标题?它不是第一个字符串输入.

So my question is, how is mask gonna choose the title? Its not the first string input.

其次,我可以告诉Mask他们必须选择输入字段XYZ作为标题吗?

And secondly, can I tell Mask that they have to choose input field XYZ as title?

推荐答案

Heyo

是的,您可以告诉Mask将哪个字段用作内联元素的标题(例如重复内容).设置新的Mask元素时,在重复的内联元素的标签"字段正下方,有一个字段应用作内嵌元素标签的字段(从tx_mask_开始)".这将用作后端中显示的标题.在该字段的占位符中,它明确表示如果为空,则使用第一个字段".

Yes, you can tell Mask which field to use as a title for inline elements (like repeating contents). When you're setting up a new Mask element, right below the "Label" field of the repeated inline element, there is a field "Field that should be used as label for inline element (starting with tx_mask_)". This will be used as the title that is displayed in the backend. In the placeholder of that field, it explicitly says that "If empty, first field is used".

外观是

因此,如果内联元素具有要用作后端标题的字段"my_awesome_header",请将以上内容设置为"tx_mask_my_awesome_header".

So, if your inline element has a field "my_awesome_header" which you would like to use as the title in the backend, set the above to "tx_mask_my_awesome_header".

我不确定在第二个示例中为什么它不显示任何内容.可能是第一个输入字段不是字符串,或者第一个输入字段是字符串,但是为空.

I am not certain as to why it does not display anything in your second example. It might be that either the first input field is not a string, or the first input field is a string but it is empty.

我希望这会有所帮助.让我知道您是否需要进一步澄清.

I hope this helps. Let me know if you need further clarification.

编辑:由于出现了这个问题,应该可以使用mod.wizards.newContentElement.wizardItems.mask.elements.[name of the mask element].tt_content_defValues.header = My awesome static title为包含的Mask元素设置 static 默认标题.但是,正如我在评论中所说:我总是给我的Mask元素一个标头字段,让编辑者填写它.

Edit: Since that question came up, it should be possible to set a static default title to the containing Mask element using mod.wizards.newContentElement.wizardItems.mask.elements.[name of the mask element].tt_content_defValues.header = My awesome static title. As I said in the comments, though: I always give my Mask elements a header field and let editors fill that in.

这篇关于在Typo3中设置Mask-Elements的后端标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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