Re: Variables in a Prefernce File

This WebDNA talk-list message is from

2005


It keeps the original formatting.
numero = 62147
interpreted = N
texte = I agree with the others responding to this. Take plenty of time to make very clean code - the extra time is worth it when you replicate the code out among other sites. In Vote.Wa.Gov we used the preferences technique for the last 4 years. In VoteWashington.org we did the same thing in many areas, including the SQL preferences, global preferences and county-level preferences. We send a single variable from page to page to indicate which county we are in; then access the preferences files, and then access a great deal of information accordingly. We have always had good luck with this technique. Creating a new state election system is basically a matter of changing the preferences values, and we are off and runnung. Larry On Jun 8, 2005, at 7:06 AM, Lester wrote: > I'm copying a completed website with its admin area > etc to be used in 3-4 other "similar sites". > > There's 120+ total pages give or take per site. > > It's a chore to hard code all the database calls and > other little things to make it all behave on these > other new sites. > > My question... > If I set up a preference file for each site, and place > the unique db names and whatever else is needed for > each sites individuality, am I asking for trouble > doing this on 4-5 sites on one server??? > > The initial site design being copied yesterday got > 1788 unique visitors with 108,000+ total pages views. > > I'm on windows 2003 server using webcat 4.51, 1 gig of > ram, my databases aren't that large and won't get that > large. > > I guess I'm wondering if these soon to be hundreds and > hundreds of pages across 3-4 domains with preference > files snatching and inserting variables in all those > pages is a good way to go versus me hardcodong the > info individually into pages. Can I assume webcat can > handle this well? > > Opinions appreciated. > > I'm away until late afternoon when I need to decide > which direction to continue this in... > > Thanks > > > > lester > > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > ------------------------------------------------------------- > 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 digest@talk.smithmicro.com> > Web Archive of this list is at: http://webdna.smithmicro.com/ > ------------------------------------------------------------------------ ------ "Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote." --Benjamin Franklin Larry Hewitt 360.807.1100 OFFICE HCO, LLC 360.807.1103 FAX 109 No. Tower 360.880.4855 CELL P.O. Box 1017 larryh@hewittco.com Centralia, WA 98531 www.votewashington.org www.hewittco.com ------------------------------------------------------------- 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: Variables in a Prefernce File ( Stuart Tremain 2005)
  2. Re: Variables in a Prefernce File ( Gary Krockover 2005)
  3. Re: Variables in a Prefernce File ( Clint Davis 2005)
  4. Re: Variables in a Prefernce File ( Larry Hewitt 2005)
  5. Re: Variables in a Prefernce File ( John Peacock 2005)
  6. Re: Variables in a Prefernce File ( Donovan Brooke 2005)
  7. Variables in a Prefernce File ( Lester 2005)
I agree with the others responding to this. Take plenty of time to make very clean code - the extra time is worth it when you replicate the code out among other sites. In Vote.Wa.Gov we used the preferences technique for the last 4 years. In VoteWashington.org we did the same thing in many areas, including the SQL preferences, global preferences and county-level preferences. We send a single variable from page to page to indicate which county we are in; then access the preferences files, and then access a great deal of information accordingly. We have always had good luck with this technique. Creating a new state election system is basically a matter of changing the preferences values, and we are off and runnung. Larry On Jun 8, 2005, at 7:06 AM, Lester wrote: > I'm copying a completed website with its admin area > etc to be used in 3-4 other "similar sites". > > There's 120+ total pages give or take per site. > > It's a chore to hard code all the database calls and > other little things to make it all behave on these > other new sites. > > My question... > If I set up a preference file for each site, and place > the unique db names and whatever else is needed for > each sites individuality, am I asking for trouble > doing this on 4-5 sites on one server??? > > The initial site design being copied yesterday got > 1788 unique visitors with 108,000+ total pages views. > > I'm on windows 2003 server using webcat 4.51, 1 gig of > ram, my databases aren't that large and won't get that > large. > > I guess I'm wondering if these soon to be hundreds and > hundreds of pages across 3-4 domains with preference > files snatching and inserting variables in all those > pages is a good way to go versus me hardcodong the > info individually into pages. Can I assume webcat can > handle this well? > > Opinions appreciated. > > I'm away until late afternoon when I need to decide > which direction to continue this in... > > Thanks > > > > lester > > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > ------------------------------------------------------------- > 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 digest@talk.smithmicro.com> > Web Archive of this list is at: http://webdna.smithmicro.com/ > ------------------------------------------------------------------------ ------ "Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote." --Benjamin Franklin Larry Hewitt 360.807.1100 OFFICE HCO, LLC 360.807.1103 FAX 109 No. Tower 360.880.4855 CELL P.O. Box 1017 larryh@hewittco.com Centralia, WA 98531 www.votewashington.org www.hewittco.com ------------------------------------------------------------- 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/ Larry Hewitt

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:

Searching Multiple Databases (2000) Serving images from databases (1998) WebCat2 beta 11 - new prefs ... (1997) inconsistencies (1999) Database Path (1998) Re1000001: Setting up shop (1997) Search Engines (2002) Online reference (1997) Signal Raised Error (Part III) (1997) more [sendmail] woes.. (2000) Re:Signal Raised (1997) Overridding E-Mailer (1998) Questions To Answer (1997) Pithy questions on webcommerce & siteedit (1997) Security for malls with different webmasters (1998) Can't add a field (1998) For those of you not on the WebCatalog Beta... (1997) webcat nt (1997) webcatalog [date] bug (1999) Error: Too many nested [xxx] contexts (1997)