Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • marthin 87 posts 106 karma points
    Sep 09, 2010 @ 12:00
    marthin
    0

    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!

     

     

Please Sign in or register to post replies

Write your reply to:

Draft