georgringer / news-redirect-slug-change
如果slug发生变化,则生成重定向
1.2.0
2023-07-31 12:36 UTC
Requires
- georgringer/news: ^9 || ^10 || ^11
- typo3/cms-core: ^10.4 || ^11 || ^12.3
- typo3/cms-redirects: ^10.4 || ^11 || ^12.3
README
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
感谢
如果您在您的项目或客户中使用了此扩展,请考虑赞助此扩展。
- Paypal: https://www.paypal.me/GeorgRinger/20
- 或者如果您需要发票,请联系我
谢谢!