Re: Changing in a founditems tag
This WebDNA talk-list message is from 1999
It keeps the original formatting.
numero = 23629
interpreted = N
texte = Within your [founditems] loop, put your different chunks of code inside[ShowIf]s based on the [index] value:[FoundItems] [ShowIf [index]=1] Your code for the first item [/ShowIf] [ShowIf [index]!1] Your code for the other items [/ShowIf][/FoundItems]-DaveAt 7:16 AM 2/12/99, Nitai wrote:>Hi,>>I have the following code on a page:>>
>[search db=products.db&wsCategorydatarq=PB_&eqFeaturedatarq=T]>[founditems]>>> SRC=Images/[PhotoName] ALT= border=0> | >>[Artikel] | >>Fr. [format .2f][lookup>db=prices.db&lookInField=sku&value=[sku]&returnField=price][/format] | >>
>[/founditems]>[/search]>
>>Can I make it, that the first founditem is placed in the code above and the>second founditem is placed otherwise, like:>>
[Artikel] | >>
Fr. [format .2f][lookup>db=prices.db&lookInField=sku&value=[sku]&returnField=price][/format] | >>
SRC=Images/[PhotoName] ALT= border=0> | >>What I want to do is to put each founditem somewhere else.>>Do I have to go back to read the manual:-) or can't this be done.>>Sincerely,>Nitai>>***>MacTrade - http://www.mactrade.ch>More Mac for your money>EMail: Info@mactrade.ch>Fax: 052 / 654 15 59>***o--------------- Dave MacLeay --+o----------- Digital Frontier --+o--------------- 802.253.8612 --+o--- dave@digitalfrontier.com --+
Associated Messages, from the most recent to the oldest:
Within your
[founditems] loop, put your different chunks of code inside
[showif]s based on the [index] value:
[founditems] [ShowIf [index]=1] Your code for the first item [/ShowIf] [ShowIf [index]!1] Your code for the other items [/ShowIf][/FoundItems]-DaveAt 7:16 AM 2/12/99, Nitai wrote:>Hi,>>I have the following code on a page:>>
>[search db=products.db&wsCategorydatarq=PB_&eqFeaturedatarq=T]>[founditems]>>>[cart]&sku=[url][sku][/url]> SRC=Images/[PhotoName] ALT= border=0> | >>[Artikel] | >>Fr. [format .2f][lookup>db=prices.db&lookInField=sku&value=[sku]&returnField=price][/format] | >>
>[/founditems]>[/search]>
>>Can I make it, that the first founditem is placed in the code above and the>second founditem is placed otherwise, like:>>
[Artikel] | >>
Fr. [format .2f][lookup>db=prices.db&lookInField=sku&value=[sku]&returnField=price][/format] | >>
[cart]&sku=[url][sku][/url]> SRC=Images/[PhotoName] ALT= border=0> | >>What I want to do is to put each founditem somewhere else.>>Do I have to go back to read the manual:-) or can't this be done.>>Sincerely,>Nitai>>***>MacTrade - http://www.mactrade.ch>More Mac for your money>EMail: Info@mactrade.ch>Fax: 052 / 654 15 59>***o--------------- Dave MacLeay --+o----------- Digital Frontier --+o--------------- 802.253.8612 --+o--- dave@digitalfrontier.com --+
Dave MacLeay
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:
[addlineitems] display (1997)
CommitDatabase vs. CloseDatabase (2001)
b12 cannot limit records returned and more. (1997)
Execute Applescript (1997)
Fwd: Problems with Webcatalog Plug-in (1997)
Bug? (1997)
how do I delete 1 of 2 identical records? (2003)
Search returns all, not 20 (1997)
Browser (agent) stats... (2004)
WebCat b13 CGI -shownext- (1997)
Add - optional parameters textA=.... (1997)
Listserver problem (1997)
sorting dates (1999)
Running 2 two WebCatalog.acgi's (1996)
[sendmail] and [formvariables] (1997)
[OT] Disable/enable field (2003)
Problems with ^ could be solved with [REPLACE CHARACTERS] (1997)
Need help with emailer- 2 issues (1997)
How can I Add several Items into the cart at once? (1997)
MacAuthorize Hub/Client and program linking (1997)