Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to get the name of the topic to which the current information belongs in the Empire CMS list page

2025-01-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Editor to share with you how to get the title of the topic to which the current information belongs in the Empire CMS list page. I hope you will gain a lot after reading this article. Let's discuss it together.

This article mainly introduces the method of obtaining the topic name of the current information in the Imperial CMS list page. It is a very practical skill to obtain the topic name through SQL query and judgment combined with the array variables built into Imperial CMS. Friends who need it can refer to it.

How do I get the name of the topic to which the current information belongs in the Imperial CMS list page?

Check the program support code. Then add the following code to the template page:

The code is as follows:

/ / query whether there is a topic $zhuanti=$empire- > fetch2 ("select ztid,classid from {$dbtbpre} enewsztinfo where id = {$r ['id']}"); if ($zhuanti) {/ / topic name $ztname=$class_zr [$zhuanti [' ztid']] ['ztname']; / / topic link $ztlink=sys_ReturnBqZtname ($zhuanti);} $listtemp=' [!-title--]'. $ztname.' [!-- newstime--]' After reading this article, I believe you have a certain understanding of the topic name of how to get the current information in the Imperial CMS list page. If you want to know more about it, welcome to follow the industry information channel. Thank you for your reading!

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report