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
Affects TYPO3 v11.5.13 with flux (9.6.1) and vhs (6.1.2)
it is not possible to use "v:content.resources.fal" in a flux content template in the "preview" section:
(1/1) #1527777868 TYPO3\CMS\Core\Context\Exception\AspectNotFoundException
No aspect named "frontend.preview" found.
So, missing frontend.preview aspect in /var/www/mbcs/public/typo3conf/ext/vhs/Classes/ViewHelpers/Resource/Record/AbstractRecordResourceViewHelper.php line 173
lines 171 to 176:
if (class_exists('\\TYPO3\\CMS\\Frontend\\Aspect\\PreviewAspect')) {
//TYPO3 version >= 10
$fePreview = GeneralUtility::makeInstance(Context::class)->getPropertyFromAspect('frontend.preview', 'isPreview');
} else {
$fePreview = (bool)(isset($GLOBALS['TSFE']) && $GLOBALS['TSFE']->fePreview);
}
guess "frontend.preview" is for real frontend preview in TYPO3 backend, but not for the preview section. Aspect "frontend.preview" does not exist in TYPO3\CMS\Core\Context\Context
this may be the solution:
if (class_exists('\\TYPO3\\CMS\\Frontend\\Aspect\\PreviewAspect')) {
//TYPO3 version >= 10
if (GeneralUtility::makeInstance(Context::class)->hasAspect('frontend.preview')) {
$fePreview = GeneralUtility::makeInstance(Context::class)->getPropertyFromAspect('frontend.preview', 'isPreview');
} else {
$fePreview = false;
}
} else {
$fePreview = (bool)(isset($GLOBALS['TSFE']) && $GLOBALS['TSFE']->fePreview);
}
The text was updated successfully, but these errors were encountered:
Affects TYPO3 v11.5.13 with flux (9.6.1) and vhs (6.1.2)
it is not possible to use "v:content.resources.fal" in a flux content template in the "preview" section:
Flux Content Template:
causes error:
(1/1) #1527777868 TYPO3\CMS\Core\Context\Exception\AspectNotFoundException
No aspect named "frontend.preview" found.
So, missing frontend.preview aspect in /var/www/mbcs/public/typo3conf/ext/vhs/Classes/ViewHelpers/Resource/Record/AbstractRecordResourceViewHelper.php line 173
lines 171 to 176:
guess "frontend.preview" is for real frontend preview in TYPO3 backend, but not for the preview section. Aspect "frontend.preview" does not exist in TYPO3\CMS\Core\Context\Context
this may be the solution:
The text was updated successfully, but these errors were encountered: