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 349 posts 1100 karma points MVP 8x 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 4908 posts 12265 karma points MVP 5x admin c-trib
    Jun 21, 2013 @ 20:05
    Jeroen Breuer
    0

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

    Jeroen

Please Sign in or register to post replies

Write your reply to:

Draft