Diguo CMS listshowclass loop column label

Source: Internet
Author: User

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

Parameter description:

  • Parent topic ID: '0' indicates that all level-1 columns are displayed. 'selfinfo' indicates lower-level columns of this topic, and multiple columns are available for fixed calls.
  • Tag template ID: Tag template ID, template tag variable Description :[! -- Bclassname --]: parent topic name ,[! -- Bclassurl --]: parent Topic Link ,[! -- Bclassid --]: parent topic id ,[! -- Bclassimg --]: parent topic image ,[! -- Bintro --]: parent topic introduction ,[! -- Bnum --]: number of parent columns ,[! -- Bno --]: the serial number of the parent topic. List. var template Tag :[! -- Classurl --]: Topic Link ,[! -- Classname --]: topic name ,[! -- Classid --]: topic id ,[! -- Classimg --]: topic image ,[! -- Intro --]: topic introduction ,[! -- Num --]: Number of information ,[! -- No --]: sequence number.
  • Whether to display the number of columns: 0 is not displayed, 1 is displayed.
  • Number of displayed columns: 0 is unlimited.

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

Note: Call the navigation of all level-1 columns and use the tag template ID = 14.

The tag template is created as follows:

// Page Template content <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 content template (list. var) <tr> <td bgcolor = "# FFFFFF"> <a href = "[! -- Classurl --] "> [! -- Classname --] </a> </td> </tr>

Use the cycle column navigation label

// Page Template content <table width = "650" align = "center" border = "0" cellpadding = "3" cellspacing = "1" bgcolor = "ffcc00"> <tr> <td> <B> <a href = "[! -- Bclassurl --] "> [! -- Bclassname --] </a> <font color = "#666666"> (number of messages :[! -- Bnum --]) </font> </B> </td> </tr> <td bgcolor = "# ffffff"> [! -- Empirenews. listtemp --] <! -- List. var1 --> [! -- Empirenews. listtemp --] </td> </tr> </table> // list content template (list. var) <a href = "[! -- Classurl --] "> [! -- Classname --] </a> <font color = "#666666"> (quantity :[! -- Num --]) </font>
Similarities and differences between showclasstemp and listshowclass labels

One calls one level column, and the other calls two levels of columns.

Showclasstemp call results:

Column 1 column 2 column 3

Effect of listshowclass call:

Parent column 1 sub column 1 sub Column 2 parent Column 2 sub column 3 sub column 4 parent column 3 sub Column 5 sub column 6

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.