I'm developing a portal for clients in SP2010. Each client will have their own copy of the portal (a site collection) branding for them.
Currently I provision all the branding artifacts to the style library using a feature, for one client, but I want to make the deployment dynamic. I.e. the feature should be able to extract the client name from the URL and use that name to access an SQL config database to pull any necessary settings.
I've done this to populate lists, but I'm wondering how I would go about provisioning a different set of branding files within a feature, depending on the client name?
For example, the logo for client A would be
branding/clientA/logo.png and for client B it would be
branding/clientB/logo.png - only one logo should be provisioned at site collection creation.
It's like I want to programmatically rewrite the
Elements.xml upon feature add. Maybe..
P.S. I'm trying to avoid using PowerShell to do this