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:

For those of you not on the WebCatalog Beta... (1997) WebCat2 Append problem (B14Macacgi) (1997) Hosting (2000) Fun with Dates - revisited (1997) WebDNA dying or ... ? (2005) Force a search at the default.tmpl page? (1997) re:check boxes (1997) [WebDNA] WebDNA restart script (2015) Summing fields (1997) Mac OS and 3.0.5b12 bug report (1999) Interfacing WC with mail server (1998) Creating a back button (1999) WebCat2: multiple currency support (1997) shipcost (1997) Calendar (1997) Web Catalog 2 demo (1997) default image if image in code not available (2003) RE: Price recalc based on quantity (1997) IRC Channel (2003) Problem (1997)