Domain-wide prefs... WAS Re: Multiple transactions per cart

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 27278
interpreted = N
texte = At 10:15 AM 2/9/00, Michael O Shea wrote: ... >> this is kinda of related to a feature I would like to see in ver 4. >> It would be great if you could declare variables on a per domain >> basis say from prefs.db >> For example prefs.db could contain, >> INCLUDES_FOLDER INC >> IMAGES_FOLDER GRAPHICS >> PRIMARY_DOMAIN WWW.SOMEDOMAIN.COM >> >> Then to use these name/value pairs we could just reference them as a >> variable like >> It would stop me and I am sure others having to do searches and >> lookups al the time. >>Put your domain prefs in a file in the globals folder. Give the domain prefs a suffix that contains the name of the directory of the host or virtual host. Then open the prefs file in your templates.Domain name = joe.com Mapped to a folder/directory named joe which is in the server's root folder/directory.In the WebCat globals, put a file named joe.prefs with all your variable declarations, or make it a database, whatever.Then use this WebDNA to get the variables into your template:[include file=[Middle StartAfter=/&EndBefore=/][THISURL][/middle].prefs]Of if you're make the prefs into a database, use this:[text]PrefsFileName=[Middle StartAfter=/&EndBefore=/][THISURL][/middle].prefs[/text]and then when you want to search it, use:[search db=[PrefsFileName]&.....]Caveats: I know this works with w* on MacOS if the site's virtual folder is located within the w* root. If the folder is located deeper then the w* root, or if you're running a server other then w* on MacOS, YMMV.___Joe___------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go to .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 Associated Messages, from the most recent to the oldest:

    
At 10:15 AM 2/9/00, Michael O Shea wrote: ... >> this is kinda of related to a feature I would like to see in ver 4. >> It would be great if you could declare variables on a per domain >> basis say from prefs.db >> For example prefs.db could contain, >> INCLUDES_FOLDER INC >> IMAGES_FOLDER GRAPHICS >> PRIMARY_DOMAIN WWW.SOMEDOMAIN.COM >> >> Then to use these name/value pairs we could just reference them as a >> variable like >> It would stop me and I am sure others having to do searches and >> lookups al the time. >>Put your domain prefs in a file in the globals folder. Give the domain prefs a suffix that contains the name of the directory of the host or virtual host. Then open the prefs file in your templates.Domain name = joe.com Mapped to a folder/directory named joe which is in the server's root folder/directory.In the WebCat globals, put a file named joe.prefs with all your variable declarations, or make it a database, whatever.Then use this WebDNA to get the variables into your template:[include file=[Middle StartAfter=/&EndBefore=/][thisurl][/middle].prefs]Of if you're make the prefs into a database, use this:[text]PrefsFileName=[Middle StartAfter=/&EndBefore=/][thisurl][/middle].prefs[/text]and then when you want to search it, use:[search db=[PrefsFileName]&.....]Caveats: I know this works with w* on MacOS if the site's virtual folder is located within the w* root. If the folder is located deeper then the w* root, or if you're running a server other then w* on MacOS, YMMV.___Joe___------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go to .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 Joseph D'Andrea

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:

Calculating multiple shipping... (1997) WebCatalog and WebTen (1997) Date Formats (1997) NT or Mac (1997) Review comparison by PC Magazine: Open for On-line Business (1997) Webcat no longer supported? (2006) more on the Shipcost update problem (1997) [WebDNA] TLS 1.2 and [tcpconnect] (2018) Was UPS Shipping -- Purolator? (1999) Narrowing NT Crashing error (2000) Practice runs ? (1997) WebCat2 beta FTP site (1997) WebCatalog 4.0.1 has been released! OSXS (2000) Protect (1997) Hello??? (1997) SKU lookup (1997) Multiple Replaces (1997) Drop Down Menus (2002) AE aware WebCatalog.acgi? (1997) OT: Amazon Patents (2000)