Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 1431

General Questions/New to Joomla! 4.x • Re: Exclude from Smart Search indexing archived articles

$
0
0
Hey!

Well, it's possible but only with a slight change in the corresponding finder index plugin for content articles.

Open: plugins/finder/content/src/Extension/Content.php

Find (at the end of the file in the getListQuery function):

Code:

return $query;
Add before:

Code:

$query->where('a.state != 2');
It should look like:

Code:

$query->where('a.state != 2');return $query;
Note: Please keep in mind that this change is not update-safe and will be overwritten in the next core update. A better solution would be to contribute it as an option to the main project on GitHub (https://github.com/joomla/joomla-cms).

Statistics: Posted by Kubik-Rubik — Mon Apr 15, 2024 7:57 pm



Viewing all articles
Browse latest Browse all 1431

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>