georgringer/news-redirect-slug-change

如果slug发生变化,则生成重定向

1.2.0 2023-07-31 12:36 UTC

This package is auto-updated.

Last update: 2024-08-31 00:41:32 UTC


README

TYPO3 11 TYPO3 10 Donate

TYPO3 扩展 news_redirect_slug_change

此扩展会在slug更改时为EXT:news记录生成重定向。

设置

像其他扩展一样安装此扩展。

  • 使用 composer req georgringer/news-redirect-slug-change
  • 稍后将上传到TER

配置

唯一需要配置的是用作详细页面的页面。这可以通过PageTsConfig中的tx_news.redirect.pageId = 456或网站配置来完成。下面是完整的示例。

settings:
   redirectsNews:
     # Detail page id which can be overruled py pageTsConfig tx_news.redirect.pageId = 456
     pageId: 123
     # Automatically create redirects for news with a new slug (works only in LIVE workspace)
     # (default: true)
     autoCreateRedirects: true
     # Time To Live in days for redirect records to be created - `0` disables TTL, no expiration
     # (default: 0)
     redirectTTL: 30
     # HTTP status code for the redirect, see
     # https://mdn.org.cn/en-US/docs/Web/HTTP/Redirections#Temporary_redirections
     # (default: 307)
     httpStatusCode: 307

感谢

如果您在您的项目或客户中使用了此扩展,请考虑赞助此扩展。

谢谢!