Ok, But setting them up as separate applications will be better long term, then each site can have it's own application scope.
Regards Dale Fraser http://dale.fraser.id.au -----Original Message----- From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mike Kear Sent: Wednesday, 18 October 2006 8:12 PM To: cfaussie@googlegroups.com Subject: [cfaussie] Re: Two or more sites using the same code base I think i have it figured, so all I have to do is make a few changes to the header include file, and a tweak here and there, perhaps a CFIF or two. I'm going to use cgi.Server_Name to identify which domain name the user has come in on, and set that as a session variable. Then i'll have a CFC to work out which set of CSS files to give the header include. That way the logic is separated from the rest of the code, and if the client gets it in his mind ot have more sites, even dozens of sites, it'll be a relatively simple job to change from a basic CFIF to a CFQUERY on a database. Using interchangeable style sheets will account for most of the differences between one version of the site and the others. There'll be a need for a few tweaks here and there - a page included only for one site, and a XML form skin change too. But those can all be done in a few quick cfif's or a CFC. Thanks. It was teh cgi.Server_Name that was the final thing I needed. Cheers Mike Kear Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month On 10/18/06, Dale Fraser <[EMAIL PROTECTED]> wrote: > > Yes, > > 1. Evaluate the domain to work out the site your dealing with > 2. Use this in your <cfapplication tag so that each site is a different > application. > 3. Do conditionals around the application context such as > > <cfif application.applicationName eq "domaina"> > > Makes sense? > > Regards > Dale Fraser > > http://dale.fraser.id.au > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~----------~----~----~----~------~----~------~--~---