Re: Creating main- and sub-category search
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 15507
interpreted = N
texte = Hi Monica,I just received 6 separate messages from the WebDNA-Talk listwith your name on them, all with the same questions!I know you're anxious for a reply, but please, you only have to askonce, and then you should sit back and relax ... have a cup of coffee... or take a break for a while. Eventually some nice person willreceive your message, and when he can take the time away from his ownwork, he will write to help you ... :)Okay, let me see if I understand:1- You have three main categories: Videos, Products, and CD-ROMS.2- When someone clicks on one of those main category hyperlinks, thenext page shows a list of subcategory hyperlinks, right?3- When someone clicks on one of the subcategory hyperlinks, the nextpage shows ALL the items in the database that belong to thatsubcategory, right?If this is the way you want your site to work, the main hyperlinks donot have to search a database, but the subcategory links *DO* have tosearch your database ... so the next page can display all the itemsmatching that subcategory search.Now, you also asked about creating a database in one place and movingit somewhere else. That's a no-no unless you change ALL the templatesyou created that still refer to your database in the old location.In other words, when you're working with HTML, things shouldn't bemoved once you start using them, or else you have to go back and makea lot of changes to reflect the fact that you moved some files. Soinstead of moving things around inside a web site, it's easier todecide where you want them from the beginning, then leave them there.The name of your database doesn't have to have a .db or a .txtextension, but it's a good programming practice to use .db when thefile is a database. That just makes life easier, because a quickglance will tell you that it's a database file instead of some otherkind of file ... :)Sincerely,Ken Gromeken@iav.com808-737-6499WebDNA Solutionshttp://www.hui.net/
Associated Messages, from the most recent to the oldest:
Hi Monica,I just received 6 separate messages from the WebDNA-
Talk Listwith your name on them, all with the same questions!I know you're anxious for a reply, but please, you only have to askonce, and then you should sit back and relax ... have a cup of coffee... or take a break for a while. Eventually some nice person willreceive your message, and when he can take the time away from his ownwork, he will write to help you ... :)Okay, let me see if I understand:1- You have three main categories: Videos, Products, and CD-ROMS.2- When someone clicks on one of those main category hyperlinks, thenext page shows a list of subcategory hyperlinks, right?3- When someone clicks on one of the subcategory hyperlinks, the nextpage shows ALL the items in the database that belong to thatsubcategory, right?If this is the way you want your site to work, the main hyperlinks donot have to search a database, but the subcategory links *DO* have tosearch your database ... so the next page can display all the itemsmatching that subcategory search.Now, you also asked about creating a database in one place and movingit somewhere else. That's a no-no unless you change ALL the templatesyou created that still refer to your database in the old location.In other words, when you're working with HTML, things shouldn't bemoved once you start using them, or else you have to go back and makea lot of changes to reflect the fact that you moved some files. Soinstead of moving things around inside a web site, it's easier todecide where you want them from the beginning, then leave them there.The name of your database doesn't have to have a .db or a .txtextension, but it's a good programming practice to use .db when thefile is a database. That just makes life easier, because a quickglance will tell you that it's a database file instead of some otherkind of file ... :)Sincerely,Ken Gromeken@iav.com808-737-6499WebDNA Solutionshttp://www.hui.net/
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:
Size/Color Options (2002)
Cart file not being written (2000)
Sending emails (went[ot] ) (2002)
upgrade? (1997)
Calculating multiple shipping... (1997)
creator code (1997)
Message Board (again:-) (2000)
no global [username] or [password] displayed ... (1997)
Available Server Space? (2004)
Are Talk List Archives off line (2000)
Pass Thru Page? (1998)
Location of Browser Info.txt file (1997)
[WebDNA] Why doesn't middle work as expected? (2009)
WebCat2b13MacPlugIn - More limits on [include] (1997)
Re[2]: New syntax feedback for 4.0 (2000)
Hiding HTML and page breaks (1997)
WebCat2 beta 11 - new prefs ... (1997)
Attn: Bug in GeneralStore example b15 (1997)
[WebDNA] Permissions changing of .db (2013)
Separate SSL Server (1997)