jDownloads Support Forum

jDownloads for Joomla 4.x and 5.x => jDownloads 4.0 => Suggestions - Feature Request => Topic started by: Tom68 on 05.06.2025 21:08:51

Title: Pre-process smart search results with "onContentPrepare" of Content Plugin
Post by: Tom68 on 05.06.2025 21:08:51
In jD 4.0.47 the results of a smart search are not pre-processed with the function "onContentPrepare" of the Content Plugin. In fact, I did not find any trigger in the code of jD 4.0.47 to accomplish this. As a result, the search results contain unresolved {jd_file} code.

I would highly appreciate, if this missing feature could be added.

Thanks & Regards
Tom
Title: Re: Pre-process smart search results with "onContentPrepare" of Content Plugin
Post by: ColinM on 07.06.2025 21:59:16
Tom
I have just looked at the code in the jD Content Plugin. At line line 119 there is code
        function onContentPrepare($context, &$article, &$article_params)
It then goes on to check if there are any instances of {jd_file are in the article. If none exist it exits.
Best wishes
Colin