Skip to content

Commit

Permalink
feat: allow override of static siteaccess design
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian ALEXANDRE committed Mar 28, 2024
1 parent 8e906e0 commit 6f1cdf0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bundle/DependencyInjection/EzStaticTemplatesExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@ public function prepend(ContainerBuilder $container): void
$ezpublishConfig['siteaccess']['groups']['static_group'][] = $theme;
$ezpublishConfig['siteaccess']['match']['Map\URI'][$uri] = $theme;
$ezpublishConfig['system'][$theme] = ['design' => "{$theme}_design"];
$ezdesignConfig['design_list']["{$theme}_design"] = [$theme, 'static_standard', 'standard'];
$parameterName = "{$theme}_design_themes";
if (!$container->hasParameter($parameterName)) {
$container->setParameter($parameterName, [$theme, 'static_standard', 'standard']);
}
$ezdesignConfig['design_list']["{$theme}_design"] = "%{$parameterName}%";
}
$container->prependExtensionConfig('ibexa', $ezpublishConfig);
$container->prependExtensionConfig('ibexa_design_engine', $ezdesignConfig);
Expand Down

0 comments on commit 6f1cdf0

Please sign in to comment.