Get the App
SLTechnology News&Howtos  ›  Servers  › 

How does Imperial cms get the number of News articles through Custom function

Shulou Source: shulou.com Published: 2022-06-02 02:02:02 11月28日 Update

This article mainly introduces how Imperial cms obtains the number of news articles through custom functions, 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.

Add user-defined functions to Imperial cms.

Just add the following function to the e/class/userfun.php file:

1. Core function content:

The code is as follows:

2, copy the contents of the function to the e/class/userfun.php file.

3. Log in to the background-> "template Management"-> "manage tags"-> "add tags".

4. Call [newstotal] user ID [/ newstotal].

Thank you for reading this article carefully. I hope it is helpful for everyone to share Imperial cms how to obtain the content of news articles through custom functions. At the same time, I also hope that you can support us, pay attention to the industry information channels, and find out if you encounter problems. Detailed solutions are waiting for you to learn!

Tags: Functions empires content articles articles news files tags users management code value and at the same time background that is methods friends core templates ribbons Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno MariaDB Shulou Information Huawei Linux