numero = 50684
interpreted = N
texte = Hi BillThis is how I have done the menu:-[!] ------------------------------------------------------------ [/!][!] ---- This is a Search based on price range ----[/!][!] ------------------------------------------------------------ [/!]and the results have been done in this format...[!] ------------------------------------------------------------ [/!][!] ---- Price Search Results ----[/!][!] ------------------------------------------------------------ [/!][showif [search_type]=_PRICE]PRICE RESULTS
[text]range=[the_PRICE][/text] [showif [range]=_small] These Items Cost £50 or Less
[search db=database.db&rnPRICEdatarq=50100&PRICEtype=num&grNO_INVENTORYdatarq=0&NO_INVENTORYtype=num&sort=1&nePRODUCT_IDdatarq=find_all&PRODUCT_IDsumm=T] [founditems] [TITLE] [/founditems] [/search] [/showif]etc etc for the other results...I wasn't quite sure how to go about making a comparison against the databaseto see if a range was available so I could apply the logic:-[search db][showif range=available]menu item[/showif][search db][showif range=available]menu item[/showif][search db][showif range=available]menu item[/showif]I am also unsure as to whether this is the right train of thought... Wouldit be possible to do one search which I could then compare against and usesimilar logic?I guess I am still getting used to all of this so please bare with me...ThanksAlanon 26/5/03 7:15 am, William DeVaul at devaulw@onebox.com wrote:> Sorry, but this is on a thumb keyboard. Can't you use the range> parameter of the search context? I assume that the user selected high> and low values are passed or somehow made available to the search. For> example, if the value apparent in the menu is $10 to $20, the form value> is 'A'. On the search page, 'A' indicates a low range value of $10 and> a high of $20. You could also pass the form value of '$10 - $20' and> then pull out the values from the form variable using grep, listwords or> the like.> > Bill> > > Alan White wrote:> >> To: (WebDNA Talk)>> Date: Mon, 26 May 2003 15:17:21>> Subject: [showif] results returned...>> From: Alan White >> >> Hi>> >> I have just created a menu with various price ranges in it. How do I then>> add a search and [showif] that will allow me to only have these price>> ranges shown if results are found based on the search?>> >> TIA>> >> Alan White>> ------------------------------>> http://www.streethreds.com>> >> >> >> ------------------------------------------------------------->> 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://webdna.smithmicro.com/> > -------------------------------------------------------------> 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://webdna.smithmicro.com/-------------------------------------------------------------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://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Re: [showif] results returned... (Alan White 2003)
Hi BillThis is how I have done the menu:-[!] ------------------------------------------------------------ [/!][!] ---- This is a Search based on price range ----[/!][!] ------------------------------------------------------------ [/!]and the results have been done in this format...[!] ------------------------------------------------------------ [/!][!] ---- Price Search Results ----[/!][!] ------------------------------------------------------------ [/!][showif [search_type]=_PRICE]PRICE RESULTS
[text]range=[the_PRICE][/text] [showif [range]=_small] These Items Cost £50 or Less
[search db=database.db&rnPRICEdatarq=50100&PRICEtype=num&grNO_INVENTORYdatarq=0&NO_INVENTORYtype=num&sort=1&nePRODUCT_IDdatarq=find_all&PRODUCT_IDsumm=T] [founditems] [TITLE] [/founditems] [/search] [/showif]etc etc for the other results...I wasn't quite sure how to go about making a comparison against the databaseto see if a range was available so I could apply the logic:-[search db][showif range=available]menu item[/showif][search db][showif range=available]menu item[/showif][search db][showif range=available]menu item[/showif]I am also unsure as to whether this is the right train of thought... Wouldit be possible to do one search which I could then compare against and usesimilar logic?I guess I am still getting used to all of this so please bare with me...ThanksAlanon 26/5/03 7:15 am, William DeVaul at devaulw@onebox.com wrote:> Sorry, but this is on a thumb keyboard. Can't you use the range> parameter of the search context? I assume that the user selected high> and low values are passed or somehow made available to the search. For> example, if the value apparent in the menu is $10 to $20, the form value> is 'A'. On the search page, 'A' indicates a low range value of $10 and> a high of $20. You could also pass the form value of '$10 - $20' and> then pull out the values from the form variable using grep, listwords or> the like.> > Bill> > > Alan White wrote:> >> To: (WebDNA Talk)>> Date: Mon, 26 May 2003 15:17:21>> Subject: [showif] results returned...>> From: Alan White >> >> Hi>> >> I have just created a menu with various price ranges in it. How do I then>> add a search and [showif] that will allow me to only have these price>> ranges shown if results are found based on the search?>> >> TIA>> >> Alan White>> ------------------------------>> http://www.streethreds.com>> >> >> >> ------------------------------------------------------------->> 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://webdna.smithmicro.com/> > -------------------------------------------------------------> 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://webdna.smithmicro.com/-------------------------------------------------------------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://webdna.smithmicro.com/
Alan White
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...