当前位置:网站首页>Pbootcms template calls the tag ordinal number from 2 or automatic number
Pbootcms template calls the tag ordinal number from 2 or automatic number
2022-07-24 02:20:00 【Website construction shadow】
altogether 2 A label , One is the navigation tab , The other is the list label ,
pboot:nav label
First of all, let's get to know [nav:i], Indicates the serial number , from 1 Start
combination pbootcms Of if Judgment labels
{pboot:nav}
{pboot:if([nav:i]>1)}
<a href="[nav:link]">[nav:name]</a>
{/pboot:if}
{/pboot:nav} When more than 1 It starts to show , You can also adjust this judgment according to your actual needs .
num Parameters .
If you want to show the second to the second 5 individual , Navigation , Two ways : First of all , Add conditions to the judgment , Greater than 1 And less than or equal to 5;
Mode two , stay {pboot:nav} Add to label {pboot:nav num=5} that will do .
Another situation , stay pboot:list In the label .
This situation is simpler , The official has given the plan .
Only need list In the label , Join in start Parameters can be .

Call label writing
{pboot:list scode=1 start=2 num=5}
<a href= "[list:link]">[list:title]</a>
{/pboot:list}You can refer to it in turn to call and write code according to your own needs .
边栏推荐
- LoadRunner12安装、录制第一个脚本以及代理服务器没有响应解决
- [C language operation of linked list (initialization, establishment, length calculation, addition, deletion, and output of linked list)]
- Async await details & Promise
- Express operates mysql. What is wrong with the SQL?
- Codeworks 5 questions per day (average 1500) - day 23
- Small volume stock trading record | based on multi task crawler technology, realize level1 sampling of A-share real-time market
- View binding confusion. I have been studying confusion for two days.
- View Binding 混淆问题。我两天都在研究混淆。
- Digital transformation behind the reshaping growth of catering chain stores
- 网络协议详解:TCP Part1
猜你喜欢

Small volume stock trading record | based on multi task crawler technology, realize level1 sampling of A-share real-time market

Network protocol details: UDP

Diablo king, analysis of low illumination image enhancement technology

Use of component El scrollbar

Local empowerment learning

认识传输层协议—TCP/UDP

How CAD draws arrows with arcs

canvas-绘图(鼠标按下 绘制 抬起 结束)

Distributed resource management and task scheduling framework yarn
深入理解微信小程序的底层框架(二)组件系统、Exparser
随机推荐
C -- bit operation
regular expression
Leetcode 70 climbing stairs, 199 right view of binary tree, 232 realizing queue with stack, 143 rearranging linked list
图解数组和链表详细对比,性能测试
Visual full link log tracking
毕业设计校园信息发布平台网站源码
JDBC tool class
深入理解微信小程序的底层框架(二)组件系统、Exparser
pbootcms模板调用标签序数从2开始或者自动数开始
What's new in the ranking list in July? This language is invincible?
Upload files to flash file system through Arduino IDE
浅谈领域驱动设计
Try to run this command from the system terminal Make sure that you use the correct
View binding confusion. I have been studying confusion for two days.
[Luogu] p1318 ponding area
Halide:: generator instructions
5年接触近百位老板,身为猎头的我,发现升职的秘密不过4个字
Today's code farmer girl learned about the express framework under node
Responsive layout a web page displays different effects on different devices) meta:vp
利用宝塔面板计划任务执行自动推送网址到百度收录