Which fi开发者_运维知识库le would I look in to add nofollow tags to my layered navigation?
Found it:
/app/design/frontend/default/YOURTEMPLATENAME/template/catalog/layer
Yes,like magento 1.4*,pp/design/frontend/default/base/YOURTEMPLATENAME/template/catalog/layer modify the filter.phtml,state.phtml to add nofllow tags. That is!
open or create app/design/frontend/<package>/<theme>/layout/local.xml
and add the following XML information:
<catalog_category_layered>
<reference name="head">
<action method="setRobots"><meta>NOFOLLOW</meta></action>
</reference>
</catalog_category_layered>
<catalog_category_layered_nochildren>
<reference name="head">
<action method="setRobots"><meta>NOFOLLOW</meta></action>
</reference>
</catalog_category_layered_nochildren>
This will set NOFOLLOW to your meta tag robots in the head of the layered navigation page.
精彩评论