Copied to clipboard

Flag this post as spam?

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


  • Michiel 137 posts 294 karma points
    Oct 12, 2011 @ 14:35
    Michiel
    0

    How can I get hostnames and languages for a DynamicNode?

    I don“t know the APIs for managing hostnames.

  • Rodion Novoselov 694 posts 859 karma points
    Oct 12, 2011 @ 14:45
    Rodion Novoselov
    0

    Hi. Try to use:

    umbraco.cms.businesslogic.web.Domain.GetDomainById(nodeid)

    It seems to return an array of domains associated with the given node.

  • Michiel 137 posts 294 karma points
    Oct 14, 2011 @ 12:42
    Michiel
    0

    Thanks, that works indeed. I hope an API will be added to DynamicNode for use in Razor, something like:

    @Model.Hostnames

    @Model.Hostnames.Locale

    @Model.Hostnames.First()

     

  • 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