vierwd/typo3-googlesitemap

支持多语言(在不同域名上)和数据库条目URL的Sitemap.xml实现

安装: 392

依赖: 0

建议者: 0

安全: 0

星标: 0

关注者: 2

分支: 0

开放问题: 0

类型:typo3-cms-extension

1.3.0 2018-09-28 15:28 UTC

This package is auto-updated.

Last update: 2024-08-28 02:18:46 UTC


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
		}
	}
}