Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 854675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T07:57:42+00:00 2026-05-15T07:57:42+00:00

My client has multiple companies; different names/logos etc, but all the content on the

  • 0

My client has multiple companies; different names/logos etc, but all the content on the sites are identical with the exception of said names/logos.

In a ColdFusion environment, what would be the best way for me to serve up identical content and swap out the logos/company names on the fly so I can keep everything in one spot? Is this a jQuery solution? regex? Or will ColdFusion enable me to deploy this in an efficient manner based on the url and session variables?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T07:57:42+00:00Added an answer on May 15, 2026 at 7:57 am

    I would recommend something similar to what @Ben Doom suggested; though not storing in session scope. Instead, I would recommend using Application scope. There’s no reason to make every user’s session repeat the same information over and over.

    You can get 2 different “applications” (basically just different address spaces) running from the same codebase by giving them different application names. As Ben suggests, I would base the application name on a CGI variable. Using a hash will guarantee that the value will be safe to use as an application name, but won’t be as easy to switch on.

    Application.cfc:

    component {
        this.name = hash(cgi.server_name);
    }
    

    Not all CGI variables are safe — some can be modified by the user (referrer, ip, etc), so if you’re going to use one of those, I recommend doing something like hashing it as I’ve done above to make sure it’s safe to use here… But if you use one of the safe values (like cgi.server_name), then you should be safe using it without hashing/etc.

    In that case, it would be much easier to setup the theme of the display to switch on which application is running:

    Application.cfc:

    component {
        this.name = cgi.server_name;
    }
    

    index.cfm:

    <cfimport prefix="custom" taglib="#expandPath('./layouts')#" />
    <custom:layout theme="#application.applicationname#">
        <!--- your content here --->
    </custom:layout>
    

    layouts/layout.cfm:

    <cfparam name="attributes.theme" default="www.site1.com" />
    <cfif attributes.theme eq "www.site1.com">
        <!--- include content for this theme --->
    <cfelse>
        <!--- include content for this theme --->
    </cfif>
    

    (Tested on Win7/IIS7)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have multiple web sites for my clients and each client has a directory
Scenario: We have a client who has multiple large sites, a huge number of
I have an application that has multiple releases for different clients. For each client
Currently I have a database with the following relationships: One Client has multiple Entities
A client has given me a spreadsheet of hundreds of domain names. My task
My client has a website but doesn't check emails often. He has a lot
I have one application that I sold to multiple clients. Each client has his
I have a distributed client server system which has multiple 'worker' engines and a
I am starting work on a project which has multiple websites for a client.
In one of my programs, there are multiple clients and each client has its

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.