From fdb1317dfd2433f101662288a6cb9a077836eb9c Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Tue, 13 Dec 2016 17:51:14 +0200 Subject: [PATCH] site map --- console/SiteMapController.php | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/console/SiteMapController.php b/console/SiteMapController.php index 9ab027a..efcac14 100755 --- a/console/SiteMapController.php +++ b/console/SiteMapController.php @@ -213,16 +213,19 @@ foreach ($this->getCategoriesWithFilters() as $category) { foreach ($category->taxGroups as $group) { - foreach ($group->taxOptions as $option) { - $url = $urlManager->createAbsoluteUrl( - [ - 'catalog/category', - 'category' => $category, - 'filters' => [ $group->lang->alias => [ $option->lang->alias ] ], - ] - ); - $this->createRow($url, 0.8); + if($group->is_filter && $group->meta_robots != 'noindex,nofollow'){ + foreach ($group->taxOptions as $option) { + $url = $urlManager->createAbsoluteUrl( + [ + 'catalog/category', + 'category' => $category, + 'filters' => [ $group->lang->alias => [ $option->lang->alias ] ], + ] + ); + $this->createRow($url, 0.8); + } } + } } -- libgit2 0.21.4