georgringer/news-seo

Indivdual indexing/robot information for each news article record

2.0.2 2023-05-22 13:08 UTC

This package is auto-updated.

Last update: 2024-02-15 19:55:47 UTC


README

This extension provides additional SEO features to EXT:news

  • Fields robots_index & robots_follow to control robot information per article and to override robot information of the page record
  • Image preview information max-image-preview (documentation)
  • Set canonical tag even if no_index is set on page level
  • Field for a canonical link

Backend record

Requirements

  • PHP 7.4+
  • TYPO3 10/11/12 with core extension "seo" installed
  • EXT:news 8.6/9/10/11

Installation

Either use composer require georgringer/news-seo or install the extension via Extension Manager.

Usage

Exclude news from sitemap

Add the following snippet to your TypoScript

plugin.tx_seo.config.xmlSitemap.sitemaps {
    # Important: the key might differ in your setup!
    news {
        config.additionalWhere = {#type} NOT IN(1,2) AND {#robots_index}=1 AND {#canonical_link}=''
    }
}

Robots tag

The robots tag is automatically generated by the extension

Thanks

The initial development of this extension has been paid by MENNEKES Elektrotechnik GmbH & Co. KG - www.mennekes.de ❤️Thanks a lot!