From 5b2c1b40d67f2d0ebb9f74a61d35958d78794319 Mon Sep 17 00:00:00 2001 From: Awilum Date: Tue, 12 Apr 2022 19:33:12 +0300 Subject: [PATCH] feat(shortcodes): update `[entries]` shortcode for field processor --- src/flextype/core/Parsers/Shortcodes/EntriesShortcode.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/flextype/core/Parsers/Shortcodes/EntriesShortcode.php b/src/flextype/core/Parsers/Shortcodes/EntriesShortcode.php index 2a270647..d7d686bd 100644 --- a/src/flextype/core/Parsers/Shortcodes/EntriesShortcode.php +++ b/src/flextype/core/Parsers/Shortcodes/EntriesShortcode.php @@ -29,5 +29,5 @@ parsers()->shortcodes()->addHandler('entries_fetch', static function (ShortcodeI return ''; } - return collection(entries()->fetch($s->getParameter('id')))->get($s->getParameter('field'), $s->getParameter('default')); -}); + return "@type:array;" . entries()->fetch($s->getParameter('id'))->toJson(); +}); \ No newline at end of file