Example
Search Results Page
This is the entire default search results page showing how ht://Dig
puts the individual parts together. "header.html" is used to make up the
top of the page, "mac-find.html" (or other results template files "short.html"
or "long.html") are repeated for each search result, and footer.html is
used to make the bottom of the page. Look further below to see how the variables
and graphics ht://Dig uses are placed into each section.

Example
"header.html"
The below example shows the variable names you find in "header.html"
and what ht://Dig replaces them with when it returns the search results page. For
example, the variable $(MATCHES) is replaced with "54" - the number of
matches found for "netcloak" - which replaced the variable $(WORDS).

Example
"mac-find.html"
The below example shows the variable names you find in "mac-find.html"
and what ht://Dig replaces them with when it returns the search results page. For
example, the variable $(SIZE) is replaced with "20722" - the size of the
HTML file for this particular search result listing. The graphic display for relevancy
results is used (4 stars in this case) but can be removed if you like by simply deleting
the $(STARSLEFT) variable from the template. The "star.gif" can be replaced
with another graphic but has to be named the same. You'll find the "star.gif",
as well as other graphics inside the "images" folder inside the "search"
folder.

Example
"footer.html"
The below example shows the variable names you find in "footer.html"
and what ht://Dig replaces them with when it returns the search results page. For
example, the variable $(PAGELIST) is replaced with a row of graphic buttons linking
to other search results pages (in this case there are 6 pages of search results).
If you choose not to use the graphic buttons $(PAGELIST) would be replaced by ht://Dig
with a row of text digits - each with a link to other search results pages:
1 2 3 4 5 6
Also, the variables $(PREVPAGE) and $(NEXTPAGE) are replaced with
buttons linking to the previous and next pages of the search results (in this case
they link to page 1 and page 3 respectively).
If you choose not to use the graphic buttons $(PREVPAGE) and $(NEXTPAGE) are replaced
with text:
PREV NEXT
The graphics for all the buttons are found in the "images"
folder inside the "search" folder. They are named "button1.gif"
through "button10.gif" and "buttonl.gif" (that's an "L")
and "buttonr.gif". You can modify all of these graphics as well, but their
names need to remain the same and they must be 30 pixels high by 30 pixels wide.

|