From 301e2886208c859bea4b55ea35480256c9274e5e Mon Sep 17 00:00:00 2001 From: Awilum Date: Wed, 16 May 2018 10:50:51 +0300 Subject: [PATCH] Content: new shortcode [registry] added to access registry inside the pages --- flextype/Content.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/flextype/Content.php b/flextype/Content.php index 79de1ed9..508cdf2e 100755 --- a/flextype/Content.php +++ b/flextype/Content.php @@ -382,6 +382,10 @@ class Content Content::shortcode()->addHandler('block', function(ShortcodeInterface $s) { return Content::getBlock($s->getParameter('name')); }); + + Content::shortcode()->addHandler('registry', function(ShortcodeInterface $s) { + return Registry::get($s->getParameter('item')); + }); } /**