首页模板文件名应为Index.html,可用所有通用标签。
静态模块默认模板文件名应为Page.html,可用所有通用标签和静态模块标签。
文章模块默认模板文件名应为ArticleList.html,可用所有通用标签和文章模块标签。
产品模块默认模板文件名应为ProductList.html,可用所有通用标签和产品模块标签。
下载模块默认模板文件名应为DownList.html,可用所有通用标签和下载模块标签。
文章展示页默认模板文件名应为Article.html,可用所有通用标签和文章展示页标签。
产品展示页默认模板文件名应为Product.html,可用所有通用标签和产品展示页标签。
下载展示页默认模板文件名应为Down.html,可用所有通用标签和下载展示页标签。
信息模块默认模板文件名应为Info.html,可用所有通用标签和信息模块标签。
留言模块默认模板文件名应为GBook.html,可用所有通用标签和留言模块标签。
留言表单请根据留言模型进行制作。
招聘模块默认模板文件名应为Job.html,可用所有通用标签和招聘模块标签。
搜索页默认模板文件名应为Search.html,可用所有通用标签和搜索页标签。
可以在搜索页中指定搜索页展示模板,模板参数用表单项SearchTemplate传递。
搜索表单部分示例如下:
<form id="form1" name="form1" method="get" action="{$SiteDir$}Search/">
<select name="SearchType" id="SearchType">
<option value="0">文章</option>
<option value="1">产品</option>
<option value="2">下载</option>
</select>
<input name="SearchStr" type="text" id="SearchStr" size="10" />
<input type="submit" name="button" id="button" value="搜索" />
</form>
假如搜索页需要体现搜索方式:
<form id="form1" name="form1" method="get" action="{$SiteDir$}Search/">
<select name="SearchType" id="SearchType">
<option value="0"{$If({$SearchType$},0,=)$} selected="selected"{$Else$}{$End If$}>文章</option>
<option value="1"{$If({$SearchType$},1,=)$} selected="selected"{$Else$}{$End If$}>产品</option>
<option value="2"{$If({$SearchType$},2,=)$} selected="selected"{$Else$}{$End If$}>下载</option>
</select>
<input name="SearchStr" type="text" value="{$SearchStr$}" id="SearchStr" size="10" />
<input type="submit" name="button" id="button" value="搜索" />
</form>
搜索页面结果部分示例如下:
{$If({$SearchType$},0,=)$}
<ul>
{$For(ArticleList,1/0/0/0/1/0/0/0)$} <li><a href="{$ArticleListUrl$}" title="
{$ArticleListTitle$}">{$ArticleListTitle$}</a></li>
{$Next$}
</ul>{$Else$}{$End If$}
{$If({$SearchType$},1,=)$}
<ul class="ImgList">
{$For(ProductList,1/0/1/0/1/0/0/0)$} <li><a href="{$ProductListUrl$}" title="
{$ProductListTitle$}"><img src="{$ProductListPic$}" /><br />{$ProductListTitle$}</a></li>
{$Next$}
</ul>
<div class="Cal"></div>{$Else$}{$End If$}
{$If({$SearchType$},2,=)$}
<ul>
{$For(DownList,1/0/1/0/1/0/0/0)$} <li><a href="{$DownListUrl$}" title="{$DownListTitle$}">{$DownListTitle$}</a></li>
{$Next$}
</ul>{$Else$}{$End If$}
<div id="Page">{$SearchPage$}</div>
专题页默认模板文件名应为Subject.html,可用所有通用标签和专题模块标签。
Copyright © 2009-2010, FangKa Studio. All rights reserved.