PHPCMS What does the num parameter mean?
In the PHPCMS V9 system, the num parameter in the PC tag supports custom data. You can specify the number of pages when calling in a loop. Compared with other CMS, this is more free. , humane, you can also use the num parameter to display various lists.
Usage example
{pc:content action="lists" catid="67" order="listorder DESC" num="2" thumb="1"} {loop $data$r} {php $num++}
Actually, this code is the home page calling method in the default template of phpcms. I just modified it slightly to determine the css style.
In addition {if $num%2==0} can also use the list page to make horizontal lines or other things appear "every few lines", for example:
The code is as follows:
{if$n%5==0}
This code means that every 5 lines, a horizontal li tag appears.
Recommended tutorial: "PHPCMS Tutorial"
The above is the detailed content of What does the PHPCMS num parameter mean?. For more information, please follow other related articles on the PHP Chinese website!