Sitebuilder ifs not matching [SMSI?]

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 59355
interpreted = N
texte = Hello, I'm receiving no errors but... On the default.tpl in the root directory, the code below has mis-matching [if,then,else] params yet its not throwing errors. Exact snippet of "middletemplate" code below:------------------------------------------------------- [text]middleWidth=*[/text]   [text]REL_ROOT_DIR=[/text] [if "[_MiddleTemplate]"="../subnav.tpl"][then] [!]the pages.db pageid = sec_id in sitemap.db from the intranet [/!] [search db=[REL_ROOT_DIR]admin/sitemap.db&eqSM1_IDdatarq=[pageID]] [founditems] [text multi=t][ListFields db=[REL_ROOT_DIR]admin/sitemap.db][fieldname]=[Interpret][[fieldname]][/Interpret]&[/ListFields][/text] [/founditems] [/search] [/then] [/if] [if ("[_UseIframe]"="Y")|("[_MiddleTemplate]"="ExternalLink")][then]  [text multi=t][search db=[REL_ROOT_DIR]admin/prefs.db&nePREFdata=0][founditems][pref]=[value]&[/founditems][/search][/text] [!]pass all the parameters to the subnav.tpl for the intranet pages[/!] [!] [/then] [!]otherwise, use content they selected from additional pages[/!] [else] [text]path=additionalpages/[_MiddleTemplate][/text] [showif [_MiddleTemplate]^../] [text]path=[middle startafter=../&endbefore=][_MiddleTemplate][/middle][/text] [/showif]  [/else] [/if]  [/then] [else] [include file=additionalpages/[_MiddleTemplate]] [/else] [/if]  -------------------------------------------------------------------------------------------------------------- Donovan -- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE Eucalyptus Design <-Web Development (specializing in eCommerce), -> <-Graphic Design, and Pre-Press Consultation -> ADDRESS:> Donovan Brooke DBA Eucalyptus Design N2862 Summerville Park Rd. Lodi, WI 53555 PH:> 1.608.592.3567 Web:> http://www.euca.us =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o ------------------------------------------------------------- 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:

    
  1. Re: Sitebuilder ifs not matching [SMSI?] ( Donovan Brooke 2004)
  2. Sitebuilder ifs not matching [SMSI?] ( Donovan Brooke 2004)
Hello, I'm receiving no errors but... On the default.tpl in the root directory, the code below has mis-matching [if,then,else] params yet its not throwing errors. Exact snippet of "middletemplate" code below:------------------------------------------------------- [text]middleWidth=*[/text]   [text]REL_ROOT_DIR=[/text] [if "[_MiddleTemplate]"="../subnav.tpl"][then] [!]the pages.db pageid = sec_id in sitemap.db from the intranet [/!] [search db=[REL_ROOT_DIR]admin/sitemap.db&eqSM1_IDdatarq=[pageID]] [founditems] [text multi=t][ListFields db=[REL_ROOT_DIR]admin/sitemap.db][fieldname]=[interpret][[fieldname]][/Interpret]&[/ListFields][/text] [/founditems] [/search] [/then] [/if] [if ("[_UseIframe]"="Y")|("[_MiddleTemplate]"="ExternalLink")][then]  [text multi=t][search db=[REL_ROOT_DIR]admin/prefs.db&nePREFdata=0][founditems][pref]=[value]&[/founditems][/search][/text] [!]pass all the parameters to the subnav.tpl for the intranet pages[/!] [!] [/then] [!]otherwise, use content they selected from additional pages[/!] [else] [text]path=additionalpages/[_MiddleTemplate][/text] [showif [_MiddleTemplate]^../] [text]path=[middle startafter=../&endbefore=][_MiddleTemplate][/middle][/text] [/showif]  [/else] [/if]  [/then] [else] [include file=additionalpages/[_MiddleTemplate]] [/else] [/if]  -------------------------------------------------------------------------------------------------------------- Donovan -- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE Eucalyptus Design <-Web Development (specializing in eCommerce), -> <-Graphic Design, and Pre-Press Consultation -> ADDRESS:> Donovan Brooke DBA Eucalyptus Design N2862 Summerville Park Rd. Lodi, WI 53555 PH:> 1.608.592.3567 Web:> http://www.euca.us =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o ------------------------------------------------------------- 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/ Donovan Brooke

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:

Replace with Producteditor.tpl (2000) [WebDNA] linux linux linux (2009) Repeating Fields (1997) No one gets my client's code for free ... (2005) High ASCII inside [LOOKUP] inside [LISTWORDS] (1998) Not seeing cart info on Invoice.tmpl (was PROBLEM) (1997) WebCat2b12--[searchstring] bug (1997) SMSI (Scott) clues?? Bug fixes for next WebDNA release (2007) Not really WebCat (1997) LetterRip and WebCat & more (1998) Sorting Numbers (1997) 100% sorry about that (1998) Getting Emailer to send mail (1997) US Postal Service API (2007) WCS Newbie question (1997) Missing contexts on NT (1997) Template not found error messages (1997) Re(2): Re(4): Small Bug: ErrorLog.txt/[FORMVARIABLES]/[ORDERFILE] (1998) Calculating times in a different zone ... (2003) Hiding the URL(was Cart ID Duplication) (2001)