Select the first letter of the word from the list above to link to appropriate section of the glossary.
- VALUE:
- List of selection values to display in the select box.
- Note: Any of the following words or single characters can be used as one of the selection values to generate a null value. NONE, *, ., and #
Example:
<tame form>
<tame select: size small medium large> Select a size
<tame /form>This example will present a drop down box with the words "Select a size" next to it. When the customer selects small, medium or large, it is associated with the variable "size" for use by the system. The variable can be present on the screen using "&size".
See Also: ^buyselect, select2
- [DISPLAY] [CODE-RETURN]:
- List of selection pairs to display in the select box and return to the system. Brackets, [ ], are required if spaces are imbedded in the display or return arguments.
- Note: Any of the following words or single characters can be used as one of the selection values to generate a null value. NONE, *, ., and #
Note: This tag will function only with browsers that support HTML 3.0 features.
Example:
<tame form>
<tame select2: size small [8 oz] medium [12 oz] large [16 oz}> Select a size
<tame /form>The drop down box presented will list small, medium and large. Upon selection the system will store 8, 12 or 16 oz in the variable, size.
See Also: select, ^buyselect, ^buyselect2
<tame select_quality: ITEM QUALITY VALUE . . . >
- QUALITY:
- The quality of the product, such as color, for which values are provided.
- VALUE:
- The different values or options from which a customer can choose. For example, blue green yellow.
Example:
<tame form>
A Personalized Widget
<tame select_quality: widget size small medium large>
<tame ^buy: widget Buy a Widget>
<tame /form>In this example the item widget can be specialized by size. The customer will see a drop down selection list for size. Once a choice is made and the ^buy button is selected, the information associated with the widget will appear in the description section on the cart panel.
Modifier: quality_price, quality_skew
See Also: ^buy, form buy, select_quality2, box_quality, radio_quality, text_quality
<tame select_quality2: ITEM QUALITY [DISPLAY] [CODE-RETURN] . . . >
- QUALITY:
- The quality of the product, such as color, for which values are provided.
- [DISPLAY] [CODE-RETURN]:
- List of selection pairs to display in the select box and return to the system. Brackets, [ ], are required if spaces are imbedded in the display or return arguments.
Note: Any of the following words or single characters can be used as one of the selection values to generate a null value. NONE, *, ., and #
Note: This tag will function only with browsers that support HTML 3.0 features.
Example:
<tame form>
Please select your size.
<tame select_quality2: socks size Small 1 Medium 2 [Large X-Large] 3>
<tame ^buysubmit: Purchase socks>
<tame /form>When the customer selects a size, it is associated with the product socks. The size appears in the description along with the product selection. Note the use of [ ] to enclose arguments with embedded spaces.
Modifier: quality_price, quality_skew
See Also: ^buy, form buy, select_quality, box_quality, radio_quality, text_quality
<tame select_qty: ITEM QUANTITY . . .>
Example:
<tame form>
<tame descrip: example>
<tame select_quality2: example size Small 1 Medium 2 [Large X-Large] 3>
<tame select_qty: example 0 1 2 3 4> Select quantity<br>
<tame ^buy: example>
<tame /form>This example provides provides details about and sizes for an "example" and then limits the quantity to purchase (0 to 4) with the select_qty button. Selecting the ^buy button will associate all information with "example: and submit it to the cart_panel.
See Also: input_qty, ^buyselectqty
<tame> set: VARIABLE VALUE </tame>
Example:
<tame> set: &color red </tame>
<tame> pass: &color; ^link: newpage.tam Check database for all {&color} items </tame>In this case the variable is set to "red" and then this new variable is used to pass to newpage.tam and also to describe the search that will occur on the new page.
See Also: pass, variable, wipe
<tame>
setgate: ACCESS-TYPE
DIRECTORY/DATA-SOURCE
</tame>
- ACCESS-TYPE
FILE - for .tdb and .tab (tab delimited) ASCII flat files.
WGREP - for tables retrieved by the wgrep search engine
ODBC - for SQL retrieval of tables coming from a ODBC data source on Windows95 or the NT
DAO - for SQL tables retrieved through GateBoy using the MS Jet engine. (Requires GateBoy software extentions.)
DIRECTORY/DATA-SOURCE
for the ACCESS-TYPES of FILE or WGREP specifies the path to the directory containing the ACCII flat files.
for ODBD and DAO specifies the data source name as entered in the ODBC manager in the NT or Windows95 control panel.
Note: You can define multiple setgate tags within a page or shop; however only one setgate tag is active at any given time.
Note: To set a default data source, place the setgate in the custom.tag file.
Example:
<tame setgate: FILE ~shop>
<tame define_tdb: data product.tdb><tame workwith: data>
<tame foreach::
item: {?item}<br>
price: {?price}<br>
description: {?descrip}<p>
>
<tame /workwith>The setgate in this example define the data source as a FILE and the default shop directory as the location of the database file. The remainder of the example shows the access and presentation of the data on a page.
See Also: define_tdb, workwith, foreach, data access
<tame>
setpdb: TABLE/PATH-FILE
</tame>
- TABLE/PATH-FILE
- Designates the name of a table defined by a define_tdb, define_wgrep, or define_sql tag. It may also designate a path and name to a .tdb file.
Note: The &pdb variable is set in the Admin config.tag file for the shop.
Example:
<tame setpdb: ~//shop/example.tdb>
Will designate the use of the example.tdb from this point onward on this page instead of the file designated in the Admin config.tag file. The ~//shop/ indicates that this file will be found in the shop data-mirror directory.
See Also: setgate, define_tdb
- OPTION-LIST
- The options associated with a panel to customize it's presentation. Each panel has a specific set of options associated with the panel.
Example:
<tame>
show_panel: cart.pan
HEADER
TITLE [This is a {*star*} cool basket]
BUTTONS checkstand clear redo
FILTER
TEXTBUTTONS
HOTLINKS
COLUMNS remove item descrip qty amount
BORDER 5
</tame>This cart panel will have the title "This is a
cool basket". The gray style text buttons - checkstand, clear and redo - will appear across the bottom and the columns will be remove, item, descrip (which is a hot link), qty and amount. The border on the panel will be 5.
End Mark Required: /tame show_the
<tame show_the: PATH-FILE COLUMN VALUE>
HTML-ARGUMENT-AREA
</tame show_the>
- PATH-FILE
- Use "pdb" to show the current product database or the path and file name of the tame database you wish to see.
- COLUMN
- The name of the column in the database where your data resides. The first row usually contains the name of each column which is to be used.
- VALUE
- The value within the COLUMN for which records should be returned.
- HTML-ARGUMENT-AREA
- The template to format records returned by this query.
Example:
<tame show_the: pdb department 60>
<li><b>{?description}</b> ${?price} <tame>^buy: {?item}</tame>
</tame show_the>This will list the description of all the records with "60" in the "department" column of the product database and will put price and a buy button next to them.
See Also: setpdb, Data Access
<show_panel: subquery.pan OPTION . . .>
Note: Must be used inside a workwith area.
- OPTIONs
- Where OPTIONs are selected from the following:
- QUERYVAR [NAME]
- The name of the variable that contains the search query. Defaults to "query".
- PRIORFACE [BUTTON-FACE-AREA]
- Text or tame image for the prior button face. Defaults to "Prior".
Note: The "prior" button is never available with wgrep database access. This is an SQL only button. For wgrep, use the ^submit button to start the search over at the beginning.
- NEXTFACE [BUTTON-FACE-AREA]
- Text or tame image for the next button face. Defaults to "Next".
- SUBMITFACE [BUTTON-FACE-AREA]
- Text or tame image for the new query button face. Defaults to "New Query".
- SUBMIT_PAGE [PAGE]
- Page to submit a new search to. Default is to loop on the same page.
- NOSEARCH
- Hides the next query button.
Example:
<tame>
show_panel: subquery.pan NEWFACE "Start Over"
</tame>
might present the following panel:
![]()
See also: workwith, Writing a Search Page
Example:
<tame> ^buy: example {*graphic*} </tame>
In this example the tame command is a call to an image graphic within the buy tag.
<tame when: {&total > 200.00} {relink: overlimit.tam}>
In this example, the when command contains two tame commands the test of total and the command to execute if the test is true.
See Also: basics
End Mark Required: /tamecase
<tamecase: CASE-NAME>
HTML-AREA
</tamecase>
- CASE-NAME:
- The name of the case. The name can be multiple words but cannot contain a period.
Example:
Create a tamecase on curpage using the following format:
<tamecase: pagecase>
This is the pagecase area of the file
</tamecase>To access this case use the following command:
<tame ^link: pagecase Go to this pages case area>
This goes to the tamecase "pagecase" in the same document that contained the link. Note that there are no periods used in the link statement which indicates the use of case-name instead of document-location.
To access the curpage pagecase from another document use the tocase modifier:
<tame tocase: pagecase; ^link: curpage.tam Go to the new page>
See also: tocase, document-location, ^link
HTML-AREA
<head>
<tame tamehead>
HTML-AREA
</head>
HTML-AREA
Note: When you use this tag you must place it between the <head> </head> html directives at the top of the page, and you are responsible for including all other HTML tags that normally start a page.
Note: If you do not use the tamehead, the client browser might not know how to form requests for images called from your page.
Example:
<html>
<head>
<tame tamehead>
<title>This page requires additional HTML information</title>
</head>
<body bgcolor="#FFFFFF">In this example the tamehead provides the basic information to allow the shopping system to access images on the page. To define the background and title requires the additional html markups.
Modifiers: require_register, require_filling, request_bookmark, passgate
See also: HTML-AREA
Example:
<tame ^goto: pagea.tam {*star*}>
In this example the hyperlink to goto the page pagea.tam is represented by a star image. This image was first defined with an image or face definition.
See Also: BUTTON-FACE-AREA, image, face
End Mark Required: /tamewhelse
Note: This tag is used in conjunction with the tamewhen command.
<tamewhen: TEST> HTML-AREA </tamewhen>
<tamewhelse> HTML-AREA </tamewhen>
- TEST:
- A test that results in logic true or false.
Example:
<tamewhen: {&total > &balance}>
Your account is over balance<br>
Please contact us if you feel this message is in error<br>
</tamewhen>
<tamewhelse>
Thank you for shopping with us!<br>
Please contact us if we can be of further assistance.<br>
</tamewhen>This example test to see of the variable "&total" is greater then the variable "&balance". If the total is over the balance then the test returns "true" and the when statement is completed. If the balance is greater than the total then the test returns "false" and the whelse statement is triggered.
End Mark Required: /tamewhen
<tamewhen: TEST>
HTML-AREA
</tamewhen>
- TEST:
- A test that results in logic true or false.
Example:
<tamewhen: {&total > &balance}>
Your account is over balance<br>
Please contact us if you feel this message is in error<br>
</tamewhen>This example test to see of the variable "&total" is greater then the variable "&balance", if it is the message is presented. Otherwise the page continues to function and the information in the tamewhen is ignored.
See Also: tamecase, tamewhelse
<tame tb: TAMECOMMAND>
Example:
<tame> tb: <tame> ^buysubmit: Purchase selected items </tame> </tame>
In this example the words "Purchase selected items" appears on a button with a border. This can give a button extra enhances.
See also: ^buysubmit
<tame text: VARIABLE SIZE>
Example:
<tame> text: name 40</tame> Your name
This tag will present a text box forty characters long with the request "Your name" following it.
Modifiers: required
See also: passwd, textarea, text_quality
<tame textarea: VARIABLE WIDTH HEIGHT>
Example:
<tame> textarea: customer_note 40 5</tame> Please enter your note to us in this area.
This tag will present a text area forty characters wide and 5 lines high with the request "Please enter your note to us in this area." following it.
Modifiers: required
See also: passwd, text, text_quality
<tame text_quality: ITEM QUALITY WIDTH HEIGHT DEFAULT_TEXT>
- QUALITY
- The variable in which to store the specialize information about the product.
- WIDTH & HEIGHT
- The width in characters and the height in lines of the input box. The default width is 40 and the default height is 1.
- DEFAULT_TEXT
- The text that will appear in the box initially. The default is blank.
Example:
<tame form>
A Personalized Widget
How do you wish to be personalize your widget?
<text_quality: widget Personalization 40 3>
<tame /form>In this example the input block for the personalization is 40 characters by 3 lines. This text will appear in the description section on the cart panel.
Modifier: quality_price, quality_skew
<tame thisform>#ANCHOR
Example:
<tame ^link: <tame thisform>#newtopic {*star*}>
See also: ^link
<tame tocase: CASE-NAME; LINK_TAG: DOCUMENT-LOCATION HTML-ARGUMENT-AREA>
- LINK_TAG:
- Use any linking command such as ^link, ^goto, or ^next to link to another page.
- CASE-NAME:
- The name of the case or location defined by the <tamecase> tag. The name can be multiple words but cannot contain a period.
Example:
Create a tamecase on curpage using the following format:
<tamecase: pagecase>
This is the pagecase area of the file
</tamecase>To access the curpage pagecase from another document use the tocase modifier:
<tame tocase: pagecase; ^link: curpage.tam Go to the new page>
See also: tamecase, document-location, ^link
<tame> transfer: NAME VALUE; ^LINK/^GOTO: DOCUMENT-LOCATION HTML-ARGUMENT-AREA</tame>
Note: To transfer multiple name-value pairs, you must stack the transfer modifier. <tame> transfer: NAME VALUE; transfer: NAME VALUE; etc.
Note: Review the use and position of the semicolon.
Example:
<tame>transfer: shoesize 10; ^goto: showshoes.tam ALL SHOES SIZE 10</tame>
This example will transfer the shoesize 10 to the next page where all shoes for that size are shown.
See Also: ^goto, ^link, variables, pass, carry
<tame> unique ^link: DOCUMENT-LOCATION HTML-AREA </tame>
Example:
<tame unique ^link: local-weather.tam local weather forecast>
This link will present a new version of local-weather.tam each time the page is requested. This ensures that the user receives the most current information available.
Note: Variable are discussed in detail in the Variables section.
Note: The whelse command is associated with the most recent when clause.
<tame when: {TEST} {HTML-ARGUMENT-AREA}>
<tame whelse: {HTML-ARGUMENT-AREA}>
Example
<tame when: {&total > 200.00} {relink: overlimit.tam}>
<tame whelse: {^link: payment.tam}>In this example, if the customer has spent more than $200.00, he will be sent to the overlimit.tam page. Otherwise, he will not go to the payment screen.
See also: relink, tamewhen, when
<tame when: {TEST} {HTML-ARGUMENT-AREA}>
Example
<tame when: {&total > 200.00} {relink: overlimit.tam}>
In this example, the customer will not goto the payment screen if he has spent more than $200.00, instead he will be sent to the overlimit.tam page.
See also: relink, tamewhen, whelse
<tame when_allow_tables: HTML-ARGUMENT-AREA>
See also: when_not_allow_tables
See also: when_not_cart
<tame when_filled: HTML-ARGUMENT-AREA>
See also: when_not_filled, form
<tame when_hits: HTML-ARGUMENT-AREA >
Note: This tag will only work within a workwith area.
See also: workwith, when_not_hits
<tame when_known: HTML-ARGUMENT-AREA>
See also: when_not_known
<tame when_not_allow_tables: HTML-ARGUMENT-AREA>
See also: when_allow_tables
See also: when_cart
<tame when_not_filled: HTML-ARGUMENT-AREA>
See also: when_filled, form, required
<tame when_not_hits: HTML-ARGUMENT-AREA >
Note: This tag will only work within a workwith area.
<tame when_not_known: HTML-ARGUMENT-AREA>
See also: when_known
<tame when_not_so: HTML-ARGUMENT-AREA>
See also: when_so
<tame when_so: HTML-ARGUMENT-AREA>
See also: when_not_so
Note: This tag is similar to <tame> set: &variable value </tame> where the value is null or <tame> &variable = "" </tame>
<tame> wipe: &variable </tame>
Example:
<tame> wipe: &name </tame>
<tame> text: name 40</tame> What is your name?This example clears the name variable to ensure that one used in a prior part of the shop is not used. It then asks the customer for his name.
End Mark Required: /workwith
<tame workwith: TABLE> ... HTML-AREA ... <tame /workwith>
- Note: Workwith areas may be nested.
Example:
<tame workwith: states>
{?Washington,population}
- <tame workwith: cities>
{?Seattle,population}
<tame /workwith>{?Washington,capital}
<tame /workwith>The first and last sections of this query are made against the table "states". Nested in the middle is a query against the table "cities".
See Also: foreach, ?, pass, data_access
Created Katherine C.
Davis 4/24/97
Edited Katherine C. Davis 10/13/97