Home  >  Article  >  Backend Development  >  Empire CMS listshowclass loop column tag_PHP tutorial

Empire CMS listshowclass loop column tag_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 10:33:231585browse

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>

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>   

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

Listshowclass calling effect:

父栏目1
  子栏目1
  子栏目2
父栏目2
  子栏目3
  子栏目4
父栏目3
  子栏目5
  子栏目6

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...
Statement:
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