Smartsearch - customHtml

For Joomla! 4.x Coding related discussions, you could also use: http://groups.google.com/group/joomla-dev-general

Moderator: ooffick

Forum rules
Post Reply
KianWilliam
Joomla! Guru
Joomla! Guru
Posts: 549
Joined: Thu Jan 12, 2017 10:13 am

Smartsearch - customHtml

Post by KianWilliam » Mon Feb 27, 2023 10:16 am

About few weeks ago toivo mentioned about customhtml module to be indexed by smartsearch, the subject drew my attention and I have developed 6 plugins in a package:
1- To index the customHtml module
2- To add a line of code to indexer.php of com_finder
3-To add a line of code to modules view list
4-to reindex the customModule on being saved
5-to reindex the customModules on being published and unpublished or deleted
6-To inform user what to do in order for customModule being indexed
the plugins 2 and 3 always check the related core files for the existence of that line of the code, if the code is not there, it will be added , therefore on joomla update there will be no problem in regard with the core files.
In development phase with wamp, I have been successful, actually few tests are left in regard with filter creation and etc. I am going to check it on an online site in order to end the development phase and publish the package.
The only thing that makes me a bit concerned is the amount of customModules in a site, it is highly unlikely
to have for instance a 1000 customModules in a website yet matematically it is possible. Under such circumstance
I have no way to check the extension.
Any advice in regard with these subjects shall be considered.
Last edited by imanickam on Mon Feb 27, 2023 3:04 pm, edited 1 time in total.
Reason: Moved topic » from Administration Joomla! 4.x to Joomla! 4.x Coding

KianWilliam
Joomla! Guru
Joomla! Guru
Posts: 549
Joined: Thu Jan 12, 2017 10:13 am

Smartsearch and customHtml

Post by KianWilliam » Wed Mar 01, 2023 9:47 am

Actually the package to index customHTML by smartsearch contains 5 plugins instead of 6 for I integrated 2 in one plugin.
As soon as final tests in an online site terminates, it shall be published, any suggestions in regard with
way of testing once the amount of modules are too many (e.g 1210 modules) and the package itself shall be considered.
Kian William
Last edited by toivo on Sun Mar 05, 2023 10:41 pm, edited 1 time in total.
Reason: mod note: merged with the current topic

KianWilliam
Joomla! Guru
Joomla! Guru
Posts: 549
Joined: Thu Jan 12, 2017 10:13 am

Re: Smartsearch - customHtml

Post by KianWilliam » Mon Mar 13, 2023 9:16 am

The tests are done, the delay was on account of some technical problems in the damn host which postponed online tests and other major duties to be investigated, I believe the package could work for a site with a reasonable amount of custom html modules. It shall be published soon in joomla library.

KianWilliam
Joomla! Guru
Joomla! Guru
Posts: 549
Joined: Thu Jan 12, 2017 10:13 am

Re: Smartsearch - customHtml

Post by KianWilliam » Tue Mar 14, 2023 9:29 am

Once you study the package, you will find nothing special, Joomla core files , specially finder plugins led me to develop it.

KianWilliam
Joomla! Guru
Joomla! Guru
Posts: 549
Joined: Thu Jan 12, 2017 10:13 am

Re: Smartsearch - customHtml

Post by KianWilliam » Thu Mar 16, 2023 10:59 am

Done, the rest is up to jed to publish the package


Post Reply

Return to “Joomla! 4.x Coding”