Home computickets MODX MSEARCH2 automatic search

MODX MSEARCH2 automatic search

Author

Date

Category

How can you do so that when opening the page automatically, the search for the site and the results were displayed below? As a search query should be PageTIitle Pages.

For example, we are in a blog, go to the “Construction” page and we need to see the results with other pages on which there is this word.


Answer 1, Authority 100%

Solution In general, this is:
1. Write a plugin that, when loading such pages, puts PageTitle into the Global Request Array
2. When calling the MSEARCH2 snippet in the & amp; QueryVar parameter, send the name of the variable where you saved PageTitle

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions