Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Call the standard search template from html form View modes: 
User avatar
Member
Member
jjarrett-flsouthern - 8/17/2013 5:26:12 PM
   
Call the standard search template from html form
I am wanting to hook up the search field in an Editable Text webpart up to the standard search template results page. I tried this which obviously didn't work. Any suggestions to point me in the right direction would be greatly appreciated.


<form class="form-inline" action="/kcms/search.aspx" method="get">
<div class="input-append">
<input class="span2" id="appendedInputButton" type="text" name="searchtext">
<button class="btn" type="button"><i class="icon-chevron-right icon-white"> </i></button>
</div>
<input type="hidden" name="searchmode" value="anyword">
</form>

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 8/18/2013 9:25:00 PM
   
RE:Call the standard search template from html form
Why use an editable text webpart when you can use the search box webpart? The reason it wont work is because an asp.net web page can only have one < form > tag. If the current search box webpart doesn't work, simply clone it and make modifications as needed.

User avatar
Member
Member
jjarrett-flsouthern - 8/21/2013 2:44:31 PM
   
RE:Call the standard search template from html form
Thanks for the info. First time doing any work in ASP.NET.

That search box was just excerpted from the entire navigation bar which search is just a part. I will have to rethink what I'm doing since just calling a search page or service isn't really an option it looks like.

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 8/22/2013 1:48:11 AM
   
RE:Call the standard search template from html form
"Calling" the search page can all be setup in the SearchBox webpart and by creating a Search page that will display the results (yet another webpart). Setting up site search within Kentico should take about 10-15 minutes at most for very basic search functionality when you have done it a few times.