nystudio107 / craft-seomatic

SEOmatic facilitates modern SEO best practices & implementation for Craft CMS 3. It is a turnkey SEO system that is comprehensive, powerful, and flexible.
https://nystudio107.com/plugins/seomatic
Other
162 stars 68 forks source link

Set Meta Robots value on per-entry basis #1452

Closed philipschilling closed 2 months ago

philipschilling commented 2 months ago

Question

I would like to set the meta robots value on per-entry basis. An example could be the privacy policy or legal pages where I would like to use noindex, follow instead of the site-wide setting index, follow. How can I do this?

Additional context

I am looking for something like setting a Source Field as for SEO Title, SEO Description or SEO Keywords under Content SEO > [[Select section]] > General. However, for the meta robots field I can only set a value per section and not per entry:

Screenshot 2024-04-08 at 18 24 30
khalwat commented 2 months ago

Add an SEO Settings field to the Section in question, and set it to allow them to override the Robots setting.

Then override the Robots setting on any pages you wish to exclude.

philipschilling commented 2 months ago

Many thanks. I didn't understand the documentation but now it is clear that SEO Settings is not a field but actually a field type which you can select when creating a new field:

Screenshot 2024-04-08 at 19 03 36
khalwat commented 2 months ago

Correct!