WEB开发网
开发学院CMS教程其它CMS akcms一些标签,在模板中作站调用 阅读

akcms一些标签,在模板中作站调用

 2012-03-20 11:18:57 来源:WEB开发网   
核心提示:网站首页 ,page_home.htm网站名字: <{$v_sitename}><a href="/" target="_self">首页</a></li><{getcategories skipid=$v_skipcateg
网站首页 ,page_home.htm

网站名字: <{$v_sitename}>

<a href="/" target="_self">首页</a></li>

<{getcategories skipid=$v_skipcategory template="<li><a href=()/[path]/() target=()_self()>[category]</a></li>[n]"}>

分类条用:
<{getcategories skipid=$v_skipcategory template="<li id=()nav[categoryid]()><a href=()/[path]/()>[category]</a></li>[n]" expire="36000"}>

博客形式
<{getitems bandindex="1" orderby="id_reverse" page=$page timelimit="1" skipcategory=$v_skipcategory num="4" template="<div class=()postlist()><li class=()post-date()>[y]年[m]月[d]日</li><img src=()images/dot1.gif()> <a href=()[url]()>[title]</a><div class=()post-body()>[digest]</div><h5 class=()post-tags()>标签: [keywords]</h5><h6 class=()post-footer()>分类:<a href=()[categoryhomepath]/()>[category]</a> | 浏览:[pv] | 评论:[commentnum]</h6></div>"}>

<{getindexs page=$page template="分页:<a href=()/()>«</a> [indexs]<a href=()index-[last].htm()>»</a>" linktemplate="[link] " baseurl="index-[page].htm"}>

数据调用样式,可以任意按照ID 调用 查看馒头手册
<{getitems category="2" num="10" expire="3600" template="<li><a href=()[url]() target=()_blank()>[title]</a></li>"}>
<{getitems category="4" num="10" orderby="id" expire="3600" template="<li><a href=()[url]() target=()_blank()>[title]</a></li>"}>

搜索页面 ,search.htm

<title><{$keywords}>-<{$v_sitename}></title>

<form action="/akcms_search.php" name="searchform" id="searchform">
<input type="hidden" value="0" name="kwtype" />
<input class="searchtxt" id="keywords" name="keywords" />
<select id="searchtype" name="searchtype">
<option value="titlekeyword" selected="selected">智能模糊搜索</option>
<option value="title">仅搜索标题</option>
</select>
<input class="search" type="image" src="/images/so.gif" align="absmiddle" />
</form>
<strong>您所在的位置,search.htm:</strong><a href="/"><{$v_sitename}></a> >> 与<{$keywords}>相关的内容</div>

<{getitems keywords=$keywords orderby="id_reverse" num="50" template="<a href=()[url]()>[title]</a> (阅读:[pv]-)(评论:[commentnum])<span class=()smallfont()>([y]-[m]-[d] [h]:)</span>[digest] <a href=()[url]()>阅读全文</a>[n]<br>"}>

<{getindexs page=$page keywords=$keywords template="<a href=()page-1()>第一页</a>[indexs]<a href=()page-[last]()>最后一页</a>" linktemplate="[link] " baseurl="page-[page]"}></div>

上一页  1 2 3 4 5 6 7 8  下一页

Tags:akcms

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接