Reputation: 1089
this is not so much a development question, rather something (hopefully) to set in the backend. I want to set all my products (all configurable ones) within magento 1.7.0.2 to the meta-tag "noindex,nofollow".
But doing that for 450 products one after another is quite heavy. Isn't there an easier way to set the default value differently or to use phpmyadmin therefore?
Thanks
Upvotes: 0
Views: 1638
Reputation: 1089
So, for my thing this process worked out well:
1: Go to System > General > Design > Robots And set all pages globally to noindex,nofollow 2. Then - in my scenario - if you want to have categories though listed, then do that to the panel "Own design" exactly like @pankijs mentioned:
<reference name="head">
<action method="setRobots"><value>INDEX,FOLLOW</value></action>
</reference>
Upvotes: 1
Reputation: 2123
Maybe something like this would give you more flexibility:
http://inchoo.net/magento/per-product-meta-robots-tag-control-in-magento/
Then you could just write a simple script/query to set all (or a subset) products to NOINDEX,NOFOLLOW
.
Upvotes: 0
Reputation: 6893
you can edit your templates local.xml file to
<catalog_product_view>
<reference name="head">
<action method="setRobots"><value>NOINDEX,FOLLOW</value></action>
</reference>
</catalog_product_view>
for only configurable product use:
<PRODUCT_TYPE_configurable>
</PRODUCT_TYPE_configurable>
this will add meta tag you need for all products.
Upvotes: 0