@taxonomy collection should only get non-modular and published pages

This commit is contained in:
Andy Miller
2015-09-06 10:58:14 -06:00
parent 119e52fa15
commit a5e2f76cb8

View File

@@ -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;
}