diff --git a/src/Resources/contao/Hooks.php b/src/Resources/contao/Hooks.php index 0977c8d..d7d9ba4 100644 --- a/src/Resources/contao/Hooks.php +++ b/src/Resources/contao/Hooks.php @@ -19,5 +19,15 @@ public static function apiModuleGenerated(ApiModule $module, string $moduleClass $module->numberOfItems, 0 ); + if ($_module->imgSize) { + foreach ($module->newsItems as $item) { + if (trim( + implode( + '', + StringUtil::deserialize($item->size) + ) + )) $item->size = $_module->imgSize; + } + } } }