当前位置:网站首页>Pbootcms一级栏目下的二级三级栏目高亮
Pbootcms一级栏目下的二级三级栏目高亮
2022-07-26 20:43:00 【网站建设影子】
pbootcms的系统在内容详情页或者列表页的时候,如果文章所在的二级或者三级栏目的时候,这个没法来区别高亮,下边这个代码亲自测试可以正常高亮喔。
子栏目和子子栏目高亮都支持。
{pboot:nav parent={sort:tcode}}
<li>
<span><a href="[nav:link]" rel="nofollow">[nav:name]</a></span>
<dl>
{pboot:2nav parent=[nav:scode]}
<dt {pboot:if('[2nav:scode]'=='{sort:scode}')}class="active"{/pboot:if}><a href="[2nav:link]" class="san">- [2nav:name]</a></dt>
{/pboot:2nav}
</dl>
</li>
{/pboot:nav}高亮运用到的代码就是这串:
{pboot:if('[2nav:scode]'=='{sort:scode}')}class="active"{/pboot:if}高亮样式是class="active"
边栏推荐
- Difference between redis hash and string
- Why does it system need observability?
- [HCIA security] bidirectional nat
- MySQL -count: the difference between count (1), count (*), and count (column name)
- Summary of common interview questions of operating system, including answers
- Is it safe for Huishang futures to open an account? What should Huishang futures pay attention to when opening an account?
- encodeURI VS encodeURIComponent
- <button> 与 <input type=“button“ />
- Test cases should never be used casually, recording the thinking caused by the exception of a test case
- [question] browser get request with token
猜你喜欢

Niuke brush questions - MySQL series

Registration conditions for information system project managers in the second half of 2022 (soft examination advanced)

SPI配置

ECCV 2022 | 同时完成四项跟踪任务!Unicorn: 迈向目标跟踪的大统一

How to use multiple languages in a project?

About: get the domain controller of the current client login

JVM learning - memory structure - program counter & virtual machine stack & local method stack & heap & method area

Devops has been practiced for many years. What is the most painful thing?

七、微信小程序运行报错:Error: AppID 不合法,invalid appid

A unified label space for entity relationship extraction
随机推荐
encodeURI VS encodeURIComponent
【MySQL系列】-索引知多少
Solution to the problem of sticking and unpacking TCP
Is it safe for Huishang futures to open an account? What should Huishang futures pay attention to when opening an account?
Arm Mali GPU的噩梦:三星、华为纷纷转向自研!
Practice of microservice in solving Library Download business problems
2022开放原子全球开源峰会议程速递 | 7 月 27 日分论坛议程一览
How to use multiple languages in a project?
idea中debug时如何进入指定的用户方法体中?
25 cool interactive charts, one entry plotly
如何借助自动化工具落地DevOps|含低代码与DevOps应用实践
平滑滚动到元素
Set the template of core configuration file in idea
[question] browser get request with token
MySQL的JDBC操作及入门案例
2022 open atom global open source summit agenda express | list of sub forum agenda on July 27
Devsecops, speed and security
idea中检索此方法中有哪些参数以便我们使用——1.类图。2.双击shift
测试用例千万不能随便,记录由一个测试用例异常引起的思考
制作一个可调整大小的元素