1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-23 13:23:18 +02:00

feat(core): add routable option for entries #284

This commit is contained in:
Awilum
2019-11-30 22:47:26 +03:00
parent 6eb0af2c37
commit a381c75736

View File

@@ -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);