Internal Templates
Top  Previous  Next

Internal templates are also known as "Sub Templates". Hyperseek uses internal templates to allow you to fine tune the output generated by the PLUGINS that you place in your page templates.

There are three types of internal templates  
§Email  
·This is where you write all the emails the software sends out. Once these email are written (and remember the template name is the subject link of the email), go back to your preferences and select the proper emails to go out. There are variables available for all the email templates. The available variables are listed in each.  
§Layout  
·Layout templates control the look and fill on the pages. Your page templates are the background, the layouts are the body.  
§Listing  
·Listing templates control the look and feel of the listings in your directory.  
§You will need to set/review all the templates in the Internal Templates "Accounts, Hyperseek and Jackhammer" sections.  

For example, when a user runs a search,
<!-- PLUGIN:BODY --> draws the list of search results. Each search result is formatted (drawn in HTML) according to an "Internal Template". This Internal Template (called "link") is designed by you, using a combination of HTML and replacement variables (eg "<<TITLE>>" injects the title of the listing into the internal template) to create the final HTML for each listing. All of the listings are run through this template, and then the full list of them is then inserted in place of <!-- PLUGIN:BODY --> in the page template.

Internal templates, as stated, can (and should) contain the HTML formatting that you choose to define the overall "look" of how the individual item that will be drawn by the internal template should look when merged into the full page template for display in the users browser. Within the html of your internal template, you can place "Replacement Variables", which will insert parts from the hyperseek database or internal variables into the template. Replacement variables are always encased within "<<" and ">>" characters.

As an example, a simple internal template for your search result listings might look like this (replacement variables appear in bold):

<font face='arial' size='2'>  
<b><<LINK>></b>  
<br>  
<i><<DESCRIPTION>></i>  
<br>  
<font color='silver'><<URL>></font>  
</font>  
<br><br>  
 
A search result set that has 2 links would look then like this in the browser:  
 
T-Shirts Online  
Get the best deals on all sorts of custom T-Shirts, concert shirts and  
more at the T-Shirts Online Superstore  
http://www.tshirtsonline.com  
 
T-Shirt Factory  
We specialize in large quantities. Mass production of Custom Tees is  
our specialty.  
http://www.tshirtfactory.com  


You can manage your internal templates using the Template Manager (shown below). Choose the application from the list, and press the "Edit Internal Templates" button to load the templates for that application. You can edit, add, or delete internal templates using the form shown.


templates-internal