From d22ee4f85e48bf16cf23019a28fc235554b4b2fa Mon Sep 17 00:00:00 2001 From: Etienne Gutbub Date: Mon, 26 Feb 2024 12:11:43 +0100 Subject: [PATCH] feat(Show in shop): Add menu with locale to show in shop a page --- .../Admin/Page/_showInShopButton.html.twig | 27 ++++++++++++++----- 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/src/Resources/views/Admin/Page/_showInShopButton.html.twig b/src/Resources/views/Admin/Page/_showInShopButton.html.twig index 1fe3c51..6d1066c 100644 --- a/src/Resources/views/Admin/Page/_showInShopButton.html.twig +++ b/src/Resources/views/Admin/Page/_showInShopButton.html.twig @@ -26,12 +26,27 @@ {% else %} - {% for channel in enabledChannels %} - {% set url = channel.hostname is not null ? 'http://' ~ channel.hostname ~ path('monsieurbiz_cms_page_show', {'slug': resource.slug, '_locale': channel.defaultLocale.code}) : url('monsieurbiz_cms_page_show', {'slug': resource.slug, '_locale': channel.defaultLocale.code}) %} - - + {% endif %} {% endif %}