From c0a4ad51ddf1974c4a4b58e0cc7dad0c52137a27 Mon Sep 17 00:00:00 2001 From: Cyssoo Date: Fri, 30 Jan 2026 09:05:10 +0100 Subject: [PATCH] Limit guide page blocks to first page --- controllers/front/pages.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/controllers/front/pages.php b/controllers/front/pages.php index 522b9b56..027cfb1c 100644 --- a/controllers/front/pages.php +++ b/controllers/front/pages.php @@ -73,6 +73,7 @@ public function initContent() $structuredData = $this->buildItemListStructuredData($pages, $pageLinks); $isPrettyBlocksEnabled = $this->isPrettyBlocksEnabled(); + $showPageOneBlocks = $isPrettyBlocksEnabled && $currentPage === 1; $pagination = $this->buildPagination( $currentPage, $totalPages, @@ -84,9 +85,10 @@ public function initContent() 'everblock_pages' => $pages, 'everblock_page_links' => $pageLinks, 'everblock_structured_data' => $structuredData, - 'everblock_prettyblocks_enabled' => $isPrettyBlocksEnabled, - 'everblock_prettyblocks_top_zone_name' => $isPrettyBlocksEnabled ? 'everblock_pages_listing_zone_top' : '', - 'everblock_prettyblocks_bottom_zone_name' => $isPrettyBlocksEnabled ? 'everblock_pages_listing_zone_bottom' : '', + 'everblock_prettyblocks_enabled' => $showPageOneBlocks, + 'everblock_prettyblocks_top_zone_name' => $showPageOneBlocks ? 'everblock_pages_listing_zone_top' : '', + 'everblock_prettyblocks_bottom_zone_name' => $showPageOneBlocks ? 'everblock_pages_listing_zone_bottom' : '', + 'everblock_is_first_page' => $currentPage === 1, 'everblock_pagination' => $pagination, ]);