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 call the related articles of the whole site by CSS

2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article mainly introduces the relevant knowledge of "how to call the relevant articles on the whole site by CSS". The editor shows you the operation process through the actual case, and the operation method is simple, fast and practical. I hope that this article "how to call the relevant articles on the CSS site" can help you solve the problem.

{dede:likearticle row='12' titlelen='200'} [field:title/] {/ dede:likearticle}

The above is the easiest to call the dedecms tag related to the title of the article, using this code will only misappropriate the current column target related article questions and links.

Implement the method of calling the whole site:

You only need to correct a piece of code corresponding to the php file. The specific modifications are as follows.

Correcting methods:

Find the file:\ include\ taglib\ likearticle.lib.php

After the DW software opens the likearticle.lib.php file

Find the code:

$typeid = "And arc.typeid in ($typeid) And arc.id$arcid"

Correct it to:

$typeid = "And arc.id$arcid"

How arbitrary content page can misappropriate the whole site and this related article, the article page reveals that the performance is related to the article mode.

This is the end of the article on "how to call the whole site of CSS". Thank you for reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.

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: 240

*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

Development

Wechat

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

12
Report