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

Fix TSConfig conditionals for hidden pages and content elements #204

Merged
merged 1 commit into from
Dec 6, 2018

Conversation

ghost
Copy link

@ghost ghost commented Nov 28, 2018

The default query restrictions in TYPO3 hide pages and content elements
that are hidden, or that have starttime and/or endtime set, and the
current time is outside of that time frame.

Mask uses a custom TSConfig conditional function that checks the
database for CType in case of tt_content, or backend_layout in case of
pages, to insert its own extended fields (pages) or set overridden
labels for inputs (tt_content).

This also adds a small static cache for the CType check to avoid
querying the database for each TSConfig conditional.

Fixes #203

…ott#203

The default query restrictions in TYPO3 hide pages and content elements
that are hidden, or that have starttime and/or endtime set, and the
current time is outside of that time frame.

Mask uses a custom TSConfig conditional function that checks the
database for CType in case of tt_content, or backend_layout in case of
pages, to insert its own extended fields (pages) or set overridden
labels for inputs (tt_content).

This also adds a small static cache for the CType check to avoid
querying the database for each TSConfig conditional.
@butu butu merged commit 5e8be33 into Gernott:master Dec 6, 2018
@butu
Copy link
Collaborator

butu commented Dec 6, 2018

Great, thank you! :)

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 this pull request may close these issues.

2 participants