ChadStrat
It's just /blogparentpage/search/keyword/
docs page. middle of the page under 'Passive Component Params'
ChadStrat
Shapeless
But what is the component you add to the blog for search or is that something you have to build out customly?
Shapeless
I meant partial, I am talking about getting the search input box like you have on your blog
Last updated
ChadStrat
i c.
I just used the following (replace the url to where you want the results)
<h4>Blog Search</h4>
<div class="input-group">
<input type="text" name="keyword" class="form-control" id="keyword" value="{{ search_slug }}">
<span class="input-group-btn">
<button class="btn btn-default search_now" type="button">
<span class="glyphicon glyphicon-search"></span>
</button>
</span>
</div>
<script type="text/javascript">
$(document).ready(function(){
$('.search_now').click(function(){
var term = $('#keyword').val();
term = term.replace(' ','-');
window.location = "{{ 'home'|page }}/blog/search/" + term + '/';
});
});
</script>
1-6 of 6