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

Registry: Global disallow setting #507

Closed
saitho opened this issue Jun 11, 2024 · 1 comment
Closed

Registry: Global disallow setting #507

saitho opened this issue Jun 11, 2024 · 1 comment

Comments

@saitho
Copy link
Contributor

saitho commented Jun 11, 2024

We have a few containers defined across multiple extensions and we have many content elements.
Some content elements are not suited to be nested in containers, therefore we want to exclude those from all containers.

Right now there is no way to exclude a content element from all grids. I'd like to suggest a new method for the container Registry that allows defining a global disallow setting, that is merged with the disallow list already returned by Registry::getContentDefenderConfiguration.

Registry::addDisallowedCType(string $cType): void

Maybe a content element globally disallowed via this method, should only be allowed when it is explicitly listed in "allowed".

saitho added a commit to dkd/container that referenced this issue Jun 11, 2024
A new method "Registry::addDisallowedCType" is added
that allows excluding content elements from all
containers per default (if Ext:content_defender is installed).

However, content elements excluded in such a way can still be explicitly allowed via "allowed" setting in column configuration.

Resolves: b13#507
saitho added a commit to dkd/container that referenced this issue Jun 11, 2024
A new method "Registry::addDisallowedCType" is added
that allows excluding content elements from all
containers per default (if Ext:content_defender is installed).

However, content elements excluded in such a way can still be explicitly allowed via "allowed" setting in column configuration.

Note: In order to take effect on the whole TYPO3 system, the method needs to be called in ext_localconf.php.

Resolves: b13#507
saitho added a commit to dkd/container that referenced this issue Jun 11, 2024
A new method "Registry::addDisallowedCType" is added
that allows excluding content elements from all
containers per default (if Ext:content_defender is installed).

However, content elements excluded in such a way can still be explicitly allowed via "allowed" setting in column configuration.

Note: In order to take effect on the whole TYPO3 system, the method needs to be called in ext_localconf.php.

Resolves: b13#507
saitho added a commit to dkd/container that referenced this issue Jun 11, 2024
A new method "Registry::addDisallowedCType" is added
that allows excluding content elements from all
containers per default (if Ext:content_defender is installed).

However, content elements excluded in such a way can still be explicitly allowed via "allowed" setting in column configuration.

Note: In order to take effect on the whole TYPO3 system, the method needs to be called in ext_localconf.php.

Resolves: b13#507
@achimfritz
Copy link
Contributor

see my comment in your PR #508 (comment)

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.

2 participants