Copied to clipboard

Flag this post as spam?

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


  • Lars-Erik Aabech 348 posts 1096 karma points MVP 4x c-trib
    Jun 21, 2013 @ 16:40
    Lars-Erik Aabech
    0

    Any way to get all domains at all (except reflection)

    Hi!

    I've got a multi-site solution where nodes at level 2 or 3 can have domain names.

    In a few cases, I need to figure out which node to traverse from based on its domain.

    To find the node, I have to figure out which Domain I want, then use RootNodeId to find the node.
    I've been using reflection against Domain.GetDomains, but it's a bit volatile.

    Is there no other way (except pure SQL) to get at all the domains?

    I'm not very keen on iterating through nodes and calling Domain.GetDomainById()..

    If not, any reason why it can't be made public?

    Lars-Erik

    (Oh man, am I pissed about having to start FF just to format this correctly. Any pointer on where I should search our at github to fix IE compatibility? non-compat is purely unprofessional, guys ;) )

  • Jeroen Breuer 4861 posts 12138 karma points MVP 3x admin c-trib
    Jun 21, 2013 @ 20:05
    Jeroen Breuer
    0

    Off topic: Here is the github link: https://github.com/umbraco/OurUmbraco

    Jeroen

  • 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