mirror of
https://github.com/flextype/flextype.git
synced 2025-08-08 06:06:45 +02:00
Content: new shortcode [registry] added to access registry inside the pages
This commit is contained in:
@@ -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'));
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user