分析了一下makehtml_map.php?dopost=site这个文件,发现生成视图用的是dedetag.class.php文件,有点简单。不能使用织梦dedecms的很多标签,例如: {dede:arclist titlelen=25 row=25}[field:title/]{/dede:arclist
附:sitemap.htm模板(放在templets/plus/目录下)
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>网站地图_{dede:global.cfg_webname /}</title>
<meta name="description" content="{dede:global.cfg_description /}" />
<meta name="keywords" content="{dede:global.cfg_keywords /}" />
<style type="text/css">
body { font-family: Verdana; FONT-SIZE: 12px; MARGIN: 0; color: #000000; background: #ffffff; }
img { border: 0; }
li { margin-top: 8px; list-style: none; }
.page { padding: 4px; border-top: 1px #EEEEEE solid }
.author { background-color: #EEEEFF; padding: 6px; border-top: 1px #ddddee solid }
#nav, #content, #footer { padding: 8px; border: 1px solid #EEEEEE; clear: both; width: 95%; margin: auto; margin-top: 10px; }
</style>
</head>
<body vlink="#333333" link="#333333">
<div id="nav"><a href="/">首页</a> > 网站地图</div>
<div id="content">
<h3>最新文章</h3>
{dede:channelartlist typeid='all' row='100'}
<dl>
<dt><B><a href='{dede:field name='typeurl' /}'>{dede:field name='typename' /}</a></B></dt>
<dd> {dede:arclist titlelen='100' row='100' orderby='pubdate'}
<ul class='autod'>
<li><a href="[field:arcurl /]" title="[field:fulltitle /]" target="_blank">[field:title /]</a>([field:pubdate function="MyDate('m-d',@me)"/])</li>
</ul>
{/dede:arclist}
</dl>
{/dede:channelartlist} </div>
</body>
</html>