The method of changing dede friendly links into drop-down
This article mainly introduces the modification of dede links into a drop-down method, has a certain reference value, friends in need can refer to. I hope you will learn a lot after reading this article. Next, let the editor take you to learn about it.
How to change the dede link to a drop-down?
Change the dede link to a drop-down
Recommended study: dream weaving cms
Change dedecms links to drop-down links, change to drop-down links can not only be classified clearly, but also look simple and save space if there are many connections. However, such links are not recognized by search engines.
Let's talk about the method:
Step one:
Open flink.lib.php under include\ taglib and change [field:link /] to [field:link /]
And then set line 46
$link = ".cn _ substr ($dbrow- > webname,$titlelen)."
Change to
$link = ".cn _ substr ($dbrow- > webname,$titlelen)."
You can also edit it directly through the template in the background of dedecms.
Step 2:
Modify the home page template
Change the original link {dede:flink row='24'/} to
-- Local website-- {dede:flink row='24' typeid='2' /}
That is, call the first and second categories of links respectively.
Thank you for reading this article carefully. I hope the editor will share and modify the drop-down method of dede links to be helpful to everyone. At the same time, I also hope that you will support us, pay attention to the industry information channel, and find out if you encounter problems. Detailed solutions are waiting for you to learn!