使用dd_googlesitemap_dmf(或替代方案)获取tx_news记录的google sitemap

时间:2015-05-26 14:21:53

标签: typo3 sitemap typo3-6.2.x

我尝试让typo3为所有新闻记录生成站点地图。为此,我尝试了dd_googlesitemap_dmf扩展。 dd_googlesitemap有效(它为所有拼写错误的页面创建了一个站点地图 - 但不是为扩展程序创建)。我在配置中填写了基本信息,并调用了网址?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

我在extention中编辑了the_xt_typoscript_setup.txt,并尝试将typoscript直接添加到页面模板中。以下是我使用的typoscript的版本(我更改的是pidListsinglePid):

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

任何人都有这种延伸的经验或者有一个很好的选择吗?

这是指向分机的链接:

你不能从repo(Dependencies< = 6.1.99)在typo3 6.2上安装_dmf,但github上的版本有效: https://github.com/dohomi/dd_googlesitemap_dmf

2 个答案:

答案 0 :(得分:1)

当前版本的TYPO3扩展新闻提供了一个钩子,用于生成新闻记录的站点地图。有关详细信息,请参阅https://docs.typo3.org/typo3cms/extensions/news/AdministratorManual/BestPractice/SitemapWithDdGoogleSitemap/Index.html

答案 1 :(得分:0)

我不得不降级dd_googlesitemap(现在使用1.2.0)以使dd_googlesitemap_dmf正常工作