You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current Behavior
When allowedColPos is set for templateLayouts in PageTSConfig, the layout is not removed if the colPos is not allowed.
Expected behavior/output
If 1.allowedColPos = 1, the layout 1 should not be visible if the content element is in a column other than colPos=1
Environment
TYPO3 version(s): 8.7.20
news version: 7.0.8
Is your TYPO3 installation set up with Composer (Composer Mode): yes
OS: Linux 4.9.125-linuxkit
Possible Solution
The method \GeorgRinger\News\Hooks\ItemsProcFunc::reduceTemplateLayouts uses a wrong key to remove restricted layouts from the $allLayouts array (
Bug Report
Current Behavior
When
allowedColPos
is set for templateLayouts in PageTSConfig, the layout is not removed if the colPos is not allowed.Expected behavior/output
If
1.allowedColPos = 1
, the layout1
should not be visible if the content element is in a column other thancolPos=1
Environment
Possible Solution
The method \GeorgRinger\News\Hooks\ItemsProcFunc::reduceTemplateLayouts uses a wrong key to remove restricted layouts from the $allLayouts array (
news/Classes/Hooks/ItemsProcFunc.php
Line 82 in b73b1db
I will provide a pull request for that soon.
The text was updated successfully, but these errors were encountered: