From a381c757365c98937f25ca3954293a27c43ae0a7 Mon Sep 17 00:00:00 2001 From: Awilum Date: Sat, 30 Nov 2019 22:47:26 +0300 Subject: [PATCH] feat(core): add routable option for entries #284 --- flextype/core/Entries.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/flextype/core/Entries.php b/flextype/core/Entries.php index cd9276f1..d6b1e257 100755 --- a/flextype/core/Entries.php +++ b/flextype/core/Entries.php @@ -178,6 +178,12 @@ class Entries // Entry Slug $entry_decoded['slug'] = $entry_decoded['slug'] ?? ltrim(rtrim($id, '/'), '/'); + // Entry routable + $entry_decoded['routable'] = $entry_decoded['routable'] ?? true; + + // Entry visibility + $entry_decoded['visibility'] = $entry_decoded['visibility'] ?? 'visible'; + // Save decoded entry content into the cache $this->flextype['cache']->save($entry_cache_id, $entry_decoded);