属性列表
代码 |
名称 |
备注 |
name |
缓存名称 |
zh.list.product |
table |
表格 |
product,picture,news,download,list,lijke,tage 等 |
sort |
排序 |
DESC/ASC |
begin |
开始读位置 |
0 开始第1条数据读取 |
rows |
数量 |
12 |
where |
sql语法 |
|
as |
$vo |
覆值变量 |
调用案例一
<div class="footer">
友情连接:
{exhibition name="links" table="links" sort="ASC" begin=0 rows="20" as=$vo }
<a target="_blank" href="{$vo.eurl}">{$vo.eurlname}</a>
{/exhibition}
</div>
调用案例二
{content name="" sort=ASC template="news" begin=0 rows='8' where=" " as=$vo }
<ul class="left_news">
<li>
<a style="white-space: nowrap; overflow: hidden;text-overflow: ellipsis; width: 200px;" href="{@jmp($vo.static_url)}" title="{$vo.name}">{$vo.name}</a>
</li>
</ul>
{/content}
调用案例三
<div class="tags_box">
<div class="container">
<span class="tags_title"><a href="{@jmp('tagsall')}" role="button">全部标签</a></span>
<button id="tags_btn" class="glyphicon glyphicon-plus" aria-hidden="true"></button>
<span class="tags_rows">
{exhibition name="zh.tags" table="tags" sort="ASC" begin=0 rows=20 as=$vo}
<a role="button" href="{@jmp(tags,[i=>$vo.id])}">{$vo.ename}</a>
{/exhibition}
</span>
</div>
</div>