Developer forum

Forum » Templates » Search (Weighted)

Search (Weighted)


Reply

hi again!

 

I have a page, http://follofolkehoeyskole.net.dynamicweb.no, where the search form is in the top-logo. I simply copied the contents of the template searchbox.html into my page template.

This is the form I use:

 

 <form action="Default.asp" method="get" name="SearchForm1">
               <input type="hidden" name="ID" value="<
!--@DwPageID-->">
               <input type="text" name="q" id="sokInp" size="28" value="SØK FFH" onfocus="this.value = '';">

<input type="submit" value="Søg" style="width:50px;float:right;">

</form>

 

Then added the search template to a page to display the result. But no luck, it didnt work.

The searchform in the 'search result' page works fine.

Any idea how I can get the search form to work outside this page?

 

 

-cheers

-jan

 

 

 


Replies

 
Reply

The search module needs a page with the module installed in order to display the search result. You should replace the DwPageID tag with the ID of a page that contains the search module in order for it to work.

 
Reply
Sorensen wrote:

The search module needs a page with the module installed in order to display the search result. You should replace the DwPageID tag with the ID of a page that contains the search module in order for it to work.


hi!

I tried that and the form works now and the page changes to the correct ID, but the result is displayed incorrectly, just beneath the search form, and not in the content of the paragraph.

 

http://follofolkehoeyskole.net.dynamicweb.no/Default.aspx?ID=7&q=lorem

 

 

-jan

 

 

 
Reply

I'm not sure i quite get, what you're trying to acheive. "Not in the content of the paragraph". Could you please elaborate?

 

You must be logged in to post in the forum