We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19957
    • 1 Posts
    Hi,

    I have a bunch of domains that I want to serve up from a single modx installation. I’d like to do a lookup in the database on a table called domainvars and set up a bunch of variables based on the domain that the request is coming in from. The domainvars table looks like:

    table domainvars
    fields:
    domain
    firstname
    lastname
    address
    color
    [etc...]

    Where would I put this code? Basically all sites would be the same except for a few snippets of text.

    thanks.