Re: WebCat2b13MacPlugIn - [include]
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 10665
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 thefollowing warnings:1- If you're going to 'include' a file that has a creator code 'WWW‡, thenyou *must* place a tag at the top of the page ... orWebCat2 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 hyperlinkto the results.tmpl. The results.tmpl has a bunch of [showif] contexts, andthere'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 intothe results.tmpl by my use of the [include] tag.It seems that this particular configuration allows all the [shownext] linksto look okay, but they will always retrieve the *first* group of matchingrecords - instead of retrieving the group they are supposed to retrieve.Please stay tuned. I sent Grant a bunch of my .tmpl and .db files lastnight - at his request - so he could take a look at the problem and try tofind 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'vediscovered, 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'msure Grant will see this message and take your results into considerationin his testing ...Sincerely,Ken
Associated Messages, from the most recent to the oldest:
>Ken, you get your [include /file&var1=xx] to work yet?
[include] works fine in all situations where I've tried it, with thefollowing warnings:1- If you're going to 'include' a file that has a creator code 'WWW‡, thenyou *must* place a tag at the top of the page ... orWebCat2 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 hyperlinkto the results.tmpl. The results.tmpl has a bunch of
[showif] contexts, andthere'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 intothe results.tmpl by my use of the
[include] tag.It seems that this particular configuration allows all the
[shownext] linksto look okay, but they will always retrieve the *first* group of matchingrecords - instead of retrieving the group they are supposed to retrieve.Please stay tuned. I sent Grant a bunch of my .tmpl and .db files lastnight - at his request - so he could take a look at the problem and try tofind 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'vediscovered, 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'msure Grant will see this message and take your results into considerationin his testing ...Sincerely,Ken
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:
Removing [showif] makes a big difference in speed (1997)
SiteEdit Pro Update Announcement (1997)
Sorting LISTFILES (1997)
Webdna 6 and Fedora Core 2 (2004)
Running _every_ page through WebCat ? (1997)
OT (stupid redirect/refresh question) (2002)
ReplaceFoundItems Problem (2003)
nested context (1998)
[date] insanity! (2001)
Format of Required fields error message (1997)
Extended [ConvertChars] (1997)
Problems when user hit back (2000)
[WebDNA] Snow Leoopard and v7 (2011)
RE: [WebDNA] Ubuntu 14.04 & WebDNA 8.2 (html not rendering) (2017)
Funny Chars (1999)
Forms & Tables (1998)
More on the email templates (1997)
Webcatalog and foreign languages (1998)
quantity minimum problem (1997)
RE: ANother SHOWIF problem (1997)