Copied to clipboard

Flag this post as spam?

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


  • Sherry Ann Hernandez 320 posts 344 karma points
    Sep 10, 2012 @ 08:05
    Sherry Ann Hernandez
    0

    Get the hostname setup in the root node

    Hi,

    Is there way to get the hostname that I setup for the root node. I'm using version 4.7 and currently my setup have multiple domain website in one umbraco installation.

    Thanks,

    Sherry

  • Rich Green 2246 posts 4008 karma points
    Sep 10, 2012 @ 09:01
    Rich Green
    0

    Hi Sherry,

    Never tried it but I assume umbraco.library:NiceUrlFullPath gets you the full URL of a node, off the top of me head something like the following should work:

    umbraco.library:NiceUrlFullPath($currentPage/ancestor-or-self::*[@level=1]/@id) 

    Rich

  • Sherry Ann Hernandez 320 posts 344 karma points
    Sep 10, 2012 @ 10:38
    Sherry Ann Hernandez
    0

    I'm using an umbracoURLAlias that's why I wanted to get the domain seperately. :)

  • Sherry Ann Hernandez 320 posts 344 karma points
    Sep 10, 2012 @ 10:46
    Sherry Ann Hernandez
    0

    I'm using an umbracoURLAlias that's why I wanted to get the domain seperately. :)

  • 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