dede如何修正网站RSS的输出格式
dede如何修正网站RSS的输出格式
dede如何修正网站RSS的输出格式
找到位于后台文件目录下的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 value=”50″ size=”8″>
修正数字50为你需求生成的条数也可能在后台生成的时分输入。
假设你生成的rss.xml文件有谬误,请打开根目录下面的templets文件夹下面的plus文件夹里面的rss.htm文件,然后找到
<description><![CDATA[[field:description function='html2text(@me)'/]]]></description>
修正成
<description><![CDATA[[field:description/]]]></description>
在利用多站点支持时需设置绝对门路,rss的输出的时分会在绝对门路前多出一个域名,从而导致输出的url谬误。
需求修正/include/arc.rssview.class.php 就可能处理成绩
删除第33行的$GLOBALS['cfg_basehost'].
修正前:
$this->TypeFields['typelink'] = $GLOBALS['cfg_basehost'].$this->TypeLink->GetOneTypeUrl($this->TypeFields);
修正后:
$this->TypeFields['typelink'] = $this->TypeLink->GetOneTypeUrl($this->TypeFields);
以及第129行的$GLOBALS["cfg_basehost"].
修正前:
$row["fullurl"] = $GLOBALS["cfg_basehost"].$row["arcurl"];
修正后:
$row["fullurl"] = $row["arcurl"];