RE: Which [index]?
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 13427
interpreted = N
texte = Steve:>Can WebCatalog handle a situation where there are nested [index]'s? I am a>little bit confused>because both [loop] and [founditems] both use have an optional context>named [index].>Should this outline work? Example:Sure, WebCatalog knows which context to interpret [index] within, so the correct index numbers will show up in both the [loop] index and the [founditems] index - go ahead and try it.>AND, how do I call the loop [index] from within the>[founditems][/founditems] tags?Just set a [math] variable outside the [founditems] context, then refer to this variable inside it. Here's what I used:[loop start=1&end=3] index of loop: [index]
[search db=mydb.db&wonamedata=whatever] [founditems] Index of founditems: [index], [name], [math]urkel[/math]
[/founditems] [/search] index of loop (2nd time): [index]
[/loop]Hope this helps,Marc EagleStarNine Technologieshttp://www.smithmicro.com/
Associated Messages, from the most recent to the oldest:
|
- RE: Which [index]? (Marc Eagle 1997)
|
Steve:>Can WebCatalog handle a situation where there are nested [index]'s? I am a>little bit confused>because both
[loop] and
[founditems] both use have an optional context>named [index].>Should this outline work? Example:Sure, WebCatalog knows which context to interpret [index] within, so the correct index numbers will show up in both the
[loop] index and the
[founditems] index - go ahead and try it.>AND, how do I call the loop [index] from within the>
[founditems][/founditems] tags?Just set a
[math] variable outside the
[founditems] context, then refer to this variable inside it. Here's what I used:[loop start=1&end=3] index of loop: [index]
[search db=mydb.db&wonamedata=whatever]
[founditems] Index of founditems: [index], [name],
[math]urkel[/math]
[/founditems] [/search] index of loop (2nd time): [index]
[/loop]Hope this helps,Marc EagleStarNine Technologieshttp://www.smithmicro.com/
Marc Eagle
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:
FM 4.1 and Webcat? (1998)
Which GUI HTML editors work with WC ? (1997)
Hiding Contexts (2000)
Make sure I understand this??? (1997)
[WebDNA] WebDNA programmers for hire? (2010)
Re[2]: Problem with new formvariables (2000)
Problem with broken images (2004)
Need help with search title (1998)
Limiting user access to .tmpl files (1997)
NetSplat and WebCat2 (1997)
Re[2]: Adding Text (2000)
pictures / referrer etc. (1998)
Problems passing [SKU] with $Replace in 2.0 (1997)
Formulas.db + Users.db (1997)
Not reading code (1997)
Searching by Date Comparison (2000)
Need relative path explanation (1997)
Generating Options for a Form. (1997)
(2001)
WCS Newbie question (1997)