【发布时间】:2015-05-26 14:21:53
【问题描述】:
我尝试让typo3 为所有新闻记录生成站点地图。为此,我尝试了 dd_googlesitemap_dmf 扩展。 dd_googlesitemap 有效(它为所有的typo3 页面创建了一个站点地图——但不适用于扩展)。我在配置中填写了基本信息并调用了 url ?eID=dd_googlesitemap&sitemap=dmf&selector=news,但我得到的只是一个空白页面(500 内部服务器错误)。
错误:
mod_fcgid: stderr: PHP Fatal error: Class 'tx_ddgooglesitemap_ttnews' not found in [..]/typo3conf/ext/dd_googlesitemap_dmf/class.tx_ddgooglesitemap_dmf.php on line 43
我在扩展中编辑了ext_typoscript_setup.txt,还尝试将打字稿直接添加到页面模板中。这是我使用的打字稿的版本(我改变的只是pidList和singlePid):
plugin.dd_googlesitemap_dmf {
# selector for your extension (same as GET selector=news)
news {
# uid is NECESSARY in the sqlSelect field
sqlMainTable = tx_news_domain_model_news
# if catList depends of column of sqlMainTable (Column name like city or country)
sqlCatColumn =
# if catList depends on sqlMMTable (Only works if uid_foreign and uid_local is in use)
sqlMMTable = tx_news_domain_model_news_category_mm
# order of the XML output
sqlOrder = tstamp DESC
# last modified timestamp column (inside of sqlMainTable)
sqlLastUpdated = tstamp
# sql column of the title
sqlTitle = title
# sql column of keywords
sqlKeywords = keywords
# frequency
frequency = 1
# typolink additionalParam (must belong to the uid of the sqlMainTable)
linkParams = tx_news_pi1[news]
# csv Pid's of the stored elements. Rootline is not checked with this setting
pidList = 66
# detail page id where the link should point at
singlePid = 103
# filter by category which is inside of the main table -> sqlCatColumn
catList =
# csv filter by mm related table -> sqlMMTable
catMMList =
# disable the language check through GLOBALS['TSFE']->sys_language_uid
disableLanguageCheck = 0
}
# sitemap eID urls for the crawler
crawler {
1 = http://beispiel.de?eID=dd_googlesitemap
# more than one sitemap
# 2 = http://beispiel.de?eID=dd_googlesitemap&more-configuration
}
}
有人有过这种扩展的经验或有好的替代方案吗?
这里是分机链接:
- http://typo3.org/extensions/repository/view/dd_googlesitemap
- http://typo3.org/extensions/repository/view/dd_googlesitemap_dmf
您不能在 repo 中的typo3 6.2 上安装 _dmf (Dependencies https://github.com/dohomi/dd_googlesitemap_dmf
【问题讨论】:
标签: typo3 sitemap typo3-6.2.x