Template Code

You can view, upload and restore your template file for your search engine with this interface.

There are 4 template files in the program at present: "search.html", "result.html", "advancedsearch.html", "advancedresult.html".

When you open for example "http://www.ssforge.com:9280/search", it will display template file "search.html", and when you input a keyword and press "Search" button, it will output search result in template "result.html". If you open "http://www.ssforge.com:9280/advancedsearch", it will display template "advancedsearch.html", and display "advancedresult.html" after  search.

If you want to make your own template and upload to SSForge, it's better to view and copy the search box code then insert it to your own template file. For example, click "Template" in the left menu under "Search Settings" section, then select "search.html" template file and press "Code" button to view it's HTML code.


1. "search.html" search box  code:

<!-- ************************ BEGIN of SSForge search form code ************************ -->
<FORM name="sf" action="/search" method="GET">
<INPUT type="HIDDEN" name="user" value="test">
<p align="center">
<INPUT name="q"> <INPUT name="Send" type="submit" value="Search">
<p align="left">
</FORM>
<!-- ************************ END of SSForge search form code ************************** -->


The user value in 3th line may different in your page, it's your site search account name used to login SSForge. This code is HTML code, just copy it from the edit box. Then open your own template file which you want to upload to replace "search.html" with NOTEPAD or other editor (If open with Frontpage or Dreamweaver etc, you need to select "Code" view instead of "Design" after open the webpage file.). Then paste the code into the webpage file where you want to display a search box.

You can modify the search box code, for example, change the button to fit your web style. But don't modify the name of the FORM and INPUT which will be used by the search engine code.


2. "result.html" search box and search result tag code:

In the file "result.html", there is also a search box code, it's used to display a search box on the search result page. The code is same as above in file "search.html", just copy and paste it into your own template file as above. And there is a line of code which not included in file "search.html".  It's following code:

<%SEARCH_RESULTS%>

This code represents the search results, you can move it to where you want to output search result.  NOTE: If you upload your own template file "result.html" which not include this line of code, the search engine will not output search result.