Issue Feature Under Review

#110651Backend layouts: allow limiting the number of content elements per colPos

Lukas Dörr 09/08/26, 07:22 updated 11/15/26, 18:53

Description

Backend layout columns can already restrict which content elements are allowed, via allowedContentTypes and disallowedContentTypes. There is no way to restrict how many.

A common case is a column that is meant to hold exactly one element — a hero area, a pre-footer area, a sidebar teaser. Today this can only be solved with a project-specific DataHandler hook, which every project ends up writing again.

Suggested configuration, next to the existing restrictions:

For example like this:

columns {
    1 {
        name = Hero
        colPos = 11
        allowedContentTypes = my_hero
        maxItems = 1
    }
}

Reviews 1

History 05