{config.webpath}/ 调用站点根目录路径

“{config.templateskin}/ 模板当前目录

SEO信息

<title>{config.webtitle}</title>
<meta content=”{config.webkeyword}” name=”keywords”>
<meta content=”{config.webdescription}” name=”description”>

插入头尾

<%template src=/_header.html/%>

<%template src=/_footer.html/%>

搜索

<input id=”keywords” name=”keywords” class=”input” type=”text” x-webkit-speech=”” autofocus=”” placeholder=”输入回车搜索” onkeydown=”if(event.keyCode==13){SiteSearch(‘{config.webpath}search.aspx’, ‘#keywords’);return false};” />
<input class=”submit” type=”submit” value=”搜索” onclick=”SiteSearch(‘{config.webpath}search.aspx’, ‘#keywords’);” />

http://127.0.0.1/news.aspx

http://127.0.0.1/news_list.aspx?category_id=1

http://127.0.0.1/news_show.aspx?id=73

当前分类名称 {category_title}

新闻列表页循环

<ul class=”news_list”>

<%set (DataTable){news_list}=get_news_list(channel_id, category_id, 10, page, “”, out totalcount)%> <!–取得一个DataTable–>
<%set (string){pagelist}=get_page_link(10, page, totalcount, “news_list1”, category_id, “__id__”)%> <!–取得分页页码列表–>
<%loop listdr news_list%>

<li>

列表页调用栏目分类

<%set (DataTable){category_list1}=get_category_child_list(channel_id, 0)%>
<%loop cdr1 category_list1%>

<li>

<h4><a href=”<%linkurl(“news_list”,{cdr1[id]})%>”>{cdr1[title]}</a></h4> 一级栏目名称

<div class=”list”>

<%set (DataTable){category_list2}=get_category_child_list(channel_id, {strtoint({cdr1[id]})})%>
<%loop cdr2 category_list2%>
<%if {strtoint({cdr2[id]})}=={category_id}%>
<a href=”<%linkurl(“news_list”,{cdr2[id]})%>” class=”current”>{cdr2[title]}</a>
<%else%>
<a href=”<%linkurl(“news_list”,{cdr2[id]})%>”>{cdr2[title]}</a>
<%/if%>
<%/loop%>

</div>

</li>

<%/loop%>

单独调用一级栏目列表

<%set (DataTable){category_list1}=get_category_child_list(channel_id, 0)%>
<%loop cdr1 category_list1%>
<LI>

<a class=”customTree_root” href=”<%linkurl(“news_list”,{cdr1[id]})%>”>{cdr1[title]}</a>

</LI>
<%/loop%>

发表评论

共有 0 条评论