繁体   English   中英

typo3如何为dd_googlesitemap配置realurl

[英]typo3 how to configure realurl for dd_googlesitemap

我将realurl与dd_googlesitemap新闻扩展结合使用。 生成的新闻网址看起来像/company/news/news-detail/detail/News/8/2016/newstitle/ ,这是正确的格式。

但是在_dd_googlesitemap_中,该网址为/company/news/news-detail///newstitle/ 去除月份和月份的参数。 如何在realurl_conf.php配置站点地图新闻标记? 如果您需要一些代码段,请告诉我。

4.3.0版本中确实缺少此功能。 但是,我现在已修复它,它将集成在即将发布的5.0.0版本中。

由于尚无发布日期,因此有两种获取方法:

  1. 使用主版本https://github.com/TYPO3-extensions/news
  2. 用新的替代钩子,您可以在https://github.com/TYPO3-extensions/news/blob/master/Classes/Hooks/TxNewsSitemapGenerator.php中找到

此外,还需要一些配置:

    tx_ddgooglesitemap.tx_news {
      hrDate = 1
      hrDate {
        day = j
        month = n
        year = Y
      }
    }

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM