标签:list 循环块(搜索页)

循环显示搜索结果列表。
该标签不做任何显示作用,只用做界定HTML代码循环的范围。
该标签在页面内只能使用一次。

参数 描述
ColumnUrl 文章所属栏目的连接地址。
Column 文章所属栏目的名称。
ArticleUrl 文章的连接地址。
ArticleTitle 文章的标题。
Time 文章的发布时间。
Comment 文章的评论总数。
Summary 文章的摘要。
Author 文章的作者。
View 文章的浏览总数。
Icon 文章的类型图标。

调用范例[1]:

只显示文章的标题

<table>   <!-- list Begin -->   <tr>    <td><a href="{$ArticleUrl$}">{$ArticleTitle$}</a></td>   </tr>   <!-- list End --> </table>

调用范例[2]:

显示文章的标题和所属栏目

<table>   <!-- list Begin -->   <tr>    <td><a href="{$ColumnUrl$}">{$Column$}</a>&nbsp;<a href="{$ArticleUrl$}">{$ArticleTitle$}</a></td>   </tr>   <!-- list End --> </table>

调用范例[3]:

显示文章的标题、作者、时间和摘要

<table>   <!-- list Begin -->   <tr>    <td><a href="{$ArticleUrl$}">{$ArticleTitle$}</a>&nbsp;作者:{$Author$}&nbsp;{$Time$}</td>   </tr>   <tr>    <td>{$Summary$}</td>   </tr>   <!-- list End --> </table>