From 20407c813b181e81ccc6e07a56cad957842bd39d Mon Sep 17 00:00:00 2001 From: Marcus Date: Wed, 4 Dec 2024 23:01:45 +0100 Subject: [PATCH] fix: settings template now supports craft 5.3+ --- composer.json | 2 +- src/templates/cp/settings.twig | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 2ae50a2..b1a4541 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "everyday/craft-incremental-static-regeneration", - "version": "1.3.1", + "version": "1.3.2", "description": "A plugin that watches your entry changes and pings a URL of your choice", "type": "craft-plugin", "keywords": ["incremental", "static", "regeneration", "nextjs"], diff --git a/src/templates/cp/settings.twig b/src/templates/cp/settings.twig index c5cc258..86b9460 100644 --- a/src/templates/cp/settings.twig +++ b/src/templates/cp/settings.twig @@ -165,7 +165,7 @@ - {% for section in craft.app.sections.allSections %} + {% for section in craft.app.getEntries().getEditableSections() %} {% for entryType in section.entryTypes %} {{ section.type|ucfirst }} @@ -185,4 +185,4 @@ - \ No newline at end of file +