Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Item group labels are not displayed when using 'allowed' #149

Open
minapok opened this issue Nov 7, 2023 · 0 comments · May be fixed by #155
Open

Item group labels are not displayed when using 'allowed' #149

minapok opened this issue Nov 7, 2023 · 0 comments · May be fixed by #155

Comments

@minapok
Copy link

minapok commented Nov 7, 2023

I use EXT:content_defender 3.4.1 in a TYPO3 CMS 12.4.7, PHP 8.1.

If I restrict the allowed content elements in a backend layout via 'allowed', the itemGroups labels aren't displayed in the "CType" selection field inside a content element. When using 'disallowed' the labels are displayed.

Example configuration:

mod {
     web_layout {
         BackendLayouts {
             example {
                 title = Example backend layout
                 config {
                     backend_layout {
                         colCount = 1
                         rowCount = 1
                         rows {
                             1 {
                                 columns {
                                     1 {
                                         name = Example column
                                         colPos = 0
                                         allowed {
                                             CType = text, shortcut
                                         }
                                     }
                                 }
                             }
                         }
                     }
                 }
             }
         }
     }
}

Is it possible that the item group labels are displayed while using 'allowed'?

@minapok minapok changed the title Item group labels are not displayed Item group labels are not displayed when using 'allowed' Nov 7, 2023
derhansen added a commit to derhansen/content_defender that referenced this issue May 31, 2024
This change ensures, that item group labels are left out
when filtering the `allowed` array of CType items.

Closes IchHabRecht#149
derhansen added a commit to derhansen/content_defender that referenced this issue Jun 1, 2024
This change ensures, that item group labels are left out
when filtering the `allowed` array of CType items.

Closes IchHabRecht#149
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant