Re: Input appreciated

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 34357
interpreted = N
texte = >Being new to WebCatalog I would appreciate some input on how to best >accomplish this task. I need to show up to 4 different pages of >information about a person. The basic information of SKU, name, >address, etc. comes from a database. I then use support files named with >the SKU value and then an extension (10101.jpg, 10101.txt or 10101.gif) >to provide the additional information needed on the .tpl pages. All >pretty basic thus far, but here's where I need help. Because of the >level of service a someone purchases, not every person will utilize all >4 pages. They may only have information for page 1 & 2 or 1, 3 & 4. I >want to display some message for the pages that aren't being used that >says this option wasn't selected originally but can be now. > >What do or how can I evaluate a page to see if it contains information >or if it needs the this option wasn't... message displayed?You need a field in your database that can be checked to see what level of service each person has. Maybe you can have several different fields, one for each type of service.Put yes in the field only if the person has that service. Then it's a simple matter to use a showif's inside your founditems context to show or hide the specific data related to each of those fields:If the field has yes in it, show the related data:[founditems][showif [field]=yes] stuff related to field 01 goes here ... [/showif][showif [field]!yes] this option wasn't... message goes here ... [/showif][/founditems] ================================ Kenneth Grome, WebDNA Consultant 808-737-6499 http://webdna.net ================================------------------------------------------------------------- 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://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Input appreciated (Alan 2000)
  2. Re: Input appreciated (Robert McPeak 2000)
  3. Re: Input appreciated (Kenneth Grome 2000)
  4. Input appreciated (Alan 2000)
>Being new to WebCatalog I would appreciate some input on how to best >accomplish this task. I need to show up to 4 different pages of >information about a person. The basic information of SKU, name, >address, etc. comes from a database. I then use support files named with >the SKU value and then an extension (10101.jpg, 10101.txt or 10101.gif) >to provide the additional information needed on the .tpl pages. All >pretty basic thus far, but here's where I need help. Because of the >level of service a someone purchases, not every person will utilize all >4 pages. They may only have information for page 1 & 2 or 1, 3 & 4. I >want to display some message for the pages that aren't being used that >says this option wasn't selected originally but can be now. > >What do or how can I evaluate a page to see if it contains information >or if it needs the this option wasn't... message displayed?You need a field in your database that can be checked to see what level of service each person has. Maybe you can have several different fields, one for each type of service.Put yes in the field only if the person has that service. Then it's a simple matter to use a showif's inside your founditems context to show or hide the specific data related to each of those fields:If the field has yes in it, show the related data:[founditems][showif [field]=yes] stuff related to field 01 goes here ... [/showif][showif [field]!yes] this option wasn't... message goes here ... [/showif][/founditems] ================================ Kenneth Grome, WebDNA Consultant 808-737-6499 http://webdna.net ================================------------------------------------------------------------- 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://search.smithmicro.com/ 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:

WebCatalog v2.1.1 (1998) Bug Report, maybe (1997) Stopping bad HTML propagation ? (1997) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) Navigator 4.01 (1997) [WebDNA] Setting up a new server, hierarchy question (2014) WebCat NT v. Mac (1997) Interesting speed comparison .. (2003) update on wn searching (1997) OT: 800x600 (2003) Tab Charactor (1997) Groups doesn't work (1997) Help! WebCat2 bug (1997) Re:no [search] with NT (1997) Using Plug-In while running 1.6.1 (1997) [shownext] and descending order (1997) WriteFile is there a max size? (1998) Multiple SSL Keys (1998) Proper file locations (1997) Security Issue (1999)