How to make custom search block?
Permalink
I have made a new custom search block. It works perfectly fine with this code:
What can I do to make this work:
Is 'action="index.php/search/search-results"' the right way to to this? How can I search with multiple keywords from multiple form inputs? Thank you.
<form action="index.php/search/search-results" method="get"> <input name="query" value=""> <input type="submit" name="search" value="Search"> </form>
What can I do to make this work:
<form action="index.php/search/search-results" method="get"> <input name="x" value=""> <input name="y" value=""> <select name="z" size="1"> <option>a <option>b <option>c </select> <input class="btn" type="submit" name="search" value="Search"> </form>
Is 'action="index.php/search/search-results"' the right way to to this? How can I search with multiple keywords from multiple form inputs? Thank you.
found this thread
http://www.concrete5.org/community/forums/block_requests/custom-att...
but for some reason I arrived here first,
This answers my questions thank you
http://www.concrete5.org/community/forums/block_requests/custom-att...
but for some reason I arrived here first,
This answers my questions thank you
Normally I would pass through the query as a query string/post var and then pick it up on the results page.
But I am still getting to grips with concrete5 architecture
Would I need to add attributes to the pages depending on there option?
ie option "a" only pulls back pages/products with attribute "a".
Thanks Sean