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?
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?
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.
This is now possible with workflows. Workflows is not yet globally available, but I will close this topic as we are pushing this next week and you should be able to build this behavior with the user search trigger and the modal node action.
This will be super useful for me!
This topic was automatically closed 12 days after the last reply. New replies are no longer allowed.