WebCat2b12 - nesting [tags]

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 10420
interpreted = N
texte = Hi Grant,I wanted to use a single results template for all my searches in a particular database, but sometimes I want to begin the search on a search form page, and other times I want to perform the entire search in a [search] context which appears on the results template.I thought I could do this according to the following results template example, but it doesn't work:[showif [link]=browse][search db=xxx?parametersHere][/showif]text of results page ... [founditems] [/founditems] more text of results page[showif [link]=browse][/search][/showif]This doesn't work, and the results template shows an Error: expected [/search] but found [/showif].This apparently indicates that I cannot place a [/showif] tag inside the [search] context because [search] has precedence over the [showif] contexts when being interpreted in the template. I actually thought the [showif] contexts would be intrepreted first, but I guess I was wrong.Why wouldn't the [showif] contexts be interpreted first? Can you think of any way for me to do what I want to do here?Sincerely, Ken ------------------------------------ To leave this talk list send an email to macjordomo@smithmicro.com with BODY unsubscribe WebDNA-Talk ------------------------------------ Associated Messages, from the most recent to the oldest:

    
  1. Re: WebCat2b12 - nesting [tags] (Kenneth Grome 1997)
  2. Re: WebCat2b12 - nesting [tags] (Grant Hulbert 1997)
  3. WebCat2b12 - nesting [tags] (Kenneth Grome 1997)
Hi Grant,I wanted to use a single results template for all my searches in a particular database, but sometimes I want to begin the search on a search form page, and other times I want to perform the entire search in a [search] context which appears on the results template.I thought I could do this according to the following results template example, but it doesn't work:[showif [link]=browse][search db=xxx?parametersHere][/showif]text of results page ... [founditems] [/founditems] more text of results page[showif [link]=browse][/search][/showif]This doesn't work, and the results template shows an Error: expected [/search] but found [/showif].This apparently indicates that I cannot place a [/showif] tag inside the [search] context because [search] has precedence over the [showif] contexts when being interpreted in the template. I actually thought the [showif] contexts would be intrepreted first, but I guess I was wrong.Why wouldn't the [showif] contexts be interpreted first? Can you think of any way for me to do what I want to do here?Sincerely, Ken ------------------------------------ To leave this Talk List send an email to macjordomo@smithmicro.com with BODY unsubscribe WebDNA-Talk ------------------------------------ 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:

Protect usage (1999) ftp to webstar (2001) This might sound silly... (2000) Checking Webdna is running (2007) How to Display text in empty fields (1997) Denying access by IP address (2000) Signal Raised error (1997) 5.0 Pricing (2003) [WebDNA] macOS 10.13.3 and WebDNA Mac Server 8.5.1 - hick-up (2019) [WebDNA] [announce] CICADA Gold Products (2009) Ooops..Broswer Info.txt (was Web*SSL and WebCatalog) (1997) Separate SSL Server (1997) Ok here is a question? (1997) Error: Too many nested [xxx] contexts (1997) WebCat and MySQL (2004) carriage returns in data (1997) Incorrect Permission Settings (2003) More on the email templates (1997) WebCat2 beta 11 - new prefs ... (1997) StoreBuilder and PayPal (2002)