Re: [switch][case]
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 57769
interpreted = N
texte = Try setting a state variable that indicates whether you've already processed the page with an override, and skip the whole listfiles loop if you have...[text]done=F[/text][switch value=[url][getchars start=2][p][/getchars][/url]][case value=index.html] TEST [text]done=T[/text][/case][hideif [done]=T][listfiles path=../new/][showif [isfile]=t][case value=[filename]][include file=../new/[filename]][/case][/showif][/listfiles][/hideif][default][redirect controller.html?p=/index.html][/default][/switch]- brianOn May 11, 2004, at 6:02 PM, Jesse Proudman wrote:> Basically I'm trying to build a controller file that will include > every html file from a different site unless I override the page with > a new command.>> This is the actual code I've built so far:>> [switch value=[url][getchars start=2][p][/getchars][/url]]> [case value=index.html]> TEST> [/case]> [listfiles path=../new/]> [showif [isfile]=t]> [case value=[filename]]> [include file=../new/[filename]]> [/case]> [/showif]> [/listfiles]> [default]> [redirect controller.html?p=/index.html]> [/default]> [/switch]>> On May 11, 2004, at 4:52 PM, Dave Hurley wrote:>>> If you only want to display "One", what is the loop for? It seems >> unnecessary.>> -- > Jesse Williams-Proudman> Blue Box Development :: Custom Web Solutions> +1.206.778.8777 :: jesse@blueboxdev.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/>>-- Brian Fries, BrainScan Software -- http://www.brainscansoftware.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:
Try setting a state variable that indicates whether you've already processed the page with an override, and skip the whole listfiles loop if you have...[text]done=F[/text][switch value=[url][getchars start=2][p][/getchars][/url]][case value=index.html] TEST [text]done=T[/text][/case][hideif [done]=T][listfiles path=../new/][showif [isfile]=t][case value=[filename]][include file=../new/[filename]][/case][/showif][/listfiles][/hideif][default][redirect controller.html?p=/index.html][/default][/switch]- brianOn May 11, 2004, at 6:02 PM, Jesse Proudman wrote:> Basically I'm trying to build a controller file that will include > every html file from a different site unless I override the page with > a new command.>> This is the actual code I've built so far:>> [switch value=[url][getchars start=2][p][/getchars][/url]]> [case value=index.html]> TEST> [/case]> [listfiles path=../new/]> [showif [isfile]=t]> [case value=[filename]]> [include file=../new/[filename]]> [/case]> [/showif]> [/listfiles]> [default]> [redirect controller.html?p=/index.html]> [/default]> [/switch]>> On May 11, 2004, at 4:52 PM, Dave Hurley wrote:>>> If you only want to display "One", what is the loop for? It seems >> unnecessary.>> -- > Jesse Williams-Proudman> Blue Box Development :: Custom Web Solutions> +1.206.778.8777 :: jesse@blueboxdev.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/>>-- Brian Fries, BrainScan Software -- http://www.brainscansoftware.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/
Brian Fries
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:
Max Record length restated as maybe bug (1997)
I forgot (1998)
Implementing Gift Certificates in online store (1998)
date display (1999)
More on the email templates (I like it) (1997)
WebCat2b15MacPlugin - showing [math] (1997)
Repharesed: Web Site Stats (2002)
PCS Frames (1997)
Security Issue (2000)
Images in Globals? (2003)
Subject: Any Newsletters out there (1998)
updating checkbox in a db (1998)
WebCat2b12 CGI Mac -- Problems propagating the cart through (1997)
Instructions for Digest (1997)
getting images' width/height (1998)
WebCat2b13MacPlugin - [math][date][/math] problem (1997)
Country & Ship-to address & other fields ? (1997)
SM: Grep Syntax? (2005)
Trigger date/month/year setting question (2002)
Error:Too many nested [xxx] contexts (1997)