Results Smart Search For Pages Using SPPB To Create Joomla Articles - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

Results Smart Search For Pages Using SPPB To Create Joomla Articles

JP

Jean-Marie Putz

Template 2 years ago

As I'm having trouble getting a consistent answer to my question regarding the presentation of smart search results on my site based on the Helix Ultimate 2.0.11 template, using SP Page Builder Pro to produce Joomla articles (so not directly of the SPPB pages), I open a new topic in the hope of receiving an answer to this problem which is in my opinion the last one I have left following the migration to Joomla 4. The problem is that the results page does not display the page description. However, I can easily display an image. As a reminder, I use version 3.8.9 of SPPB, since version 4.0 does not work for my use of it (SPPB for Joomla articles), even if my template is Helix Ultimate 2.0.11, in native.

For the few pages that are built with SPPB directly, it works. (example: search for the term "reizen" in Dutch (Nederlands) - the site is trilingual... ) shows results for the pages "Home" or "Reizen" (built with SPPB only) I therefore conclude that there must be a problem either at the level of the template, or at the level of SPPB, or even of the use of SPPB 3.8.9. in combination with Helix Ultimate 2.0.11) New mystery... For some of the pages, it works, while for the other 600, I have no result regarding the description. To illustrate, just search on https://www.travel-video.info. A question (in any of the 3 languages) like "Myanmar" for example displays images and the URLs of the pages found, but not the description. Exception: Searching for "Om Banna" in Dutch (Nederlands) or "travel" in English correctly displays the image (if present) AND description. The same search in English or French only displays the image and the URL, like the other 600 pages of the site.

Please let me know if this is due to a bug in the template or SPPB or if I can do anything to solve it (Please do not tell me anymore that "smart search" is the only search available in Joomla 4, as I know this since a very long time).

0
2 Answers
JP
Jean-Marie Putz
Accepted Answer
2 years ago #99721

After a lot of effort, I finally found the source of the problem. Assuming that all website owners are not necessarily computer doctors, I can only regret that the Helix Ultimate template does not contain PHP files for displaying search results. At least these files exist, but are empty, which is why at first I only had very basic data. Then I found these files first in Joomla and then a slightly more elaborate version on GitHub. The scripts assumed that the introtext as well as the full text are not empty. Here's what fixed the problem (in the default_article.php file): replace: if (!empty($this->result->summary) && !empty($this->result->body)) by if (!empty($this->result->summary) || !empty($this->result->body))

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 2 years ago #99825

Hi Jean-Marie Putz,

Thanks for contacting us. Glad to know that it is fixed now. And thanks for sharing the solution. You can now close this post by accepting the answer.

-Regards.

0