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

Take l18n_cfg into account when fetching pages for PageList #12

Open
schloram opened this issue Aug 17, 2021 · 0 comments
Open

Take l18n_cfg into account when fetching pages for PageList #12

schloram opened this issue Aug 17, 2021 · 0 comments
Assignees

Comments

@schloram
Copy link
Member

Currently the field l18n_cfg is not taken into account when fetching pages for the PageList CE. This has the effect, that pages where the the Hide default language of page or Hide page if no translation for current language exists checkboxes are set are being fetched as well even though they should not.

I would propose to dump the usage of the DatabaseQueryProcessor for this purpose and and write a custom PageListProcessor. In this processor we could easily make use of methods like \TYPO3\CMS\Frontend\Page\PageRepository::isPageSuitableForLanguage to determine if a page should be rendered in the specific language.

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