vierwd / typo3-googlesitemap
支持多语言(在不同域名上)和数据库条目URL的Sitemap.xml实现
1.3.0
2018-09-28 15:28 UTC
Requires
- php: >=5.5.0
- typo3/cms-core: ^6.2 || ^7.6 || ^8.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^1.13
- nimut/testing-framework: ^1.1
- phpunit/phpunit: ^4.7
Replaces
- vierwd/vierwd_googlesitemap: 1.3.0
- vierwd_googlesitemap: 1.3.0
README
Sitemap.xml实现,支持多语言(在不同域名上)和数据库条目URL。
入门指南
使用composer require 'vierwd/typo3-googlesitemap'
进行安装,并在扩展构建器中启用。
如果您使用的是realurl,则Sitemap在http://www.example.com/sitemap.xml处可用,并且存在http://www.example.com/robots.txt的robots.txt文件。
如果您使用域名切换语言,您的不同域名将具有不同的Sitemap。
数据库条目链接
您可以在TypoScript中配置数据库条目的链接。
plugin.tx_vierwdgooglesitemap.sitemap.settings.additionalLinks {
products {
records {
table = tt_news
select {
pidInList = 17
andWhere = sys_language_uid=0
languageField = 0
}
}
typolink {
parameter = 20
additionalParams = &tx_ttnews[tt_news]={field:uid}
additionalParams.insertData = 1
useCacheHash = 1
mergeWithLinkhandlerConfiguration = 1
}
}
}