Copied to clipboard

Flag this post as spam?

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


  • Umbraco 137 posts 294 karma points
    Oct 12, 2011 @ 14:35
    Umbraco
    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.

  • Umbraco 137 posts 294 karma points
    Oct 14, 2011 @ 12:42
    Umbraco
    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()

     

Please Sign in or register to post replies

Write your reply to:

Draft