mirror of
https://github.com/getgrav/grav.git
synced 2026-02-10 16:47:49 +01:00
@taxonomy collection should only get non-modular and published pages
This commit is contained in:
@@ -1847,6 +1847,7 @@ class Page
|
||||
$collection->setParams(['taxonomies' => [$taxonomy => $items]]);
|
||||
|
||||
foreach ($collection as $page) {
|
||||
// Don't filter modular pages
|
||||
if ($page->modular()) {
|
||||
continue;
|
||||
}
|
||||
@@ -1961,7 +1962,7 @@ class Page
|
||||
if (!empty($parts)) {
|
||||
$params = [implode('.', $parts) => $params];
|
||||
}
|
||||
$results = $taxonomy_map->findTaxonomy($params);
|
||||
$results = $taxonomy_map->findTaxonomy($params)->nonModular()->published();
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user