Plugin DB Search - Limitation?
-
-
@baris said in Plugin DB Search - Limitation?:
require(['hooks'], function (hooks) {
hooks.on('action:search.quick.start', function (params) {
params.searchOptions.in = 'titlesposts';
});
});Hi, thank you, that would be great but it is not working.
Default remains topics only. I need the default to be titles and posts. -
Ah my code only modifies the quick search in the header, if you want the same results when the form is submitted try the below.
require(['hooks'], function (hooks) { hooks.on('action:search.quick.start', function (params) { params.searchOptions.in = 'titlesposts'; }); hooks.on('action:search.submit', function (params) { params.searchOptions.in = 'titlesposts'; }); });
-
-
@baris said in Plugin DB Search - Limitation?:
require(['hooks'], function (hooks) {
hooks.on('action:search.quick.start', function (params) {
params.searchOptions.in = 'titlesposts';
});
hooks.on('action:search.submit', function (params) {
params.searchOptions.in = 'titlesposts';
});
});Nope, still does not work :).
Other than putting it in the custom javascript area, is there something else I should do?After saving it there, I search for something that is in a post but the result only shows Titles.
-
-
I would really like to get this working.
Does anyone have any thoughts on why this code above might not work?
The board was converted from phpbb using a plugin. Is it possible that left something behind that is breaking the code shared above?