Get the App
SLTechnology News&Howtos  ›  Servers  › 

The method of setting phpcms unlimited model search

Shulou Source: shulou.com Published: 2022-06-02 01:52:17 10月02日 Update

This article mainly introduces the method of setting phpcms unlimited model search, which has certain reference value, and friends who need it can refer to it. I hope you all have a lot to gain after reading this article. Let's take a look at it together.

phpcmsv9 Site search, unlimited models!

How to set phpcms unlimited model search

phpcmsv9 search, unlimited model, and today rose knowledge. As we all know, phpcms search according to the model to search, after using this method, you can search the whole station

Simply modify the default search function of v9, you can search the entire site content without model

Here is the index.php file in the modified search module

Then add an "unlimited" search condition to the header.html template (not here, just on other search box pages), set the value corresponding to typeid to 0, and do the same for index.html and lists.html in search, and the effect will come out. In this way, as long as no model is selected, the search result is the data that meets the conditions in all models.

Thank you for reading this article carefully. I hope Xiaobian can share the method content of setting phpcms unlimited model search to help everyone. At the same time, I hope everyone will support you a lot. Pay attention to the industry information channel and find out if you encounter problems. Detailed solutions are waiting for you to learn!

Tags: Search model method whole site results content interface articles key words conditions modules same accurate value full-text function and at the same time pinyin Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB NVidia Apple Huawei Shulou Information