Jul 16, 2018 2:16 PM
Hello,
I'm having a lot of struggles dealing with the Search Module. I just want to retrieve blog post from only ONE blog, not entire site.
Can i put my blog ID in the search Url and how can accomplish that ?
Here is the function where i think it is possible to do it:
getSearchResults = function(){ var searchUrl = "/_hcms/search?&term="+encodeURIComponent(searchTerm)+"&limit="+encodeURIComponent(TYPEAHEAD_LIMIT)+"&autocomplete=true&analytics=true&" + searchOptions(); $.getJSON(searchUrl, function(data){ if (data.results.length > 0) { fillSearchResults(data.results); trapFocus(); } else { emptySearchResults(); } });
Jul 26, 2018 10:04 AM
Hey @karensantana can you please share a link to the blog / page(s) you are working on? @ndwilliams3 do you know if this is possible?
Jul 26, 2018 10:40 AM