Empire CMS listshowclass loop column tag_PHP tutorial

WBOY
Release: 2016-07-13 10:33:23
Original
1606 people have browsed it

Basic syntax of cycle column navigation tags: [listshowclass] parent column ID, label template ID, whether to display the number of column information, and the number of displayed columns [/listshowclass]

Parameter description:

  • Parent column ID: '0' displays all first-level columns, 'selfinfo' displays subordinate columns of this column, and multi-column fixed calls can be opened with ",".
  • Tag template ID: tag template ID, template tag variable description: [!--bclassname--]: parent column name, [!--bclassurl--]: parent column link, [!--bclassid--] : Parent column id, [!--bclassimg--]: Parent column picture, [!--bintro--]: Parent column introduction, [!--bnum--]: Parent column information number, [!--bno --]: Parent column serial number. list.var template tag: [!--classurl--]: Column link, [!--classname--]: Column name, [!--classid--]: Column id, [!--classimg--]: Column picture, [! --intro--]: Column introduction, [!--num--]: Information number, [!--no--]: Serial number.
  • Whether to display the number of column information: 0 means not to display, 1 means to display.
  • Number of columns to display: 0 means no limit.

For example, the calling label is as follows: [listshowclass]'0',14,0,0[/listshowclass]

Instructions: To call all first-level column navigation, use the template with label template ID=14.

The label template is made as follows:

// 页面模板内容
<table width="120" align="center" border="0" cellpadding="3" cellspacing="1" bgcolor="ffcc00">
  <tr> 
    <td><b><a href="[!--bclassurl--]">[!--bclassname--]</a></b></td>
  </tr>
[!--empirenews.listtemp--]
<!--list.var1-->
[!--empirenews.listtemp--]
</table>
// 列表内容模板(list.var)
  <tr> 
    <td bgcolor="#FFFFFF"><a href="[!--classurl--]">[!--classname--]</a></td>
  </tr>
Copy after login

Use loop column navigation tags

// 页面模板内容
<table width="650" align="center" border="0" cellpadding="3" cellspacing="1" bgcolor="ffcc00">
  <tr> 
    <td><b><a href="[!--bclassurl--]">[!--bclassname--]</a> <font color="#666666">(信息数:[!--bnum--])</font></b></td>
  </tr>
  <tr> 
    <td bgcolor="#ffffff">
[!--empirenews.listtemp--]
<!--list.var1-->
[!--empirenews.listtemp--]
    </td>
  </tr>
</table>
// 列表内容模板(list.var)
<a href="[!--classurl--]">[!--classname--]</a> <font color="#666666">(信息数:[!--num--])</font>   
Copy after login

Similarities and differences between showclasstemp and listshowclass tags

One calls a column at one level, and the other calls a column at two levels.

showclasstemp calling effect:

栏目1
栏目2
栏目3
Copy after login

Listshowclass calling effect:

父栏目1
  子栏目1
  子栏目2
父栏目2
  子栏目3
  子栏目4
父栏目3
  子栏目5
  子栏目6
Copy after login

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/752500.htmlTechArticleBasic syntax of cycle column navigation tags: [listshowclass] parent column ID, label template ID, whether to display the number of column information, Number of columns to display[/listshowclass] Parameter description: Parent column ID: '0' means display...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!