In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces how DEDE calls the specified article ID to call specific documents, which can be used for reference by friends who need it. I hope you will learn a lot after reading this article. Next, let the editor take you to learn about it.
How does DEDE call a specified article ID to invoke a specific document?
It is practical to specify the id of an article to call a specific document in some cases. Here is an example for friends who need to know about it.
Web 'titlelen=100} [field:title/] {/ dede:arclist}
All you need to do is to add 'keyword=' tutorial Network' to arclist, which indicates the document that calls keyword to set up the site tutorial network. Similarly, there can be multiple values in the values of idlist and keyword. When you need to set multiple values, you only need to use the commas in English state to separate them.
The code is as follows:
{dede:global runphp= "yes"} global $dsql; $row=$dsql- > getOne ("select title from dede_archives where id=xxx"); @ me=$row ["title"]; {/ dede:global}
Get the content of the article
The code is as follows:
{dede:global runphp= "yes"} global $dsql; $row=$dsql- > getOne ("select body from dede_addonarticle where aid=xxx"); @ me=$row ["body"] {/ dede:global} Thank you for reading this article carefully. I hope it is helpful for everyone to share how DEDE calls the specified article ID to call specific document content. At the same time, I also hope that you can support it, 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.