mirror of
https://github.com/getgrav/grav.git
synced 2026-02-11 00:57:51 +01:00
simple implementation of multiple content collections for a page
This commit is contained in:
@@ -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 @
|
||||
|
||||
Reference in New Issue
Block a user