In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces the realization of dedecms links sub-column call 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 achieve dedecms links sub-column call?
In fact, using object and javascript to call external files can also achieve different columns to call different links, that is, it is equivalent to calling different column links, {dede:field.typeid/} to get the ID of the current column. When calling a friendship link through this method belongs to chain deception, it is not recommended. Dedecms tags cannot be applied (except Channelartlist), which brings some trouble to the implementation, but there is another tag that can help: sql tags, as follows:
1. Background-core-website column management, record column name and column ID.
2. Background-module-friendly link-website type management, edit website type, make website type name, ID and column name, ID consistent.
3. In the column template, write the following code:
Dede:sql sql= "select url,webname from dede_flink where id = (select id from dede_flinktype where typename=~typename~)"} [field:webname/] {/ dede:sql}
4. As for the home page link, you can add a "home page" directly to the site type management, and then add the typeid=' site type ID' directly to the home page template.
The great task has been completed! It's simple, but I can't find it on the Internet. This situation is suitable for the use of sites with few columns, if more appears to be a bit stupid, through the secondary development of php can also be achieved. Here is a simple share with you, backup.
Thank you for reading this article carefully. I hope the editor will share the method and content to call the dedecms links. At the same time, I also hope 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!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.