Doesn't PURL already do this?

http://drupal.org/project/purl

Comments

patcon’s picture

So far as I know, PURL+Spaces works for when you have the (sub)domain depend on the og/user/term/etc. But if, say, you just have the subdomain vary but the base install and DB stay the same, then I don't believe PURL helps. Maybe I'm wrong.

I'm considering how I could add some DNS A records for the domains we want to support -- say sub1.example.com, sub2.example.com and sub3.example.com -- but have only one drupal install in sites/all. (Might need to add symlinks from sites/sub2.example.com to sites/all dirs and settings.php).

The idea is that we could use Context Domain to grab the subdomain as a reaction, and then have the subdomains use different themes or display different block, or whatever.

Haven't tried it yet, but I've hot high hopes for this module helping provide an alternative to Domain Access (which strikes me as messy).

mdroste’s picture

This is a great Module for different contexts on different Domains/Subdomain. I tried PURL+Spaces before, but can't get it to work like Content Domain. It's an ideal solution for Multisites with one DB.

colan’s picture

Status: Active » Closed (works as designed)

PURL is for maintaining state between page loads while this module aims to provide a condition for the Context module that depends on the domain for a single page load.