I'm wanting to use EE2 for a SaaS product where account holders view their instance of the service through a subdomain. I'd like to take advantage of channels that combine similar structured content across all accounts, but have the subdomain help limit the content that is displayed to just that account.
So a structure like this:
- my-ee-site.com/ -> Marketing site
- my-ee-site.com/settings -> 404
- account1.my-ee-site.com/ -> Account 1's publicly available content
- account1.my-ee-site.com/settings -> Redirect to account specific login page [logged out] or account owner's settings page [logged in]
I'm considering an accounts channel with a user-editable subdomain mapped to a more permanent account id, that way I can attach more than one member to it. I was also thinking I could also attach this account id to all content during the content creation process so I could easily filter by it (i'd be using safecracker, not through the control panel).
Have you done this before? Are there other routes I should consider?