Page 1 of 1

Search and the modules parameter

Posted: Thu Jan 25, 2024 1:58 pm
by webform
I'm trying to set up the Search module to limit its search to selected LISE modules plus page content, but it seems that content module is ignored if I include it in the search modules parameter:

Code: Select all

{Search modules='content,LISEProjects,LISENews,LISEDepartments' resultpage='search-result'}
{$entry->module} does output "content" as module name in the search result template, but do i have to use another name or filter in the foreach to get it to work?

Re: Search and the modules parameter

Posted: Thu Jan 25, 2024 7:41 pm
by velden
Try 'Search' as the module name.

Re: Search and the modules parameter

Posted: Thu Jan 25, 2024 9:19 pm
by webform
Thanks Velden, that works just perfectly!

Code: Select all

{Search modules='Search,LISEProjects,LISENews,LISEDepartments' resultpage='search-result'}