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

Web>List module: All content elements allowed #159

Open
cweiske opened this issue Oct 16, 2024 · 1 comment
Open

Web>List module: All content elements allowed #159

cweiske opened this issue Oct 16, 2024 · 1 comment

Comments

@cweiske
Copy link

cweiske commented Oct 16, 2024

When creating a new content element via Web > List > Table "Page Content" > New record, all content elements are shown in the new content element wizard.

The backend layout of this page has only 1 row with 1 column, and that column only allows a single content type.

Shouldn't content_defender limit the new content element wizard from the list view, too?

Example:

mod.web_layout.BackendLayouts.service {
    title = Service list
    config {
        backend_layout {
            colCount = 1
            rowCount = 1
            rows {
                1 {
                    columns {
                        1 {
                            name = Services
                            colPos = 1
                            allowed {
                                CType = mask_services
                            }
                        }
                    }
                }
            }
        }
    }
}
@sebkln
Copy link

sebkln commented Oct 30, 2024

When using the "New record" button in List view, the Wizard first lets you choose the type of content element, then the position (colPos) of this element.
Therefore, you cannot limit the list of available content elements in the first step. Maybe this extension could be extended to limit the available columns in the second step.

Current state: if an editor chooses a content element that is not allowed in the selected column, the content element will automatically fall back to the first found allowed CType in the list.

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

No branches or pull requests

2 participants