From 0688909fb7a9dff7daae613aec74da40da9403fa Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Sun, 6 Sep 2015 12:59:34 -0600 Subject: [PATCH] simple implementation of multiple content collections for a page --- system/src/Grav/Common/Page/Page.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/system/src/Grav/Common/Page/Page.php b/system/src/Grav/Common/Page/Page.php index 216531ebb..11b1751b3 100644 --- a/system/src/Grav/Common/Page/Page.php +++ b/system/src/Grav/Common/Page/Page.php @@ -1915,7 +1915,11 @@ class Page $cmd = (string) key($value); $params = (array) current($value); } else { - return $value; + $result = []; + foreach($value as $key => $val) { + $result = $result + $this->evaluate([$key=>$val])->toArray(); + } + return new Collection($result); } // We only evaluate commands which start with @