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:

Re:trouble (1997) [WebDNA] Help me install WebDNA (2012) WebCatalog + WebMerchant 2.1 for Windows released (1998) Closing Databases (1998) listfiles-looking for slick solution (1997) Deleting Orders (1997) WC2.0 Memory Requirements (1997) WebCatalog can't find database (1997) Kaaaaahhhhhhhnnnnnnn! (1997) TaxTotal Problem (1997) t or f (1997) form data submission gets truncated (1997) removing commas from a preformatted number (2000) Date Time Oddness (1999) [protect admin] (1997) WebMerchant 1.6 and SHTML (1997) WebCatalog for guestbook ? (1997) Email within tmpl ? (1997) Nesting format tags (1997) insert graphic in email (2000)