1

I want to implement NoFollow and NoIndex for every item in Sitecore but I am using SXA. Problem is there is no common template inherited among all of the items. Is there any way I can implement the same functionality using the checkbox field?

2
  • You want to have <meta name="robots" content="noindex"> in your pages? Mar 18, 2019 at 11:54
  • @PeterProcházka Yes, if the checkbox "NoIndex" is selected meta value should change like that.
    – PSS
    Mar 18, 2019 at 12:03

1 Answer 1

4

One way you could do it:

  1. create a base template with the checkbox(es) you want
  2. add this base template to all project templates needed
  3. create a (custom) rendering that has the meta tag as output based upon the checkboxes (include the necessary checks in case those are not present)
  4. add the rendering to the Meta partial design (which probably is already included in all page designs)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.