包含tt_news文章的XML站点地图

时间:2013-08-27 11:56:05

标签: typo3 sitemap tt-news xml-sitemap

目前我正在使用mc_googlesitemap。我已经读过,当使用“Google Sitemap for Contents”时,我可以在xml输出中包含tt_news文章。在documentation中,您有一个选项Table where the contents live,但这不适用于我。我只能选择“Google Sitemap for Contents”而不是“Selected Pages”。文档中没有这样的选项,如here所述。

我正在使用Typo3 4.7.10和mc_googlesitemap 0.4.2。

我也尝试了weeaar_googlesitemap但是在xml输出中我只看到了插件配置为显示其输出的页面本身。访问网络 - >由于已弃用的功能

,GoogleSitemap无效
  

致命错误:调用未定义的方法t3lib_div :: fixed_lgd_pre()in   /usr/home/xxx/typo3conf/ext/weeaar_googlesitemap/mod1/index.php   在第121行

我找到了this fix,但目前我无法调整源文件,因为我没有权限。

如何获取xml站点地图,该站点地图还可以显示某个类别的tt_news文章?

修改

我修复了已弃用的警告,我的TS如下所示(对于weaar站点地图):

#############################
# Sitemap
#############################
sitemap = PAGE
sitemap {
  typeNum = 200
  10 >
  10 < plugin.tx_weeaargooglesitemap_pi1
  10.pid_list = 1
  10.recursive = 0
  10.allowedDoktypes = 2,1,4
  10.domain = http://www.domain.com/
  10.tt_news.single_page {
    1 = 78
    1.pid_list = 77
  }
  10.tt_news {
    disabledParameter = day,month,year
  }

  config {
    disableAllHeaderCode = 1
    additionalHeaders = Content-type:text/xml
    no_cache = 1
    xhtml_cleaning = 0
  }
}

我有以下问题:

  • 隐藏页面显示在我的sitemap.xml中(没有允许doktype 5的页面)
  • tt_news文章未显示(我的配置有什么问题?)

说明:

10.pid_list = 1 // this is my main entry point  
10.tt_news.single_page.1 = 78 // this is my page id where the single view of tt_news resides  
10.tt_news.single_page.1.pid_list = 77 // this is my sysfolder where the news are placed  

我做错了什么?替代?

1 个答案:

答案 0 :(得分:1)

有一个名为tq_seo的扩展程序可以为您的TYPO3网站完成所有搜索引擎优化工具。它很容易但也很强大。

相关问题