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 1 http://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 WebWarriors Pacific Coast Software | WebCatalog, WebCommerce Solution 11770 Bernardo Plaza Court, #462 | SiteEdit, SiteCheck, PhotoMaster San Diego, CA 92128 | 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com ------------------------------------ To leave this talk list send an email to macjordomo@smithmicro.com with BODY unsubscribe WebDNA-Talk ------------------------------------ Associated Messages, from the most recent to the oldest:

    
  1. Re: WebCat b13 CGI -shownext- (Grant Hulbert 1997)
  2. WebCat b13 CGI -shownext- (Jacques VERNAY 1997)
>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 1 http://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 WebWarriors Pacific Coast Software | WebCatalog, WebCommerce Solution 11770 Bernardo Plaza Court, #462 | SiteEdit, SiteCheck, PhotoMaster San Diego, CA 92128 | 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com ------------------------------------ To leave this Talk List send an email to macjordomo@smithmicro.com with BODY unsubscribe 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:

RAM crash (1998) Performance Tuning (2006) [OT] HTML TAB CODE (2002) [BULK] [WebDNA] [BULK] which of these tags exist in 7.0 (2011) WebCat2b15MacPlugIn - [authenticate] not [protect] (1997) Webcatalog 4.0 - Storebuilder (2000) Re[2]: Re[2]: WebCatalog on Linux (2000) Search returns all, not 20 (1997) accented chars. Please help me! (1998) minimalist shopping cart. (1997) multiple selected Checkboxes (1998) Performance: deafening silence (1999) Database Updates (1997) [WebDNA] bulk e-mail (2011) Linux -> OS X (2002) FW: WebCat Contest (1998) Date problems (1997) empty order (2004) AAgghh!! Help, please. SSL strikes again. (1997) WebCat2b15MacPlugin - showing [math] (1997)