Drupal 默认的RSS.xml文件

drupal 默认的rss.xml文件,位于网站根目录下面,默认的情况下,它只包含发表在首页的内容,其它的文章,它是不包含的。

为了搞清楚状况,在drupal目录下面search了这个字符串:rss.xml,在这里发现了原因:

文件: modules\node\node.module.

这个函数:function node_page_default() 里设定了只有在首页才加入RSS.xml

不想改原来的代码了,于是找到了这个模块:

它会自动生成一个sitemap.xml的文件,把它提交给相关网站就OK啦。

 

This entry was posted in Program and tagged , . Bookmark the permalink.

发表评论

电子邮件地址不会被公开。 必填项已用*标注

您可以使用这些HTML标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>