Solve the problem that the drop-down of phpcms navigation does not display
This article is about solving the problem that the phpcms navigation drop-down does not display. 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.
Does the phpcms navigation drop-down display?
PHPCMS navigation only displays the first level menu by default, how to display the second level menu? You just need to make some simple changes.
PHPCMS navigation modification to display the drop-down menu
As shown in the figure, add a second-level menu loop to the first-level menu.
{pc:content action= "category" catid= "$r ['catid']" num= "10" siteid= "$siteid" order= "listorder ASC"} {loop $data $rr} {/ loop} {/ pc}
You also need to set the columns that need to be displayed in the second-level menu to "Show in Navigation" in the background, otherwise they cannot be displayed.
Thank you for reading! So much for solving the problem of not displaying phpcms navigation drop-down. 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.