Copied to clipboard

Flag this post as spam?

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


  • James Lau 37 posts 58 karma points
    Apr 15, 2013 @ 10:38
    James Lau
    0

    v 6.1.0 multi-language

    After v6.1.0, the GetCurrentDomains() will return NULL, if the root node has language setting and no domain name associate with it. Any idea how to fix the following code? 

    Thanks for your help.

    @{
                main[] domains = umbraco.library.GetCurrentDomains(Node.GetCurrent().Id);
                if (domains != null)
                {
                    foreach (Domain d in domains)
                    {
                        @d.Language.CultureAlias
                    }
                }
    }
Please Sign in or register to post replies

Write your reply to:

Draft