Include some basic SEO options to core
Every websites benefits from a good SEO and therefor I think it is good to have some extra options in the core. At the moment there are several extensions adding properties to pages to make it possible to set some meta tags for Search Engine Optimization. By adding this to core, we help TYPO3 to provide more SEO options out of the box. Normally I’m not a big fan of adding a lot of functions like this to core, but because SEO is such an important part of your website I think in this case it is good to do it.
Fields to add
- SEO title => a title that differs from page title and navigation title and is used for the
- Canonical URL => a field to set the canonical URL of the page. When filled, it will add the
<link rel="canonical">tag with the
hrefattribute filled with the given URL. If the field is empty, it will return the URL of the current page.
- robot instructions => a field to make it possible to set the
<meta name="robots">tag. Possible options:
index,follow. The default value should be
- OG-tags => Add option to set separate title, description and image when shared on Facebook (and other OG-tag based social networks)
- Twitter cards-tag => Add option to set separate title, description and image when page is shared on Twitter
- href-lang => Not a field in backend, but automatically set
<link rel="alternate">tag when other languages are available for this page
Because this are new fields for core, I think a migration isn’t needed. However I think we should recommend SEO-extension-developers to migrate to these fields in stead of using own fields.
- No extensions needed for these basic SEO options
- TYPO3 will be more SEO-friendly out of the box
- When you have installed a SEO extension providing these tags, it would be possible that tags are rendered twice. If everyone uses the new Metatags API (https://forge.typo3.org/issues/81464), it is possible to check if a specific metatag is already set.
Remarks and notes
When we have any SEO questions, we can check with the guys of Yoast. We can write the code as part of the Yoast project and move it from extension to core.