Re: WebCat2b13MacPlugIn - [include]

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 10666
interpreted = N
texte = >Ken, you get your [include /file&var1=xx] to work yet?[include] works fine in all situations where I've tried it, with the following warnings:1- If you're going to 'include' a file that has a creator code 'WWW‡, then you *must* place a tag at the top of the page ... or WebCat2 will not include it.2- If you're doing something more complicated with WebDNA than most people, then you may have some problems. I am passing a variable from a hyperlink to the results.tmpl. The results.tmpl has a bunch of [showif] contexts, and there's a different [search] context inside each of these [showif] contexts. WebCat2 looks for the variable I passed to determine which [showif] to show, and it hides all the others.The 'guts' of my results.tmpl (including all the [founditems] and [shownext] tags) are located in a separate file. That file is placed into the results.tmpl by my use of the [include] tag.It seems that this particular configuration allows all the [shownext] links to look okay, but they will always retrieve the *first* group of matching records - instead of retrieving the group they are supposed to retrieve.Please stay tuned. I sent Grant a bunch of my .tmpl and .db files last night - at his request - so he could take a look at the problem and try to find a solution. >The minute I tried to pass a variable it hangs WebStar with or without the >. All my pages, .html or .tmpl are served by webcatalog.Thanks for your response about this 'variable passing' problem you've discovered, Gary. It seems that maybe the passing of variables 'thru' the [include] tag could be related to the problem I mentioned in #2 above. I'm sure Grant will see this message and take your results into consideration in his testing ...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 - [include] (Kenneth Grome 1997)
  2. Re: WebCat2b13MacPlugIn - [include] (Kenneth Grome 1997)
  3. Re: WebCat2b13MacPlugIn - [include] (grichter@panavise.com (Gary Richter) 1997)
  4. Re: WebCat2b13MacPlugIn - [include] doesn't allow creator (Kenneth Grome 1997)
  5. Re: WebCat2b13MacPlugIn - [include] doesn't allow creator (Grant Hulbert 1997)
  6. Re: WebCat2b13MacPlugIn - [include] doesn't allow creator (grichter@panavise.com (Gary Richter) 1997)
  7. Re: WebCat2b13MacPlugIn - [include] doesn't allow creator (Kenneth Grome 1997)
  8. Re: WebCat2b13MacPlugIn - [include] doesn't allow creator (Grant Hulbert 1997)
  9. WebCat2b13MacPlugIn - [include] doesn't allow creator (Kenneth Grome 1997)
>Ken, you get your [include /file&var1=xx] to work yet?[include] works fine in all situations where I've tried it, with the following warnings:1- If you're going to 'include' a file that has a creator code 'WWW‡, then you *must* place a tag at the top of the page ... or WebCat2 will not include it.2- If you're doing something more complicated with WebDNA than most people, then you may have some problems. I am passing a variable from a hyperlink to the results.tmpl. The results.tmpl has a bunch of [showif] contexts, and there's a different [search] context inside each of these [showif] contexts. WebCat2 looks for the variable I passed to determine which [showif] to show, and it hides all the others.The 'guts' of my results.tmpl (including all the [founditems] and [shownext] tags) are located in a separate file. That file is placed into the results.tmpl by my use of the [include] tag.It seems that this particular configuration allows all the [shownext] links to look okay, but they will always retrieve the *first* group of matching records - instead of retrieving the group they are supposed to retrieve.Please stay tuned. I sent Grant a bunch of my .tmpl and .db files last night - at his request - so he could take a look at the problem and try to find a solution. >The minute I tried to pass a variable it hangs WebStar with or without the >. All my pages, .html or .tmpl are served by webcatalog.Thanks for your response about this 'variable passing' problem you've discovered, Gary. It seems that maybe the passing of variables 'thru' the [include] tag could be related to the problem I mentioned in #2 above. I'm sure Grant will see this message and take your results into consideration in his testing ...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:

Help! WebCat2 bug (1997) CVS Files for databases (2000) wierd [cart] action! (1997) New to WebCat, Help. (1998) Posts being converted - arrgh anyone have ideas? (2006) OT: JavaScript question (2001) PHP vs. WebDNA (2003) webcatalog and webmerchant 2.1 (1998) 2 easy questions re: [showif] and [sendmail] (1997) Showing unopened cart (1997) Not reading code (1997) Problems passing [SKU] with $Replace in 2.0 (1997) Items XX to XX shown (1997) I'm new be kind (1997) Help with Search (2004) Trouble with formula.db (1997) Sort Order on a page search (1997) RE: [WebDNA] Basic Search (2008) Sort Order on a page search (1997) Showif Or (2000)