Home> CMS Tutorial> DEDECMS> body text

How to use the submenu label in the dedecms secondary menu

藏色散人
Release: 2019-12-28 09:27:25
Original
2359 people have browsed it

How to use the submenu label in the dedecms secondary menu

How to determine the submenu label in the dedecms secondary menu?

I recently worked on a project that required the use of the secondary menu of dedecms. In it, I needed to determine which first-level menus had submenus. Some of them would display pop-up drop-down boxes, and others would not. You can Use js to implement it, but if you haven’t used js for a long time, you will almost forget it, so you can simply use dedecms’ own tags to make a judgment. The code is as follows.

The code is as follows:

The itemindex is required for the top-level column. It is known that only the first column has a drop-down menu, and the itemindex is incrementally increased from 1, so when itemindex=1 It is the column that needs to display the secondary menu

The above is the detailed content of How to use the submenu label in the dedecms secondary menu. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!