Nested [tags]

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 37584
interpreted = N
texte = Hi, trying to use [loop] to condense a piece of WebDNA that we've been using for a whileWe currently have the following code (in a [founditems][/founditems] context)[showif [bundle1]!] [search db=^/product.db&cart=[cart]&eqSKUdatarq=[bundle1]] [foundItems] [make] / [title]
[spec]
[/founditems] [/search] [/showif][showif [bundle2]!] [search db=^/product.db&cart=[cart]&eqSKUdatarq=[bundle2]] [foundItems] [make] / [title]
[spec]
[/founditems] [/search] [/showif] This is repeated 9 times, each time the variable is changed to bundle3, bundle4, etc. (A lot of code!)Now we'd like to try and condense this by using the [loop] tag, but what we have tried so far fails to work. We assume this is may be because you can't nest WebDNA tags within each other.[loop start=1&end=9&advance=1] [showif [bundle[index]]!] [search db=^/product.db&cart=[cart]&eqSKUdatarq=[bundle[index]]] [foundItems] [make] / [title]
[spec]
[/founditems] [/search] [/showif] [/loop] Anyone done anything similar to this and got it to work?Thanks. ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Nested [tags] (Kenneth Grome 2001)
  2. Re: Nested [tags] (Samuel Renkert 2001)
  3. Re: Nested [tags] (Samuel Renkert 2001)
  4. Re: Nested [tags] (Mark Derrick 2001)
  5. Re: Nested [tags] (Glenn Busbin 2001)
  6. Re: Nested [tags] (Celeste Paul 2001)
  7. Re: Nested [tags] (Anup Setty 2001)
  8. Re: Nested [tags] (Glenn Busbin 2001)
  9. Re: Nested [tags] (Mark Derrick 2001)
  10. Re: Nested [tags] (Glenn Busbin 2001)
  11. Re: Nested [tags] (Gene Beljaeff 2001)
  12. Re: Nested [tags] (Anup Setty 2001)
  13. Re: Nested [tags] (Anup Setty 2001)
  14. Nested [tags] (Mark Derrick 2001)
Hi, trying to use [loop] to condense a piece of WebDNA that we've been using for a whileWe currently have the following code (in a [founditems][/founditems] context)[showif [bundle1]!] [search db=^/product.db&cart=[cart]&eqSKUdatarq=[bundle1]] [founditems] [make] / [title]
[spec]
[/founditems] [/search] [/showif][showif [bundle2]!] [search db=^/product.db&cart=[cart]&eqSKUdatarq=[bundle2]] [founditems] [make] / [title]
[spec]
[/founditems] [/search] [/showif] This is repeated 9 times, each time the variable is changed to bundle3, bundle4, etc. (A lot of code!)Now we'd like to try and condense this by using the [loop] tag, but what we have tried so far fails to work. We assume this is may be because you can't nest WebDNA tags within each other.[loop start=1&end=9&advance=1] [showif [bundle[index]]!] [search db=^/product.db&cart=[cart]&eqSKUdatarq=[bundle[index]]] [founditems] [make] / [title]
[spec]
[/founditems] [/search] [/showif] [/loop] Anyone done anything similar to this and got it to work?Thanks. ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Mark Derrick

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:

Extended [ConvertChars] (1997) WebCat2 beta 11 - new prefs ... (1997) Replace Statement (1997) [format xs] freeze (1997) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) Mac: LModelDirector bug fix (1997) multiple search commands (1997) Running 2 two WebCatalog.acgi's (1996) [Case] on OS X (2000) Flash loadVariables (2003) RE: Displaying Location (1997) Problems with [Search] param - Mac Plugin b15 (1997) WriteFile is there a max size? (1998) Using Cookie for client specific info? (1997) Change to UPPERCASE (2000) PCS Frames (1997) PCS Frames (1997) Adding headers to email (1997) Windows 2003 server problem (2005) A quickie question (1997)