The method of using the third-level column under the second-level column in the dream-weaving cycle
This article is to share with you about the method of dream weaving cycle calling the third-level column under the second-level column. The editor thought it was very practical, so I shared it with you as a reference. Let's follow the editor and have a look.
Dream weaving how to cycle the second-level column under the third-level column?
Dream weaving (dedecms) cycle calls the third column under the second level column.
Recommended study: dream weaving cms
A column has been built in the background. For the product display bar, it was written as follows:
{dede:channelartlist cacheid='channelsonlist' typeid=3} {dede:field name='typename'/} {dede:channel type='sun' row='10' noself='yes'} [field:typename/] {/ dede:channel} {/ dede:channelartlist}
If you use the above code, the display of the foreground page will not be satisfactory. For secondary directories with subclasses, their subclasses will be displayed correctly, and those without subclasses will display a list of their kind.
Such a result is really puzzling.
Next, the second code is written as follows:
{dede:channelartlist typeid=3} {dede:field name='typename'/} {dede:sql sql='Select * from `dede_ arctype` where reid=~id~ ORDER BY id'} [field:typename/] {/ dede:sql} {/ dede:channelartlist}
The result, of course, should be what you want, as shown in the following picture.
In this case, if there is a subclass, it will be displayed, and if it is not, it will not be displayed.
Thank you for reading! On the dream cycle to call the second column under the third column method to share here, I hope the above content can be of some help to you, so that you can learn more knowledge. If you think the article is good, you can share it and let more people see it.