[docs] Change in DbTheResultsPage made by Toni Müller
Wiki Watch
docs@icdevgroup.org
Wed Jan 29 17:51:01 2003
You can visit the live page at this URL:
http://www.icdevgroup.org/i/doc/wiki/DbTheResultsPage.html
trying to fix up debris, btw, please honor hints for HTML 4.01
--- tmp/VFFbKSAX:217.81.16.70.previous Wed Jan 29 17:50:55 2003
+++ tmp/VFFbKSAX:217.81.16.70.current Wed Jan 29 17:50:55 2003
@@ -45,18 +45,19 @@
Set any prefix desired with the prefix parameter to
[search-region]:
- [search-region pref [search-list]
+ [search-region prefix=my]
+ [search-list]
SKU: [my-code]
Title: [my-data products title]
[/search-list]
[/search-region]
-x=my]
The standard set of Interchange iterative ITL tags are available. They
are interpolated in this order:
- [item-alternate N] true [else] false [/else] [/item-alte [if-item-param named_field] true [else] false [/else] [/if-item-param]
+ [item-alternate N] true [else] false [/else] [/item-alternate]
+ [if-item-param named_field] true [else] false [/else] [/if-item-param]
[item-param named_field]
[if-item-pos N] true [else] false [/else] [/if-item-pos]
[item-pos N]
@@ -78,7 +79,6 @@
[item-last] condition [/item-last]
[item-next] condition [/item-next]
-nate]
=back
@@ -134,7 +134,8 @@
The following is a simple example for a search list that has a field
category and subcategory associated with each item:
- < <TR><TH>Category</TH><TH>Subcategory</TH><TH>Product</TH></TR>
+<TABLE>
+ <TR><TH>Category</TH><TH>Subcategory</TH><TH>Product</TH></TR>
[search-list]
<TR>
<TD>
@@ -160,10 +161,11 @@
[/item-change subcat]
</TD>
<TD> [item-field name] </TD>
+ </TR>
[/search-list]
</TABLE>
-ABLE>
+
The above should output a table that only shows the category and
subcategory once, while showing the name for every product. (The
@@ -215,51 +217,56 @@
[more-list next.gif prev.gif page_num.cgi 3] causes anchors of:
- Previous <IMG SRC="prev.gif" Bor Page 1 <IMG SRC="/cgi-bin/page_num.cgi?1">
+ Previous <IMG SRC="prev.gif" Border=3>
+ Page 1 <IMG SRC="/cgi-bin/page_num.cgi?1">
Page 2 <IMG SRC="/cgi-bin/page_num.cgi?2">
Next <IMG SRC="next.gif" Border=3>
-er=3>
+
[more-list next.gif prev.gif page_num.cgi] causes anchors of:
- Previous <IMG SRC="prev Page 1 <IMG SRC="/cgi-bin/page_num.cgi?1">
+ Previous <IMG SRC="prev.gif">
+ Page 1 <IMG SRC="/cgi-bin/page_num.cgi?1">
Page 2 <IMG SRC="/cgi-bin/page_num.cgi?2">
Next <IMG SRC="next.gif">
-gif">
[more-list next.gif prev.gif 0 0] causes anchors of:
- Previous <IMG SRC="prev.gif" Bor Page 1 <IMG SRC="/cgi-bin/page_num.cgi?1">
+ Previous <IMG SRC="prev.gif" Border=0>
+ Page 1 <IMG SRC="/cgi-bin/page_num.cgi?1">
Page 2 <IMG SRC="/cgi-bin/page_num.cgi?2">
Next <IMG SRC="next.gif" Border=0>
-er=0>
To set custom text for the "Previous" and "Next" usually used, define
the next_img, prev_img, and page_img with
[next-anchor][/next-anchor], [prev-anchor][/prev-anchor] and
[page-anchor][/page-anchor]. The string $PAGE$ will be replaced
-with the page number in the latter. The same example:
+with the page number in the latter.
+
+TODO: describe tags generating "First" and "Last" (post 4.9.7)
- [more [next-anchor] Forward | [/next-anchor]
+The same example:
+
+ [more-list]
+ [next-anchor] Forward | [/next-anchor]
[prev-anchor] Back [/prev-anchor]
[page-anchor] Page $PAGE$ (matches $MINPAGE$-$MAXPAGE$) | [/page-anchor]
[more]
[/more-list]
-list]
will display Forward | Page 1 (matches 1-50) | Page 2 (matches
51-77) | Back for 2 pages. Note that the following anchors are
replaced with the page number, the minimum match on the page, and the
maximum match on the page:
- $PAGE$ Page $MINPAGE$ Minimum match on page
+ $PAGE$ Pagenumber
+ $MINPAGE$ Minimum match on page
$MAXPAGE$ Maximum match on page
-umber
You can customize the HTML hyperlink with [link-template]
[/link-template]. This is useful for adding a JavaScript onclick
@@ -270,9 +277,10 @@
There are two tokens you can use as many times as needed in
[link-template], which will be replaced as follows:
- $URL$ The URL for the 'more' page in qu $ANCHOR$ The page number or the word "Next" or "Previous" for the link in question.
+ $URL$ The URL for the 'more' page in question
+ $ANCHOR$ The page number or the word "Next" or "Previous"
+ for the link in question.
-stion
If have many pages of matches and don't wish to have all displayed at
once, set [decade-next][/decade-next] and
@@ -318,4 +326,3 @@
the same as [area search].
=back
-