Download Chapter 2 Publicus ini

Transcript
SAXOTECH Online Tags Manual
By using the line of code below, you can choose which template should be used to display the search results.
<input type="hidden" name="Category" Value="CategoryName">
For example, without this code, the search result will be shown by the gen_search.pbs template.
But with this code:
<input type="hidden" name="Category" Value="SPORT">
The SPORT_search.pbs template is used.
Templates
The search form can be placed on all pages.
Fields
Input field
The field in which web guest enter the search criteria is called Crit. The field is used like this:
<input type="text" name="crit" style="width : 95px" size="8">
This field is used for passing information to the search program.
Start date
This is the first date from which the system will select stories. This date field must be in the YYYYMMDD format. It can
be both visible and hidden. You can also use the calendar from the events search for input of this date. You must give
the form a name, and change the name of the field in which the date will be entered.
End date
This is the last date from which the system will select stories. Please see Start date for more information.
Daterange
This option takes two dates, separated by a comma. This option is often used with the Datecalc function to search the
current month. The option can be used like this:
<input type="hidden" name="daterange" value="
<pbs:datecalc now firstofmonth days=-1 firstofmonth>,
<pbs:datecalc now firstofmonth days=-1>">
Include
stories
without
date
Makes the system search stories that are placed on the date 99999999. The option is enabled like this:
<input type="hidden" name="IncludeNoDateArt" value="1">
or
<input type="hidden" name="INDA value="1">
191