DEDECMS全站RSS只生成一个文件的修改方法


找到位于dede(同你的后台文件夹)文件夹下的makehtml_rss_action.php文件 然后找到 echo “完成所有文件更新!”;  在下面添加 echo “<a href=’/rss.xml’ target=’_blank’>浏览…</a>”; 这里是让你在生成成功后点击查看生成结果的   找到位于 include文件夹下的arc.rssview.class.php文件   然后找到 $murl = $GLOBALS[‘cfg_cmspath’].”/data/rss/”.$this->TypeID.”.xml”;  修改成 $murl = $GLOBALS[‘cfg_cmspath’].”/rss.xml”; 这里是修改路径让生成的rss.xml文件保存在根目录   向下找到$orwhere .= “And (arc.typeid in (“.GetSonIds($this->TypeID,$this->TypeFields[‘channeltype’]).”) )”; 删除整句   然后找到位于dede找到位于dede(同你的后台文件夹)下的templets文件夹打开里面的makehtml_rss.htm文件   然后找到<input name=”maxrecord” type=”text” id=”maxrecord” value=”50″ size=”8″>  修改数字50为你需要生成的条数也可以在后台生成的时候输入   如果你生成的rss.xml文件有错误  请打开根目录下面的templets文件夹下面的plus文件夹里面的rss.htm文件   然后找到<description><![CDATA[[field:description function=’html2text(@me)’/]]]></description>  修改成<description><![CDATA[[field:description/]]]></description>