Copied to clipboard

Flag this post as spam?

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


  • Maaz Raza 2 posts 22 karma points
    Feb 29, 2012 @ 12:15
    Maaz Raza
    0

    content accessing problem in Multiple site

    Hi all,

    I have setup three website under one umbraco installation along with shared content repositiory.

    WebSite1 - (www.1.com)
    -- Services
    --Projects
    ---P1
    WebSite2 - (www.2.com)
    -- Services
    --Projects
    WebSite3 - (www.3.com)
    -- Services
    --Projects

    Shared Content Repositiory (with no hostname)
    --News

     

    The problem is when i am setting the useDomainPrefix=false. I can able to access the shared repository content like www.1.com/news.aspx but due to this a problem popped up that i couldn't able to insert the absolute link (link with domain name prefix) in the Tinymce editor for referencing purpose like putting the Website Project 1 link "P1" in the Website 2 or viceversa.

    <a href="/{localLink:1810}">Project 1 of Website 1</a> 

    which is interpreted by NiceUrl function 

    <a href="/p1.aspx">Project 1 of Website 1</a>

     

    and when you click the P1 link from website 2, you will going to have this kind of link.

    https://www.2.com/p1.aspx

    which is wrong. As i know, I can use the useDomainPrefix=true for the solution of this problem but by doing that i won't able to access the Shared Content Repository which has no hostname set on it.

     

    I search alot on the umbraco forum for this problem but i didn't find any solution, please let me know if anyone has any solution or suggestion.

     

    Thanks in Advance :)

  • Jeroen Breuer 4861 posts 12138 karma points MVP 3x admin c-trib
    Feb 29, 2012 @ 12:41
    Jeroen Breuer
    0

    Hmm I think in this case it might be best to copy your Shared Content Repositiory to all 3 sites. You can also read this topic for some other suggestions: http://our.umbraco.org/forum/core/general/21463-General-pages-with-multiple-websites

    Jeroen

  • Maaz Raza 2 posts 22 karma points
    Feb 29, 2012 @ 13:58
    Maaz Raza
    0

    Hi Jeroen,

    The shared content over here is the Newses that's going to be added frequently so in that case copy them to all of the 3 sites is not a better approach i guess.

    I read the thread you shared, i thought to used this appraoch earlier but i found some problem in it as well according to my website structure. Rightnow i am using the useDomainPrefix=false, so i can access the other nodes but in cross referencing the content nodes through Tinymce(by using insert link button) or any other node picker its not working fine. What i am thinking rightnow is to find a way to customize the NiceUrl function. Is that possible?

    and thank you very much for your suggestion :)

    ~maaz

     

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies