Re: WebCat b13 CGI -shownext-
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 10563
interpreted = N
texte = >Can I use this command outside a search context, in a search command>(like in generalstore beta10 search.tmpl and result.tmpl) for exemple :> >[shownext]
Show Items>[start]-[end]
[/shownext]No it can't be used outside a search context -- but in the GeneralStore example it may be hard to see that it truly is inside a search context, because you arrive at that template from a $Search command, which effectively 'wraps' the entire page inside a search context.IMPORTANT POINT FOR EVERYONE HERE: Sometimes there are two ways your templates can be 'inside' a context. For instance, hyperlinking to a template with the $Search command means that the template is 'inside' the search context created by that command. Same for $ShowCart, $Purchase, $Add, $Remove -- they all effectively 'wrap' the template inside an [OrderFile] context.So the following two are equivalent:*******Example 1http://blah.com/Results.tmpl$search?db=xx&eqNamedata=xx-----Results.tmpl-----[numFound][foundItems]...[/foundItems][shownext]..[/shownext]----------------------(this template is 'inside' a search context when you link to it with a $Search command)*******Example 2------Any template.tmpl-----[Search db=xx&eqNamedata=xx] [numFound] [foundItems]...[/foundItems] [shownext]..[/shownext][/Search]----------------------------(this template has an 'embedded' search built right into it. The visitor can simply link to this page without any $Search in the URL)The same goes for [OrderFile] contexts. When you link to a template with an $Add command or $ShowCart command, the entire template is 'wrapped' inside an [OrderFile] context. But if you wanted to , you coul embed and [OrderFile] context on a page anywhere so you could get at the tags such as [grandTotal].-------Embedded OrderFile.tmpl--------[OrderFile ShoppingCarts/2942931451] [Name], [Address1], [GrandTotal] [LineItems] [Sku], [price] [/LineItems][/OrderFile]Grant Hulbert, V.P. Engineering | Tools for WebWarriorsPacific Coast Software | WebCatalog, WebCommerce Solution11770 Bernardo Plaza Court, #462 | SiteEdit, SiteCheck, PhotoMasterSan Diego, CA 92128 |619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com------------------------------------To leave this talk list send an email tomacjordomo@smithmicro.comwith BODYunsubscribe WebDNA-Talk------------------------------------
Associated Messages, from the most recent to the oldest:
>Can I use this command outside a search context, in a search command>(like in generalstore beta10 search.tmpl and result.tmpl) for exemple :> >
[shownext][url][searchstring][/url]>Show Items>[start]-[end]
[/shownext]No it can't be used outside a search context -- but in the GeneralStore example it may be hard to see that it truly is inside a search context, because you arrive at that template from a $Search command, which effectively 'wraps' the entire page inside a search context.IMPORTANT POINT FOR EVERYONE HERE: Sometimes there are two ways your templates can be 'inside' a context. For instance, hyperlinking to a template with the $Search command means that the template is 'inside' the search context created by that command. Same for $ShowCart, $Purchase, $Add, $Remove -- they all effectively 'wrap' the template inside an
[orderfile] context.So the following two are equivalent:*******Example 1http://blah.com/Results.tmpl$search?db=xx&eqNamedata=xx-----Results.tmpl-----[numFound]
[founditems]...[/foundItems]
[shownext]..[/shownext]----------------------(this template is 'inside' a search context when you link to it with a $Search command)*******Example 2------Any template.tmpl-----[Search db=xx&eqNamedata=xx] [numFound]
[founditems]...[/foundItems]
[shownext]..[/shownext][/Search]----------------------------(this template has an 'embedded' search built right into it. The visitor can simply link to this page without any $Search in the URL)The same goes for
[orderfile] contexts. When you link to a template with an $Add command or $ShowCart command, the entire template is 'wrapped' inside an
[orderfile] context. But if you wanted to , you coul embed and
[orderfile] context on a page anywhere so you could get at the tags such as [grandTotal].-------Embedded OrderFile.tmpl--------[OrderFile ShoppingCarts/2942931451] [Name], [Address1], [GrandTotal]
[lineitems] [Sku], [price] [/LineItems][/OrderFile]Grant Hulbert, V.P. Engineering | Tools for WebWarriorsPacific Coast Software | WebCatalog, WebCommerce Solution11770 Bernardo Plaza Court, #462 | SiteEdit, SiteCheck, PhotoMasterSan Diego, CA 92128 |619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com------------------------------------To leave this
Talk List send an email tomacjordomo@smithmicro.comwith BODYunsubscribe WebDNA-Talk------------------------------------
Grant Hulbert
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Searching Relational Databases (2004)
Attn: Bug in GeneralStore example b15 (1997)
user flush db (2002)
Text data with spaces in them... (1997)
Couple of questions II (1999)
Warning: Mac OS X 10.2.4 Update Overwrites Apache's httpd.conf (2003)
Help! WebCat2 bug (1997)
Template Cache problem, bombing WebSTAR problem (2000)
WebCatalog memory error. (1998)
[WebDNA] annoucement - WebDNA 8.0.2 (2015)
emailer w/F2 (1997)
formatting a number (1999)
Bugs? What Bugs? was:Spawning Holdup? (2000)
OT: Site Downloaders (2002)
problem with NT beta (1997)
Re:2nd WebCatalog2 Feature Request (1996)
REPOST [SUM field=xxxx] (2000)
WebCat2: Items xx to xx shown, etc. (1997)
my price won't move (1997)
[WebDNA] [OT] the "Work in progress" thread. (2009)