In my Magento CE- store I set the meta robots tag for all my products pages like so In my layout.xml file :

<reference name="head">
    <action method="setRobots"><value>NOINDEX,NOFOLLOW</value></action>

So for all products with the attribute set of custom I set the NOINDEX, NOFOLLOW tags to stop them being indexed/crawled.

However I now need to change this to INDEX, NOFOLLOW to some of these products on a product by product basis.

I have tried putting the below into Design > Custom Layout Update in the product page in admin:

<reference name="head">
    <action method="setRobots"><value>INDEX,NOFOLLOW</value></action>

But the product is still keeping the value set in my local.xml. I have cleared the cache and reindexed to be sure.

Is this because layout.xml is loaded last so whatever I put in the custom layout update section in admin is pointless?

How can i override local.xml?

| improve this question | | | | |
  • I've done what is in that answer but it does not work – odd_duck Sep 21 '16 at 12:45
  • 1. Then why did you accept the answer if it didn't work. 2. There is an other answer in there that could work. – Marius Sep 21 '16 at 14:32