Andrew,

 

No you miss read it, that’s what we have here at my Work. Not She who must not be named.

 

Regards
Dale Fraser

 

http://dale.fraser.id.au


From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of Andrew Scott
Sent: Wednesday, 18 October 2006 8:38 PM
To: cfaussie@googlegroups.com
Subject: [cfaussie] Re: Two or more sites using the same code base

 

Dale,

 

I didnt realise she had gone out to that many sites though:-)

 


 

On 10/18/06, Dale Fraser <[EMAIL PROTECTED]> wrote:

I agree with Andrew,

 

I have seen the site he is referring to and it does work well.

 

We have something similar here, where we have about 12 different sites with different data and different settings all working off the one code base.

 

Regards
Dale Fraser

 

http://dale.fraser.id.au


From: cfaussie@googlegroups.com [mailto: cfaussie@googlegroups.com] On Behalf Of Andrew Scott
Sent: Wednesday, 18 October 2006 8:16 PM
To: cfaussie@googlegroups.com
Subject: [cfaussie] Re: Two or more sites using the same code base

 

Mike,

 

Another thing you might conisder if the data needs to be different between sites, is to have some way to say that I need to grab x sites data from the database rather than Y's.

 

I gave you many examples where I did this for one client, and it works extremly well.

 

regards

Andrew Scott


 

On 10/18/06, Mike Kear < [EMAIL PROTECTED]> wrote:


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
-~----------~----~----~----~------~----~------~--~---

Reply via email to