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 ;) )
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 ;) )
Off topic: Here is the github link: https://github.com/umbraco/OurUmbraco
Jeroen
is working on a reply...