특정 키워드를 검색했을 때 '유의사항' 메시지가 표시되도록 하는 방법이 있을까요?

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?

4개의 좋아요

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?

2개의 좋아요

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.

3개의 좋아요

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.

5개의 좋아요

This will be super useful for me!

This topic was automatically closed 12 days after the last reply. New replies are no longer allowed.