Adding Custom Search Term To Results Title

We have a variety of custom searches for things like "Products under $10".

We'd like to be able to change the results page title to match.

I know that some dispatches will write a matching page title of ON SALE:


But how do we do same for queries like this, to replace the default "SEARCH RESULTS" heading?


We've hacked some things together in the past that worked, but what's the right way to do this?

You can use the My changes module and controller. Just check how it works in the Bestsellers module


You can specify search parameters and title for each custom mode