1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-07 05:36:54 +02:00

feat(shortcodes): upd entries shortcode

This commit is contained in:
Awilum
2022-05-09 16:59:59 +03:00
parent 09a30caa3e
commit 8290971a95
3 changed files with 5 additions and 1 deletions

View File

@@ -32,7 +32,7 @@ parsers()->shortcodes()->addHandler('entries', static function (ShortcodeInterfa
$varsDelimeter = $s->getParameter('varsDelimeter') ?: '|';
if ($s->getParameter('fetch') != null) {
if ($s->getParameter('fetch') != null && registry()->get('flextype.settings.parsers.shortcodes.shortcodes.entries.fetch.enabled') === true) {
// Get vars
foreach($s->getParameters() as $key => $value) {

View File

@@ -541,6 +541,8 @@ parsers:
entries:
enabled: true
path: "/src/flextype/core/Parsers/Shortcodes/EntriesShortcode.php"
fetch:
enabled: true
php:
enabled: true
path: "/src/flextype/core/Parsers/Shortcodes/PhpShortcode.php"

View File

@@ -528,6 +528,8 @@ parsers:
entries:
enabled: true
path: "/src/flextype/core/Parsers/Shortcodes/EntriesShortcode.php"
fetch:
enabled: true
raw:
enabled: true
path: "/src/flextype/core/Parsers/Shortcodes/RawShortcode.php"