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:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user