简体   繁体   English

从页面表单中删除使用Mask创建的特定backend_layouts

[英]Remove from page form specific backend_layouts that have been created with Mask

In TYPO3, is it possible to remove backend_layouts via page TSconfig that have been created with Mask extension. 在TYPO3中,是否可以通过页面TSconfig删除使用Mask扩展名创建的backend_layouts。

Let's say, the following backend_layouts have been created with Mask (Name [ID]): 假设,已经使用Mask(名称[ID])创建了以下backend_layouts:

A [1]
B [2]

Then, I set the following in page TSconfig: 然后,在页面TSconfig中设置以下内容:

TCEFORM {
    pages {
        backend_layout {
            removeItems = 1,2
        }
    }
}

Also with this configuration, backend_layouts 'A' and 'B' are still available in page edit form. 同样使用此配置,backend_layouts'A'和'B'在页面编辑表单中仍然可用。

How could I remove backend_layouts from page edit form for single pages via page TSconfig? 如何通过页面TSconfig从页面编辑表单的单个页面删除backend_layouts?

Mask version: 2.1.1 (TYPO3 7.6.x) 遮罩版本:2.1.1(TYPO3 7.6.x)

If possible at all I would expect the layout names instead of numbers. 如果可能的话,我希望版式名称而不是数字。 Be aware that these names might have prefixes if the layout gets provided with a data-provider. 请注意,如果布局提供了数据提供程序,则这些名称可能带有前缀。

In the beginning (TYPO3 version < 6.2) the values for the fields backend_layout and backend_layout_next_level were numbers, as they referenced records of the table backend_layout . 开头(TYPO3版本<6.2),字段backend_layoutbackend_layout_next_level的值是数字,因为它们引用了表backend_layout记录。
But then the possibility to define BE-Layouts in TSconfig was introduced (data-provider). 但是随后引入了在TSconfig中定义BE布局的可能性(数据提供者)。 And for unique identification the field was changed to text ( varchar ) and the layouts defined by TSconfig get a automatic prefix pagets_ (prefix to the name defined in the TSconfig). 为了唯一标识,该字段更改为文本( varchar ),并且TSconfig定义的布局获得了自动前缀pagets_pagets_定义的名称的前缀)。


Adding or removing single options from a select can be done for selects based on static options in the TCA. 可以基于TCA中的静态选项为选择添加或删除单个选项。
Dynamic selects (eg based on records) probably needs a 'wizard' to filter entries. 动态选择(例如基于记录)可能需要一个“向导”来过滤条目。


trying the reverse: 尝试反向:
if you can define your backend_layouts in TSconfig it would be easy to drop some definitions in special trees. 如果您可以在TSconfig中定义backend_layouts,则可以很容易地在特殊树中删除一些定义。

  1. do you really need mask to render the frontend? 您真的需要遮罩来渲染前端吗? (connecting backend_layout values to fluid templates is easy and can be found around the net) (将backend_layout值连接到流体模板很容易,并且可以在网上找到)
  2. maybe even mask can handle backend_layouts defined in TSconfig 甚至遮罩也可以处理TSconfig中定义的backend_layouts

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM