【问题标题】:google sitemap for tx_news records with dd_googlesitemap_dmf (or alternative)带有 dd_googlesitemap_dmf(或替代方法)的 tx_news 记录的谷歌站点地图
【发布时间】: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,还尝试将打字稿直接添加到页面模板中。这是我使用的打字稿的版本(我改变的只是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 中的typo3 6.2 上安装 _dmf (Dependencies https://github.com/dohomi/dd_googlesitemap_dmf

【问题讨论】:

    标签: typo3 sitemap typo3-6.2.x


    【解决方案1】:

    TYPO3 扩展新闻的当前版本本身提供了一个挂钩来为新闻记录生成站点地图。详情见https://docs.typo3.org/typo3cms/extensions/news/AdministratorManual/BestPractice/SitemapWithDdGoogleSitemap/Index.html

    【讨论】:

      【解决方案2】:

      我必须降级 dd_googlesitemap(现在使用 1.2.0)才能让 dd_googlesitemap_dmf 工作

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2016-01-04
        • 1970-01-01
        • 2018-03-23
        • 1970-01-01
        • 2011-11-26
        • 2016-07-31
        相关资源
        最近更新 更多