Search filtered (by Label blogger)

Asked

Viewed 54 times

2

Hello, I’m having Problem in a blogger search system. The problem is that I want to filter the searches by Label.

<form action='/search' class='navbar-form navbar-right' id='searchthis' method='get' role='search' style='display: inline;'>
  <div class='form-group'>
    <input class='form-control' name='q' placeholder='Search' type='text' />
    <input>
    <b:loop values='data:posts' var='searh'>
    <b:if cond='data:blog.search == data:blog.homepageUrl'>
    <b:if cond='data:post.labels'>
    <b:loop values='data:post.labels' var='label' type='hidden'>
    <b:if cond='data:label.name == "Todos os episódios"'>
    <b:include data='search' name='printPosts'/>
    </b:if>
    </b:loop>
    </b:if>
    <b:else/>
    <b:include data='search' name='printPosts'/>
    </b:if>
    </b:loop>
  </div>
  <button class='btn btn-danger' type='submit'><span aria-hidden='true' class='glyphicon glyphicon-search'/></button>
</form>

I did several tests but still does not work poster filtering.

P.S.: I don’t understand much of the language of HTML then the scripts may be a little crazy

  • Give more details of what you are trying to do.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.