Developer forum

Forum » Ecommerce - Standard features » Add noindex to specific products

Add noindex to specific products

Kasper Legarth
Reply

We have a client that wishes to add no index to some specific products? I can't seem to find any standard feature for this?
Is there a standard feature for this, or have somebody made a custom solution for this?

Thanks.
Kasper


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply
This post has been marked as an answer

Hi Kasper

It is not there currently.

It is super simple to add a custom product field and when that is set to true, add noindex to 

Dynamicweb.Frontend.Pageview.Current.Meta.AddTag("robots", "noindex");

Votes for this answer: 1
 
Davy Capiau
Reply

Hi Nicolai,

How would you exclude them from your sitemap.xml?

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

You can disable "Show in sitemap" that will remove the group from the sitemap.xml

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

But not for specific products

 

You must be logged in to post in the forum