From ca901f4c3e920842e5b5a72dcede438aa6d8fb93 Mon Sep 17 00:00:00 2001 From: Michael Claesson Date: Fri, 2 Jan 2026 11:13:03 +0100 Subject: [PATCH] Include modules from single and archive templates --- Modularity/source/php/Module.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Modularity/source/php/Module.php b/Modularity/source/php/Module.php index e01fa3d9b..e2f805532 100644 --- a/Modularity/source/php/Module.php +++ b/Modularity/source/php/Module.php @@ -462,6 +462,11 @@ private function getPresentModuleList($postId): array 'widgets' => $this->getWidgets(), ]; + //Single template modules + if (is_singular() || is_archive()) { + $modulesByLinkType['template'] = $this->getValueFromKeyRecursive(\Modularity\Display::setupModulesForSingle($postId), 'post_type'); + } + //Filter and merge all modules foreach ($modulesByLinkType as $modulesLinkType) { $modules = array_merge($modules, $modulesLinkType);