Get the App
SLTechnology News&Howtos  ›  Servers  › 

The method of obtaining Infinite column subclassification in DEDECMS

Shulou Source: shulou.com Published: 2022-06-02 03:34:16 11月12日 Update

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!

Tags: Column classification code method content customer time website pop-up thing product value enterprise enterprise website function full spelling interest peer most example Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei vpn macOS Microsoft Shulou Tech Info