Customizing pat-livesearch

We're trying to customize pat-livesearch to bring the leadimage into the results template. Unfortunately following exactly the training docs (https://training.plone.org/5/javascript/exercises/8.html) to customize this pattern does not work for us. The Livesearch.init() is never called ... but all other functions within our bundle are called correctly.

Has anybody a best practice how to customize a pattern in general and maybe livesearch in detail?

1 Like

well. to be precise here: doing REALLY EXACTLY the same as in training docs works indeed :wink: So making a complete new bundle overriding the livesearch pattern works pretty well. Nevertheless ... using the override code in our existing theme bundle does not work at all. Maybe I can figure out later, what's going wrong here (obviously in our bundle code) and leave a note here. Meanwhile ... sticking to the training example.

Plone Foundation Code of Conduct