Re: The [shownext] limitations
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 45799
interpreted = N
texte = Claude Gelinas wrote:> This thread is getting very interesting and I think we're going to > break new grounds so bear with me.> > Right now, this is what the form code looks like to generate the > checkbox choices for the departments:> > [search db=Departments.db&neDepartmentIDdata=0&NameEnsort=1&NameEnsdir=as]> [founditems]>
> [/founditems]> [/search]If you really have 190 departements, you just can't transfer that search string safely as an URL. The only solution I can see, is to replace the shonext link with a shownext *form* where you put all the values into hidden fields in a form and add a button instead of the text link.If, on the other hand there are just 19 departements, you could do something like:[search db=Departments.db&neDepartmentIDdata=0&NameEnsort=1&NameEnsdir=as][founditems]
[/founditems][/search]and then add something like:woDepartmentdatarq[showif [DE10]=T]DE10+[/showif][showif [DE20]=T]DE20+[/showif][showif [DE30]=T]DE30+[/showif]... ...[showif [DE180]=T]DE180+[/showif][showif [DE190]=T]DE190[/showif]to the search criteria on the search results page.That'd solve the problem Brian pointed ot too.Btw, I'm sure somebody has a simpler syntax to achieve the same, but I'm in a bit hurry right now, and besides, my WebCatalog is too old to support [loop] so I don't really know how that tag works.Frank Nordberghttp://www.musicaviva.com-------------------------------------------------------------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 Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Claude Gelinas wrote:> This thread is getting very interesting and I think we're going to > break new grounds so bear with me.> > Right now, this is what the form code looks like to generate the > checkbox choices for the departments:> > [search db=Departments.db&neDepartmentIDdata=0&NameEnsort=1&NameEnsdir=as]> [founditems]> > [/founditems]> [/search]If you really have 190 departements, you just can't transfer that search string safely as an URL. The only solution I can see, is to replace the shonext link with a shownext *form* where you put all the values into hidden fields in a form and add a button instead of the text link.If, on the other hand there are just 19 departements, you could do something like:[search db=Departments.db&neDepartmentIDdata=0&NameEnsort=1&NameEnsdir=as][founditems][/founditems][/search]and then add something like:woDepartmentdatarq[showif [DE10]=T]DE10+[/showif][showif [DE20]=T]DE20+[/showif][showif [DE30]=T]DE30+[/showif]... ...[showif [DE180]=T]DE180+[/showif][showif [DE190]=T]DE190[/showif]to the search criteria on the search results page.That'd solve the problem Brian pointed ot too.Btw, I'm sure somebody has a simpler syntax to achieve the same, but I'm in a bit hurry right now, and besides, my WebCatalog is too old to support [loop] so I don't really know how that tag works.Frank Nordberghttp://www.musicaviva.com-------------------------------------------------------------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 Web Archive of this list is at: http://webdna.smithmicro.com/
Frank Nordberg
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:
Date format problems (1997)
Blocking off access (2005)
PIXO support (1997)
# fields limited? (1997)
Encrypted links ... (2000)
Showing unopened cart (1997)
[WebDNA] CMS in WEBDNA (2009)
normal users.db calls ... (1998)
[date format] w/in sendmail (1997)
building / customizing stores (2000)
generator prob (2001)
Instructions for Digest (1997)
[sendmail] questions... (1997)
[convertchars] limits (1998)
RE: NewCart+Search with one click ? (1997)
question: webmerchant connection (1997)
Latest compatible Apache (2006)
WebCat2b12 - nesting [tags] (1997)
customizing the color of user's pages (1997)
Not reading code (1997)