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

[FEATURE] allow PageTSconfig option to filter for mappings #339

Merged
merged 3 commits into from May 3, 2022

Conversation

jpmschuler
Copy link
Contributor

This will allow easier supplying of sitepackages, as you can filter
mappings by page branch easily. Most template extension will provide
mappings as well as PageTSconfig, so with this you can easily do a

mod.web_txtemplavoilaplusLayout.filterMaps = vendor/yourextension

to not show other mappings in that branch. Thus allowing
multi-template-setups easily, while still retaining the access check
and thus allowing editors for different templates to not mix them up,
as we can now filter by page tree as well as user.

As there might be extension supplying FCEs only (e.g. bootstrap style
containers). there is an option to define an array of allowed stuff
like

mod.web_txtemplavoilaplusLayout.filterMaps.1 = vendor/yourextension/Page
mod.web_txtemplavoilaplusLayout.filterMaps.2 = vendor/yourotherextension/FCE

This will allow easier supplying of sitepackages, as you can filter
mappings by page branch easily. Most template extension will provide
mappings as well as PageTSconfig, so with this you can easily do a

mod.web_txtemplavoilaplusLayout.filterMaps = vendor/yourextension

to not show other mappings in that branch. Thus allowing
multi-template-setups easily, while still retaining the access check
and thus allowing editors for different templates to not mix them up,
as we can now filter by page tree as well as user.

As there might be extension supplying FCEs only (e.g. bootstrap style
containers). there is an option to define an array of allowed stuff
like

mod.web_txtemplavoilaplusLayout.filterMaps.1 = vendor/yourextension/Page
mod.web_txtemplavoilaplusLayout.filterMaps.2 = vendor/yourotherextension/FCE
@opi99 opi99 added this to the 8.0.0 milestone Apr 22, 2022
Classes/Service/ItemsProcFunc.php Outdated Show resolved Hide resolved
Configuration/TSConfig/Page.ts Outdated Show resolved Hide resolved
@jpmschuler jpmschuler requested a review from opi99 April 26, 2022 23:26
@opi99 opi99 added the Feature label May 3, 2022
@opi99 opi99 merged commit c21237d into T3Voila:main May 3, 2022
jpmschuler added a commit to jpmschuler/templavoilaplus that referenced this pull request Oct 12, 2022
…ldn't filter wizards

T3Voila#339 introduce map filtering, that was respected in TCA/TCEForm quite fine, but the newCeWizard tab FCE doesn't respect it.
Additionally the old option to use
`mod.wizards.newContentElement.wizardItems.fce.show = *`
or
`mod.wizards.newContentElement.wizardItems.fce.show = fce_<identifierA>,fce_<identifierB>`
was missing to slim the entries in the tab to have any control on this.

This would again allow to hide the tab, e.g. via
`mod.wizards.newContentElement.wizardItems.fce.show = none`
(as 'none' is a non-existing element)
jpmschuler added a commit to jpmschuler/templavoilaplus that referenced this pull request Oct 12, 2022
…ldn't filter wizards

T3Voila#339 introduce map filtering, that was respected in TCA/TCEForm quite fine, but the newCeWizard tab FCE doesn't respect it.
Additionally the old option to use
`mod.wizards.newContentElement.wizardItems.fce.show = *`
or
`mod.wizards.newContentElement.wizardItems.fce.show = fce_<identifierA>,fce_<identifierB>`
was missing to slim the entries in the tab to have any control on this.

This would again allow to hide the tab, e.g. via
`mod.wizards.newContentElement.wizardItems.fce.show = none`
(as 'none' is a non-existing element)
jpmschuler added a commit to jpmschuler/templavoilaplus that referenced this pull request Oct 15, 2022
…ldn't filter wizards

T3Voila#339 introduce map filtering, that was respected in TCA/TCEForm quite fine, but the newCeWizard tab FCE doesn't respect it.
Additionally the old option to use
`mod.wizards.newContentElement.wizardItems.fce.show = *`
or
`mod.wizards.newContentElement.wizardItems.fce.show = fce_<identifierA>,fce_<identifierB>`
was missing to slim the entries in the tab to have any control on this.

This would again allow to hide the tab, e.g. via
`mod.wizards.newContentElement.wizardItems.fce.show = none`
(as 'none' is a non-existing element)
@jpmschuler jpmschuler deleted the feature-mapFilterByPageTSconfig branch October 22, 2022 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants