联系电话:020-28187900

K9博客类网站页面设计--Tags列表页

发表时间:2012-08-22 阅读: 3233

列出含有该TAG的文章。如下图列出所有含有“K9”的文章。

列出含有该TAG的文章

TAGS页面调用标签代码:

{@res.select_join table1='%s_content' field1='id,title,url,description,comment,iscomment,date,image,keywords'table2='%s_content_tag_bind' table3='%s_content_archive' field3='dd' on='id' where="t1.status=1 and t2.tid={$info['tid']}"order='t1.id desc' url="{DIR}{$info['url']}" number='10'}
 {#foreach($res as $rs)}
<li><a href="{DIR}{$rs[url]}" class="img"><img src="{DIR}images/?id={$rs[image]}" width="50" height="50" /></a>
 <h3><a href="{DIR}{$rs[url]}">{$rs[title]}</a></h3>
   <p>{$rs[description]}</p>
   <a href="{DIR}{$rs[url]}" class="more">查看全文</a>
   {#if($rs['iscomment'])} - 
 <a href="{DIR}?content-comment&id={$rs[id]}&pid=1" class="comments">评论({$rs[comment]})</a>
   {#endif}
 <span>发布时间:<a href="{DIR}?content-archive&date={$rs[dd]}">{$rs[date] date='y-m-d  H:i'}</a></span>
 </li>
{#endforeach}
代码说明可参考《K9调用tag标签全解

转载请注明出处:唯众网络


相关教程 【更多】

唯众网络