Get the App
SLTechnology News&Howtos  ›  Servers  › 

Dedecms modifies the method of displaying site-wide related content according to tag tags

Shulou Source: shulou.com Published: 2022-06-02 04:43:09 10月03日 Update

This article mainly introduces the method of dedecms modification by tag tag to display the relevant content of the whole site, which has a certain reference value and 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 to modify dedecms to display relevant content of the whole site according to tag tag

The original official mark {dede:likearticle col= "row=" titlelen= "} is still used in the article.

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

Find the code:

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

Modified to:

$typeid = "And arc.id$arcid"

Save it, update it and get it done.

Thank you for reading this article carefully. I hope the editor will share the method that dedecms modifies and displays the relevant content of the whole site according to the tag tag. At the same time, I also hope that you will support it, pay attention to the industry information channel, and find out if you encounter problems. Detailed solutions are waiting for you to learn!

Tags: Content whole site method tag article code value at the same time official document article friend tag ribbon industry information information channel question channel reference Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux Shulou Information MySQL Huawei macOS