📄 newclassloop.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>创力CMS 4.0 标签</title>
<link href="label.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
a {color:#fff;text-decoration: underline;}
a:hover {color:#fff; text-decoration: underline;}
-->
</style>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
<script type="text/javascript">
function CopyCode(textid) {
var body = document.getElementById(textid);
body.select();
window.clipboardData.setData('Text',body.value);
}
</script>
</HEAD>
<BODY>
<table width='600' align='center' cellpadding='0' cellspacing='1' class='border'>
<tr class='title'> <td align="center"> (频道)首页栏目循环智能标签介绍及示例</td></tr>
<tr class="tdbg"><td align="left">标签:<br>
【Cl_ClassLoop(module;topnum;infonum;channelid;classid;arrclassid;cols)】<br>
[Cl_Loop][/Cl_Loop]<br>
[ColTemplate]ColTemplateContent[/ColTemplate]<br>
[RowTemplate]RowTemplateContent[/RowTemplate]<br>
【/Cl_ClassLoop】</td></tr>
<tr class="tdbg"><td align="left">
参数说明:<br>
【Cl_ClassLoop(module;topnum;infonum;channelid;classid;arrclassid;cols)】<br>
这后面的参数值要用:来赋值,如<br>
module:article 或 module:soft,这个参数可为article、soft、photo、movie、product,默认为article,此参数不写时即取默认值。<br>
topnum:6,栏目个数,不指定时取默认值,默认值为6。<br>
infonum:8,栏目下的内容标题列表数,不指定时取默认值,默认值为8。<br>
channelid:channelid,不指定时为channelid<br>
classid:0,栏目ID值,不指定时为0,若想指定为当前栏目,需要赋值 classid:classid,这在调用子栏目时需要。<br>
arrclassid:0,循环栏目ID,当classid为0时可赋多个栏目ID值,用","隔开。<br>
cols:2,多个列换行,实际作用时,当不到cols的取值时,调用ColTemplateContent中的代码,<br>当cols为所取值时,高用RowTemplateContent中的代码。需要提醒的是,当代码为div时,版式会由css决定。<br>
[Cl_Loop][/Cl_Loop]一般为某栏目下的标题列表循环<br>
以上各参数都为可选,不使用时取默认值。<br></td></tr>
<tr class="tdbg"><td align="left">
代码示例:调取当前文章频道栏目(20个),每个栏目下显示标题列表(10条),两列换行显示。 <input type="button" value="复制代码内容" name="copy" onclick="CopyCode('example')"> <input type="button" onclick="window.close()" value="关闭窗口"><br>
<textarea cols="110" rows="22" name="example" id="example">
<div class="classloop">
【Cl_ClassLoop(classid:0;topnum:20;infonum:10;cols:2)】
<div class="loop_content">
<div class="right_title">
<span class="title_font">{$classname}</span>
<span class="title_more"><a href="{$classlinkurl}">more...</a></span>
</div>
<div class="right_content">
<ul>
[Cl_Loop]
<!--循环部分-->
<li>{$attribute} <a href="{$linkurl}" target="_blank">{$title}</a>({$hits})</li>
[/Cl_Loop]
</ul>
</div>
</div>
[ColTemplate]<div class="loop_middle"></div>[/ColTemplate]
[RowTemplate]</div><div class="classloop">[/RowTemplate]
【/Cl_ClassLoop】
</div>
</textarea>
<br></td></tr></table>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -