Is there a way to make user searches for specific keywords return friendly tips?

I want to display a friendly reminder when a user searches for specific keywords, similar to the suicide prevention warnings shown by Bilibili or search engines in mainland China. How can I achieve this?

3 Likes

There isn’t currently a built in way to trigger an action from a search term. Your best bet is probably a custom theme component.

@j.jaffeux would it be possible to have a Workflow trigger based on current search term?

1 Like

Yes its possible, although we also need the node to show some message to the end user. It’s definitely something I want to tackle at some point, I also need to make some performance optimisations to avoid paying the workflow existence check on each search request.

TL;DR: yes but not before few weeks/months.

1 Like