Commit fdb1317dfd2433f101662288a6cb9a077836eb9c
1 parent
3ff84332
site map
Showing
1 changed file
with
12 additions
and
9 deletions
Show diff stats
console/SiteMapController.php
| ... | ... | @@ -213,16 +213,19 @@ |
| 213 | 213 | |
| 214 | 214 | foreach ($this->getCategoriesWithFilters() as $category) { |
| 215 | 215 | foreach ($category->taxGroups as $group) { |
| 216 | - foreach ($group->taxOptions as $option) { | |
| 217 | - $url = $urlManager->createAbsoluteUrl( | |
| 218 | - [ | |
| 219 | - 'catalog/category', | |
| 220 | - 'category' => $category, | |
| 221 | - 'filters' => [ $group->lang->alias => [ $option->lang->alias ] ], | |
| 222 | - ] | |
| 223 | - ); | |
| 224 | - $this->createRow($url, 0.8); | |
| 216 | + if($group->is_filter && $group->meta_robots != 'noindex,nofollow'){ | |
| 217 | + foreach ($group->taxOptions as $option) { | |
| 218 | + $url = $urlManager->createAbsoluteUrl( | |
| 219 | + [ | |
| 220 | + 'catalog/category', | |
| 221 | + 'category' => $category, | |
| 222 | + 'filters' => [ $group->lang->alias => [ $option->lang->alias ] ], | |
| 223 | + ] | |
| 224 | + ); | |
| 225 | + $this->createRow($url, 0.8); | |
| 226 | + } | |
| 225 | 227 | } |
| 228 | + | |
| 226 | 229 | |
| 227 | 230 | } |
| 228 | 231 | } | ... | ... |