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] > > > > > > > > > >[/founditems] >[/search] >
SRC=Images/[PhotoName] ALT= border=0>[Artikel]Fr. [format .2f][lookup >db=prices.db&lookInField=sku&value=[sku]&returnField=price][/format]
> >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:

    
  1. Re: Changing in a founditems tag (Dave MacLeay 1999)
  2. Changing in a founditems tag (Nitai 1999)
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] > > > > > > > > > >[/founditems] >[/search] >
[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]
> >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:

WebCat2b12--[searchstring] bug (1997) Trouble with formula.db + more explanation (1997) OT: recover corrupted data (2003) HELP! Only 1/2 of pricing.db loading!?! (1999) Limiting user access to .tmpl files (1997) wrong input values? (1997) Secure Server basic question... (1997) Frames and WebCat (1997) multiple search commands (1997) WC2b15 File Corruption (1997) WebCat for mass emailings (1997) XMLNodes Error (2007) [carts] and databases (1997) Multiple TCPConnects (2002) WebCat2 beta 11 - new prefs ... (1997) WCS Newbie question (1997) Do search engines index .tpl pages? (2006) Where is f2? (1997) Plugin or CGI or both (1997) WCf2 and nested tags (1997)