Re: [replace][founditems]?
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 55613
interpreted = N
texte = Okay I think I see what's going on here.BTW This is with 4.5.1The [replace][numfound][/replace] DOES return a value.However according to the results from my template when you wrap the [replace] in a [search] the [search]'s [numfound] seems to override the [replace]'s.EX:[search] [text]num1=[numfound][/text] [founditems] [replace][text]num2=[numfound][/text][/replace] [/founditems][/search]This situation will return [num1]=[num2] even though they should be different numbers.I think I read somewhere that nested variables like this were improved/corrected in 5.xCan someone at SMI confirm this?Perhaps I just found my first good reason to upgrade.Thanks,Matt PerosiMatthew A Perosi wrote:> So I know that you are supposed to be able to do *anything* with a > [replace] command that you can do with a [search] command.>> I assumed that a [replace][/replace] would actually return a > [numfound] that I could grab...>> i.e. [replace > db=...&something=something]SOMETHINGELSE=T[text]__numfound=[numfound][/text][/replace] >>> But that does not seem to work. Has anyone else ever tried this?>> I was rather disappointed to find this out, unless I'm doing it wrong.>> Matt Perosi>>> -------------------------------------------------------------> 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:
Okay I think I see what's going on here.BTW This is with 4.5.1The [replace][numfound][/replace] DOES return a value.However according to the results from my template when you wrap the [replace] in a [search] the [search]'s [numfound] seems to override the [replace]'s.EX:[search] [text]num1=[numfound][/text] [founditems] [replace][text]num2=[numfound][/text][/replace] [/founditems][/search]This situation will return [num1]=[num2] even though they should be different numbers.I think I read somewhere that nested variables like this were improved/corrected in 5.xCan someone at SMI confirm this?Perhaps I just found my first good reason to upgrade.Thanks,Matt PerosiMatthew A Perosi wrote:> So I know that you are supposed to be able to do *anything* with a > [replace] command that you can do with a [search] command.>> I assumed that a [replace][/replace] would actually return a > [numfound] that I could grab...>> i.e. [replace > db=...&something=something]SOMETHINGELSE=T[text]__numfound=[numfound][/text][/replace] >>> But that does not seem to work. Has anyone else ever tried this?>> I was rather disappointed to find this out, unless I'm doing it wrong.>> Matt Perosi>>> -------------------------------------------------------------> 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/
Matthew A Perosi
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:
[WebDNA] WebCatalog process dies (2012)
Server IP Address (2003)
summarizing multiple fields (2000)
This list needs a digest: rant, rave... (1997)
Help ! Frustrating Problem (1999)
HELP WITH DATES (1997)
[WebDNA] Live Currency exchanege rates (2008)
mimeheaders to allow back button to work on a posted page? (2004)
problem (how to mark orders as 'opened') (1998)
[protect admin] (1997)
PIXO with cometsite ... and/or other plugins (1998)
Location of Browser Info.txt file (1997)
Databases.tpl (2000)
storebuilder problems on RedHat 6.1 with webcat 3.08 (2000)
Conversion Database (2001)
Not reading blanks (1998)
webcat and OS 8 (1997)
restarting webcatalog (2002)
Running 2 two WebCatalog.acgi's (1996)
change the number format (1997)