Hi.
I am developing a plugin for a component for my J4 website and I would like to obtain the total number of results of a search using smart search component.
I would think all I need is to 1) grab the smart search model, 2) set the keyword for the query and 3) get the total
Getting the model can be done following these docs https://docs.joomla.org/J4.x:Dependency ... n_Joomla_4
I am unsure of what's the public interface of the SearchModel that I can use to set the keyword. I found `setState` but after a few attempts I don't seem to have it working.
I am also unsure if getTotal() is the method to get the total number of results.
Someone care to elaborate on how to use finder component within an extension? Even better if you can point out some docs. Thank you!
I am developing a plugin for a component for my J4 website and I would like to obtain the total number of results of a search using smart search component.
I would think all I need is to 1) grab the smart search model, 2) set the keyword for the query and 3) get the total
Getting the model can be done following these docs https://docs.joomla.org/J4.x:Dependency ... n_Joomla_4
I am unsure of what's the public interface of the SearchModel that I can use to set the keyword. I found `setState` but after a few attempts I don't seem to have it working.
I am also unsure if getTotal() is the method to get the total number of results.
Someone care to elaborate on how to use finder component within an extension? Even better if you can point out some docs. Thank you!
Statistics: Posted by RaulOG — Tue Apr 23, 2024 1:12 pm