当前位置:物业房屋租赁管理系统平台 > 租房子 >

彻底解决织梦V5.6 Tag 模板文件不存在,无法解析文档

时间:2012-10-30 16:15    来源:未知    作者:admin    点击:

织梦后台的模版功能块里增加tag.htm和taglist.htm这两个模版。

【tag.htm模版内容如下:】
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={dede:global.cfg_soft_lang/}" />
<title>{dede:field.title/}_{dede:global.cfg_webname/}</title>
<meta name="keywords" content="{dede:field name='keywords'/}" />
<meta name="description" content="{dede:field name='description' function='html2text(@me)'/}" />
<link href="{dede:global.cfg_templets_skin/}/style/common.css" rel="stylesheet" media="screen" type="text/css" />
</head>
<body class="tagspage">
{dede:include filename="head.htm"/}
 <div class="w960 clear center mt8">
   <div class="tagslistt"><h2>TAG标签</h2></div>
  <div class="tagslist"><div class="inner">
      <div class="title">  <div class="subjectt"><h3>最新标签</h3></div>  </div>
       <div class="data">
     <div class="taglist2">
     <ul>
      {dede:tag row='60' sort='new'}
             <li><a href='[field:link/]' class='tagc[field:highlight /]'>[field:tag /]</a></li>
            {/dede:tag}
     </ul>
     </div>
       </div>
  </div></div>
 
 <div class="tagslist"><div class="inner">
    <div class="title">  <div class="subjectt"><h3>当月热门</h3></div>  </div>
       <div class="data">
     <div class="taglist2">
     <ul>
      {dede:tag row='60' sort='month'}
            <li><a href='[field:link/]' class='tagc[field:highlight /]'>[field:tag /]</a></li>
            {/dede:tag}
     </ul>
     </div>
       </div>
  </div></div>
 
 <div class="tagslist"><div class="inner">
    <div class="title">  <div class="subjectt"><h3>随机标签</h3></div>  </div>
       <div class="data">
     <div class="taglist2">
     <ul>
      {dede:tag row='100' sort='rand'}
            <li><a href='[field:link/]' class='tagc[field:highlight /]'>[field:tag /]</a></li>
            {/dede:tag}
     </ul>
     </div>
       </div>
  </div></div>

 </div>
{dede:include filename="footer.htm"/}
<!-- /footer -->

</body>
</html>
 

【taglist.htm模版内容:】
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={dede:global.cfg_soft_lang/}" />
<title>{dede:field.title/}_{dede:global.cfg_webname/}</title>
<meta name="keywords" content="{dede:field name='keywords'/}" />
<meta name="description" content="{dede:field name='description' function='html2text(@me)'/}" />
<link href="{dede:global.cfg_templets_skin/}/style/common.css" rel="stylesheet" media="screen" type="text/css" />
</head>
<body class="articlelist">
{dede:include filename="head.htm"/}
<!-- /header -->
<div class="w960 center clear mt8">
 <div class="list_article_left">
  <div class="place">
   <strong>当前位置:</strong>:<a href="{dede:global.cfg_cmsurl/}/">首页</a> > <a href='tags.php'>TAG标签</a> > {dede:field.title /}
  </div><!-- /place -->
  <div class="articlelist mt8">
   <ul class="e2">
{dede:list orderby='sortrank' pagesize='10'}
    <li>
          [field:array runphp='yes']@me = (empty(@me['litpic']) ? "" : "<a href='{@me['arcurl']}' class='preview'><img src='{@me['litpic']}'/></a>"); [/field:array]
     <a href="[field:arcurl/]" class="title">[field:title/]</a>
     <span class="info">
      <small>日期:</small>[field:pubdate function="GetDateTimeMK(@me)"/]
      <small>点击:</small>[field:click/]
      <small>好评:</small>[field:scores/]
     </span>
     <p class="intro">
      [field:description/]...
     </p>
    </li>
{/dede:list}
   </ul>
  </div><!-- /listbox -->
  <div class="dede_pages">
   <ul class="pagelist">
             {dede:pagelist listitem="info,index,end,pre,next,pageno" listsize="5"/}
   </ul>
  </div><!-- /pages -->
 </div><!-- /pleft -->
 
 <div class="list_article_right">
  <div class="lar"><div class="inner">
   <div class="title">  <div class="subject"><h3>推荐内容</h3></div>  </div>
    <div class="data">
  <div class="datalist">
  <ul>
           {dede:arclist flag='c' titlelen='36' row='6'}
           <li><a href="[field:arcurl/]">[field:title/]</a></li>
     {/dede:arclist}
  </ul>
  </div>
    </div>
  </div></div>
  
  <div class="lar"><div class="inner">
   <div class="title">  <div class="subject"><h3>热点内容</h3></div>  </div>
    <div class="data">
  <div class="datalist">
   <ul>
        {dede:arclist row='10' titlelen='36' orderby='click'}
         <li><a href="[field:arcurl/]">[field:title/]</a></li>
        {/dede:arclist}
      </ul>
  </div>
    </div>
  </div></div>

 </div>
</div>
{dede:include filename="footer.htm"/}
</body>
</html>
 

增加好2个模版生成一下,基本就可以了,然后根据自己网站的情况对以上2个模版做些调整

 


深圳市老房管科技有限公司版权所有 © 粤ICP备2021082604号
联系电话:0755-25497702