Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of obtaining Infinite column subclassification in DEDECMS

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces the method of getting infinite column sub-classification in DEDECMS, which is very detailed and has certain reference value. Friends who are interested must read it!

How to get infinite column subcategories in DEDECMS?

Most corporate websites use DEDECMS. Today, when designing websites for customers, we encountered a small problem after completing the DEDE automatic inner chain and URL spelling format. Because there are at most four levels of product classification, customers require a pop-up menu on the left to call all levels of sub-classification, while DEDECMS can only call first-level classification by default. After hard work, Baidu + GOOGLE+ own head, finally took care of this thing, do not dare to enjoy it alone, sent out to share with friends in need.

First, modify the code of the / include/taglib/channerl.lib.php file to the following:

The code is as follows:

In the template with [field:sonchannel0] [/ field:sonchannel0] call, this is used to get the sub-column (use [sonchannel+ number] as the signature is to prevent nested tags can not be parsed correctly), the role of this is when your column has a lot of unlimited sub-columns to facilitate you to get sub-columns. Give me an example:

The code is as follows:

{dede:channel type='son' typeid='16'} [field:typename/] [field:sonchannel0] [field:typename/] [field:sonchannel1] [field:typename/] [field:sonchannel2] [field:typename/] [field:sonchannel3] [field:typename/] [/ field:sonchannel3] [/ field:sonchannel2] [/ field:sonchannel1] [/ field:sonchannel0] {/ dede:channel} above is not obtained in DEDECMS All the contents of the method of limiting the subclassification of column items Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report