Site Search - "Layout" file Location

If I use the default code for Site Search where layout is set to the default “Site Search List” I get search results fine.

However, I want to create a custom layout for the list items.

If I follow treepl docs it says they are located in Pages > Layouts.
Firstly I note, if I go to this directory there is no file named “Site Search List” representing the default list.

If I make a file in this directory called “Search List Item”,
populated with {{this['name']}} for testing,
and try to reference it in the search results module ie … layout: “Search List Item”…,
I see no results when I perform a search.

I’ve tried many variants around this setup to try to make this work, but cant get any results.
Where do I put and how do I reference the custom layout file for Search Results?

It’s in the Layouts section in the modules ‘Settings’. Like where you would add layouts for any other module:
image

  • I’ll update the docs so this is clearer :slight_smile:

PS: you can also use a custom file, but not one stored in the CMS Pages directory - just saved in the file system like any other asset.

1 Like

thanks :slight_smile: lol .