打开include/arc.archives.class.php
找到:
//设置全局环境变量
$this->Fields['typename'] = $this->TypeLink->TypeInfos['typename'];
@SetSysEnv($this->Fields['typeid'],$this->Fields['typename'...
DEDE系统默认只能是每个栏目生成RSS,可以利用自由列表创建全站RSS订阅内容更新整站.xml文档,步骤如下:
1,新建一个模版页面rss.htm 上传到网站模版目录,内容如下:
<?xml version="1.0" encoding="gb2312" ?>
<rss version="2.0">
<channel>
<title>{dede:global.cfg_webname/}</title>
<link>http://pic.banzhu.net</link>
<description>{dede:global.cfg_description/}</description>
<language>zh-cn</language>
<generator>{dede:global.cfg_webname/}</generator>
<webmaster>{dede:global.cfg_adminemail/}</webmaster>
{dede:arclist row='100' col='1' titlelen='100' orderby='pubdate'}
<item>
<link>http://pic.banzhu.net[field:arcurl/]</link>
<title><![CDATA[[field:title function='html2text(@me)'/]]]></title>
<author>[field:writer/]</author>
<category>[field:typename/]</category>
<pubDate>[field:pubdate function=strftime('%Y-%m-%d',@me)/]</pubDate>
<guid>http://pic.banzhu.net[field:arcurl/]</guid>
<description><![CDATA[[field:description function='html2text(@me)'/] ... <br /><b>文章分类</b>:[field:typename/]<br /><a href="http://pic.banzhu.net[field:arcurl/]" target="_blank">阅读全文</a> | <a target="_blank" href="http://pic.banzhu.net">斑竹图库</a> ]]></description>
</item>
{/dede:arclist}
</channel>
</rss>
2011-07-26 16:39
2011-07-26 16:01