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:

Webstar 1.3.1 PPC (1997) WebCatalog for Postcards ? (1997) Creating comums (1998) Product Comparison (2000) [defined]ish (1997) [WebDNA] Different results for [THISURL] (2018) [showif] / [hideif] (1997) searching multiple databases in single search (1997) WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997) WebCatalog - Mac vs Linux (2000) Snake Bites (1997) [browsername] not working? (1997) PSC recommends what date format yr 2000??? (1997) Email Formatting (1998) Summing fields (1997) emailer on Windows Beta 18 (1997) paymethod=cc allows all zeros (1999) Repharesed: Web Site Stats (2002) Anomaly ? causes NT application event log to overflow (1997) Modifying order output (1997)