[URL] Context not working

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 31405
interpreted = N
texte = I've narrowed the problem down to the URL context on eventslist.tpl. If I select a single word category named test the eventscategory.tpl returns listings for category test. However, if I select a multiword Category Sport Psychology the eventscategory.tpl page sends back a message There were 0 results found for category: Sport --not Sport Psychology. I've triple checked to be sure that my [URL] context is opened and closed properly. I've also compared it to other functioning [url] contexts in my site.Any ideas?Thanks.Robert McPeak wrote:> John -- > > I tried your suggestions (except for the .inc vs. .htm for includes -- later) but still no luck. Why > wouldn't the [url] context work? It works fine on my other pages? > > Any other ideas? > > Robert McPeak wrote: > > > Thanks John for your thoughtful reply. I will implement you suggestions and get back thanks! > > > > John Peacock wrote: > > > > > I can't see anything wrong with eventslist.tpl. It appears that the > > > [url] is not working for some reason. I am assuming that you copied the > > > code from the actual page, instead of retyping it. The first thing I > > > would do is to eliminate the [include] and see if anything changes. You > > > need to get a clean link statement (i.e. no Error: expected). > > > > > > A couple of suggestions about other aspects of your pages. I always > > > name my include files with an extension of .inc, so it is immediately > > > obvious that this is not a full page, either of HTML or WebDNA. Hence > > > I would use header2.inc instead of header2.htm. Secondly, in your > > > results page, eventscategory.tpl, you use [url][category][/url] in plain > > > text. The only times you want to use [url][field][/url] are: > > > > > > 1) when you are passing a field as part of a link > > > 2) when you are testing in [ShowIf] or [HideIf] > > > > > > Anytime when a field could contain spaces or special characters (|^~) > > > you need to wrap it with [url]. If you are just displaying the field > > > in text, you don't need/want it [url]ized. > > > > > > John Peacock > > > > > > Robert McPeak wrote: > > > > > > > > Hey Guys. Good morning. This one should be easy for you experts:) I > > > > think I'm overlooking something obvious. > > > > > > > > Here's my problem: > > > > > > > > When the user clicks on the link below the results page > > > > (eventscategory.tpl) comes back saying There are 0 items in Sport. > > > > > > > > The categories are Sport Psychology and Sport Management. The > > > > location line in the browser on the results page (eventscategory.tpl) > > > > reads: > > > > http://www.fitinfotech.com/eventcategory.tpl?cart=95745085613301&Category=Sport > > > > PsychologyError: Error: expected [/FOUNDITEMS], but found [/url] > > > > instead[/url]&startat=1 > > > > > > > > Here's the eventslist.tpl page. All categories are pulled from events.db > > > > and appear correctly on this page. > > > > > > > > > > > > > > > > ADD YOUR EVENT TO THE FIT DATABASE! > > > > [Include file=header2.htm]
> > > > > > > > [search db=events.db&gedatedata=0&categorysumm=t&ascategorysort=1] > > > > > > > > [founditems] > > > > > > > href=eventcategory.tpl?cart=[cart]&category=[url][category][/url]&startat=1>[category]
> > > > > > > > [/foundItems] > > > > [/search] > > > > > > > > This is my Results page: eventscategory.tpl > > > > > > > > > > > > > > > > > > > > Results of Your Search for Conferences & Events in > > > > [category] > > > > > > > > > > > > [Include file=header2.htm] > > > > > > > > [search db=events.db&eqcategorydata=[category]&asdatesort=1] > > > > > > > >

There are [numFound] conferences & events in [url][category][/url] > > > > currently listed in the FIT database.

> > > > > > > > [foundItems] > > > > > > > > > > > > > > > > > > > > > > > > > > > > [/foundItems] > > > > > > > >
Conference NameDateLocationReg. > > > > Deadline
[description]
> > > > > > > > [/search] > > > > > > > > > > > > > > > > > > > > What am I doing wrong? Thanks. > > > > > > ------------------------------------------------------------- > > > 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 > > > > ------------------------------------------------------------- > > 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 > > ------------------------------------------------------------- > 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 ------------------------------------------------------------- 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 Associated Messages, from the most recent to the oldest:

    
  1. Re: [URL] Context not working (Bob McPeak 2000)
  2. Re: [URL] Context not working (WebDNA Support 2000)
  3. [URL] Context not working (Robert McPeak 2000)
I've narrowed the problem down to the URL context on eventslist.tpl. If I select a single word category named test the eventscategory.tpl returns listings for category test. However, if I select a multiword Category Sport Psychology the eventscategory.tpl page sends back a message There were 0 results found for category: Sport --not Sport Psychology. I've triple checked to be sure that my [url] context is opened and closed properly. I've also compared it to other functioning [url] contexts in my site.Any ideas?Thanks.Robert McPeak wrote:> John -- > > I tried your suggestions (except for the .inc vs. .htm for includes -- later) but still no luck. Why > wouldn't the [url] context work? It works fine on my other pages? > > Any other ideas? > > Robert McPeak wrote: > > > Thanks John for your thoughtful reply. I will implement you suggestions and get back thanks! > > > > John Peacock wrote: > > > > > I can't see anything wrong with eventslist.tpl. It appears that the > > > [url] is not working for some reason. I am assuming that you copied the > > > code from the actual page, instead of retyping it. The first thing I > > > would do is to eliminate the [include] and see if anything changes. You > > > need to get a clean link statement (i.e. no Error: expected). > > > > > > A couple of suggestions about other aspects of your pages. I always > > > name my include files with an extension of .inc, so it is immediately > > > obvious that this is not a full page, either of HTML or WebDNA. Hence > > > I would use header2.inc instead of header2.htm. Secondly, in your > > > results page, eventscategory.tpl, you use [url][category][/url] in plain > > > text. The only times you want to use [url][field][/url] are: > > > > > > 1) when you are passing a field as part of a link > > > 2) when you are testing in [showif] or [hideif] > > > > > > Anytime when a field could contain spaces or special characters (|^~) > > > you need to wrap it with [url]. If you are just displaying the field > > > in text, you don't need/want it [url]ized. > > > > > > John Peacock > > > > > > Robert McPeak wrote: > > > > > > > > Hey Guys. Good morning. This one should be easy for you experts:) I > > > > think I'm overlooking something obvious. > > > > > > > > Here's my problem: > > > > > > > > When the user clicks on the link below the results page > > > > (eventscategory.tpl) comes back saying There are 0 items in Sport. > > > > > > > > The categories are Sport Psychology and Sport Management. The > > > > location line in the browser on the results page (eventscategory.tpl) > > > > reads: > > > > http://www.fitinfotech.com/eventcategory.tpl?cart=95745085613301&Category=Sport > > > > PsychologyError: Error: expected [/FOUNDITEMS], but found [/url] > > > > instead[/url]&startat=1 > > > > > > > > Here's the eventslist.tpl page. All categories are pulled from events.db > > > > and appear correctly on this page. > > > > > > > > > > > > > > > > ADD YOUR EVENT TO THE FIT DATABASE! > > > > [Include file=header2.htm]
> > > > > > > > [search db=events.db&gedatedata=0&categorysumm=t&ascategorysort=1] > > > > > > > > [founditems] > > > > > > > href=eventcategory.tpl?cart=[cart]&category=[url][category][/url]&startat=1>[category]
> > > > > > > > [/foundItems] > > > > [/search] > > > > > > > > This is my Results page: eventscategory.tpl > > > > > > > > > > > > > > > > > > > > Results of Your Search for Conferences & Events in > > > > [category] > > > > > > > > > > > > [Include file=header2.htm] > > > > > > > > [search db=events.db&eqcategorydata=[category]&asdatesort=1] > > > > > > > >

There are [numFound] conferences & events in [url][category][/url] > > > > currently listed in the FIT database.

> > > > > > > > [founditems] > > > > > > > > > > > > > > > > > > > > > > > > > > > > [/foundItems] > > > > > > > >
Conference NameDateLocationReg. > > > > Deadline
[description]
> > > > > > > > [/search] > > > > > > > > > > > > > > > > > > > > What am I doing wrong? Thanks. > > > > > > ------------------------------------------------------------- > > > 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 > > > > ------------------------------------------------------------- > > 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 > > ------------------------------------------------------------- > 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 ------------------------------------------------------------- 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 Robert McPeak

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:

BBEdit WedDNA Codeless Language Module (2004) LetterRip and WebCat & more (1998) lookup command (1999) [BULK] [WebDNA] Cloud Server install notes - Ubuntu 14.04 (2018) Summing fields (1997) Country & Ship-to address & other fields ? (1997) Document contains no data... (1999) Beta5??? (2000) ReturnRaw context (1997) Paths (2000) [replaceChars] would be nice ... (1997) RE: Help name our technology! (1997) Going to OSX 10.4 Tiger - WebDNA 6 (2006) WCS Newbie question (1997) Time for a hard questions. (1997) WCS Newbie question (1997) WebCat editing, SiteGuard & SiteEdit (1997) [OT] RSS Feeds (2007) PCS Frames (1997) [delete] problem (1997)