WebCat2b13MacPlugIn - More limits on [include]

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 10608
interpreted = N
texte = Grant,I have a strange new problem with [searchstring] not working when I'm trying to do a search from a [search] context which appears on the results template ... while the 'guts' of the results template are in a separate file.I am using [include guts.tmpl] to place the 'guts' into the results template. The [searchstring] tag is inside the 'guts' file, of course. When I click on any of the [shownext] links, they do not bring up the next group of records, they always brings up the exact same records as the original search - even though these search strings 'look like' they are syntactically correct.Why doesn't this work? Is it because the [shownext] context is in a separate file from the [search] context? I didn't think that was supposed to make any difference because [include] *should* make these two files look like a single Results.tmpl file to WebCat2, shouldn't it?Anyone have any idea what's going on here? In case you're interested, here's how I have things set up. Maybe you can see something obvious that I'm overlooking: 1- A visitor clicks this hyperlink: Do a search for 'Ken'2- The results.tmpl has these entries on it - and nothing more:[showif [link]=yyy] [search db=some.db&eqnumberdata=[v.number]&max=2&link=yyy] [include Guts.tmpl] [/search] [/showif][showif [link]=zzz] [search db=some.db&eqnamedata=[v.name]&max=2&link=zzz] [include Guts.tmpl] [/search] [/showif]3- Because of the &link=zzz in the original hyperlink, the results template hides the [showif [link]=yyy] context and shows the [showif [link]=zzz] context. It also includes the Guts.tmpl file. The Guts.tmpl file is as follows: [showif [numfound]=0] No Matching Records Found [/showif][showif [numfound]>0] Here are your Matching Records

[/showif][FoundItems] < -- matching records displayed here [/FoundItems][ShowNext] [start]-[end] [/ShowNext] 4- Here's the [searchstring] that's generated when I click the first and second and third [shownext] links:Results.tmpl$search?db=some.db&eqnamedata=Ken&max=2&link=zzz&StartAt=3 Results.tmpl$search?db=some.db&eqnamedata=Ken&max=2&link=zzz&StartAt=5 Results.tmpl$search?db=some.db&eqnamedata=Ken&max=2&link=zzz&StartAt=75- These links doesn't work. In the first case, istead of retrieving record #3 and 4 like it's supposed to, it retrieves record #1 and 2 again. This happens on each [shownext] link, even though these links 'appear' to be correct (unless I'm blind or something). This is the first time I have ever seen this kind of problem, and it is also the first time I have tried to use [include] to include the 'guts' of a results template ... so maybe there's a connection here? :)Sincerely, Ken ------------------------------------ To leave this talk list send an email to macjordomo@smithmicro.com with BODY unsubscribe WebDNA-Talk ------------------------------------ Associated Messages, from the most recent to the oldest:

    
  1. Re: WebCat2b13MacPlugIn - More limits on [include] (Kenneth Grome 1997)
  2. Re: WebCat2b13MacPlugIn - More limits on [include] (Grant Hulbert 1997)
  3. WebCat2b13MacPlugIn - More limits on [include] (Kenneth Grome 1997)
Grant,I have a strange new problem with [searchstring] not working when I'm trying to do a search from a [search] context which appears on the results template ... while the 'guts' of the results template are in a separate file.I am using [include guts.tmpl] to place the 'guts' into the results template. The [searchstring] tag is inside the 'guts' file, of course. When I click on any of the [shownext] links, they do not bring up the next group of records, they always brings up the exact same records as the original search - even though these search strings 'look like' they are syntactically correct.Why doesn't this work? Is it because the [shownext] context is in a separate file from the [search] context? I didn't think that was supposed to make any difference because [include] *should* make these two files look like a single Results.tmpl file to WebCat2, shouldn't it?Anyone have any idea what's going on here? In case you're interested, here's how I have things set up. Maybe you can see something obvious that I'm overlooking: 1- A visitor clicks this hyperlink: Do a search for 'Ken'2- The results.tmpl has these entries on it - and nothing more:[showif [link]=yyy] [search db=some.db&eqnumberdata=[v.number]&max=2&link=yyy] [include Guts.tmpl] [/search] [/showif][showif [link]=zzz] [search db=some.db&eqnamedata=[v.name]&max=2&link=zzz] [include Guts.tmpl] [/search] [/showif]3- Because of the &link=zzz in the original hyperlink, the results template hides the [showif [link]=yyy] context and shows the [showif [link]=zzz] context. It also includes the Guts.tmpl file. The Guts.tmpl file is as follows: [showif [numfound]=0] No Matching Records Found [/showif][showif [numfound]>0] Here are your Matching Records

[/showif][founditems] < -- matching records displayed here [/FoundItems][shownext] [start]-[end] [/ShowNext] 4- Here's the [searchstring] that's generated when I click the first and second and third [shownext] links:Results.tmpl$search?db=some.db&eqnamedata=Ken&max=2&link=zzz&StartAt=3 Results.tmpl$search?db=some.db&eqnamedata=Ken&max=2&link=zzz&StartAt=5 Results.tmpl$search?db=some.db&eqnamedata=Ken&max=2&link=zzz&StartAt=75- These links doesn't work. In the first case, istead of retrieving record #3 and 4 like it's supposed to, it retrieves record #1 and 2 again. This happens on each [shownext] link, even though these links 'appear' to be correct (unless I'm blind or something). This is the first time I have ever seen this kind of problem, and it is also the first time I have tried to use [include] to include the 'guts' of a results template ... so maybe there's a connection here? :)Sincerely, Ken ------------------------------------ To leave this Talk List send an email to macjordomo@smithmicro.com with BODY unsubscribe WebDNA-Talk ------------------------------------ Kenneth Grome

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:

Bug? (1997) Most Efficiant Way to do restricted Areas (1997) [WebDNA] TCPDoh (2009) NT 4.02b5 Order Lineitems bug. (2000) Smart caching problems with 2.1b3? (1997) all records returned. (1997) Simple way to create unique SKU (1997) problem: type 2 errors (1997) blank page from template (1997) Off Topic: MacOS X Server on iMac (2000) [WebDNA] German e-shop company proclaims "In Memory Computing" (2010) multiple search commands (1997) Search in 2 or more catalogs (1997) Generating Options for a Form. (1997) Bug or syntax error on my part? (1997) Document Contains No Data! (1997) Today's suggestions - 2 More (1998) Order not created error (1997) OT: Weird table rendering w/ WebCat in Explorer (2005) variables in [addlineitem] (1998)