[docs] Change in QueryTag made by Paul Jordan
Wiki Watch
docs@icdevgroup.org
Sat May 24 00:42:00 2003
You can visit the live page at this URL:
http://www.icdevgroup.org/i/doc/wiki/QueryTag.html
--- tmp/G8dRgijo:63.205.59.62.previous Sat May 24 00:41:09 2003
+++ tmp/G8dRgijo:63.205.59.62.current Sat May 24 00:41:09 2003
@@ -407,3 +407,64 @@
were called within a [perl] tag. The wantarray option is needed
because global subs and usertags are also affected by this unless you
set wantarray.
+
+B<NESTED>
+
+ [query
+ ml=99
+ type=list
+ sp="@@MV_PAGE@@"
+ sql=|
+ SELECT foo1, foo2, foo3
+ FROM bar
+ WHERE someothercol = 'bang'
+ |]
+ [list]
+
+ Here is [sql-param foo1] from outer <br>
+
+
+ [query
+ prefix=usr
+ list_prefix=detail
+ ml=1
+ type=list
+ sp="@@MV_PAGE@@"
+ sql=|
+ SELECT flip
+ FROM flap
+ WHERE flog = 'flan'
+ |]
+
+ [usr-on-match]
+ something was found in the inner!
+ [/usr-on-match]
+
+ [detail]
+
+ Here is [usr-param flip] from inner <br>
+
+ Here is [sql-param foo2] from outer!! <br>
+
+ [/detail]
+ [/query]
+
+
+ Here is [sql-param foo3] from outer!!! <br>
+
+
+ [/list]
+ [on-match]
+ Something was found in the outer query<br>
+ [/on-match]
+ [no-match]
+ Nothing was found in the outer query<br>
+ [/no-match]
+ [more-list]
+ <br>[matches] in the outer query<br>
+ [/more-list]
+ [/query]
+
+Notice the use of 'prefix' and 'list_prefix' on subsequent inner queries.
+
+