Copied to clipboard

Flag this post as spam?

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


  • Arun 9 posts 29 karma points
    Oct 27, 2011 @ 08:13
    Arun
    0

    Hiding Data on Umbraco WebSite

    Hi All,

                  I created a website using Umbraco which contains some product data. I added two host names for the same directoty and published with two different URL. ex: 1  www.xxx.com  and another with www.xxx.co.in .

    Based on the URL the client browses i need to display /hide data,

    Can any one help me in achieving the above requirement?

     

    Regards

    Arun

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Oct 27, 2011 @ 08:31
    Jan Skovgaard
    0

    Hi Arun

    Have you setup these two different hostnames on the same node?

    If so then you need to make two seperate root node so you can have two separate sites in Umbraco. You can't assign different hostnames to the same node and then show/hide products depending on what site the user is visiting.

    So make a structure like this

    Site 1 (www.xxx.com)
       subpage
       subpage
       subpage
       etc.
    Site 2 (www.xxx.co.in)
       subpage
       subpage
       subpage
       etc.

    Then you should also go to the umbracoSettings.config file in the config folder and set "useDomainPrefixes" to true. When this is done you may need to republish the entire site and restart the application for it to take effect.

    The reasin you need to do this is because you want to make sure that the subpages for each node are unique even if the node name (used for creating the link) is called the same in the different sites.

    I hope this helps :)

    /Jan

  • Arun 9 posts 29 karma points
    Oct 27, 2011 @ 11:28
    Arun
    0

    Hi Jan,

               Thanks for the Reply. The reason why i requested for the above changes is i want to create a "Universal Site" with multiple host names and need to show/hide any content to the client based on the URL.

    If i able to achieve the above then i can run "n" number of sites on a same node by providing different host names

    Regards

    Arun

     

Please Sign in or register to post replies

Write your reply to:

Draft