I have a website built in Drupal 8. In one of the basic page, I have to add a search box which searches only the contents in that specific page. Please suggest the best practice to implement this. Thanks.

closed as primarily opinion-based by kiamlaluno Jul 12 '17 at 9:23

Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise. If this question can be reworded to fit the rules in the help center, please edit the question.


You need to create a view page, and in the FILTER CRITERIA you can add "for example" : content datasource:title and add the title of this specific page if it will not change But the best is to use : ID = nid that you will find in your database in the node_field_data table Search for the title and you will find your ID and use it to filter in your views and that's it !

Not the answer you're looking for? Browse other questions tagged or ask your own question.