When i access any of the pages i need to connect the domain belonging to a site so that i can recive a product listing from a DB table. All pages will be based on the same Document Type.
I need advice in how to set up the strukture to receive this information.
Im thinking of adding a event to Domain.BeforeSave that ads information to a db table which hold company ID and relating domain id that will be constructed. This would be simple to access from the public site.
Is this the right way to handle this problem, or does Umbraco have some nice library i can use to identify which company site im using?
By the way. I dont use xslt for the public site, everything will be done in user controls.
Connection site with domain
Hi,
In my backend I'v got the following strukture.
Root
- Company A (domain companyA.mydomain.com)
-- page1_siteA
-- page2_siteA
- Company B(domain companyB.mydomain.com)
-- page1_siteB
When i access any of the pages i need to connect the domain belonging to a site so that i can recive a product listing from a DB table. All pages will be based on the same Document Type.
I need advice in how to set up the strukture to receive this information.
Im thinking of adding a event to Domain.BeforeSave that ads information to a db table which hold company ID and relating domain id that will be constructed. This would be simple to access from the public site.
Is this the right way to handle this problem, or does Umbraco have some nice library i can use to identify which company site im using?
By the way. I dont use xslt for the public site, everything will be done in user controls.
Thanks for any help!
Bye the way, Umbraco rocks!
is working on a reply...