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

269 Views Asked by At

In TYPO3, is it possible to remove backend_layouts via page TSconfig that have been created with Mask extension.

Let's say, the following backend_layouts have been created with Mask (Name [ID]):

A [1]
B [2]

Then, I set the following in page TSconfig:

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

Also with this configuration, backend_layouts 'A' and 'B' are still available in page edit form.

How could I remove backend_layouts from page edit form for single pages via page TSconfig?

Mask version: 2.1.1 (TYPO3 7.6.x)

1

There are 1 best solutions below

6
On

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.
But then the possibility to define BE-Layouts in TSconfig was introduced (data-provider). 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).


Adding or removing single options from a select can be done for selects based on static options in the TCA.
Dynamic selects (e.g. 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.

  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)
  2. maybe even mask can handle backend_layouts defined in TSconfig