Example #1
0
    private string GetFirstChildUrl()
    {
        var node = Node;
        var url  = TreePathUtils.GetFirstChildUrl(node.NodeSiteName, node.NodeAliasPath, node.DocumentCulture);

        return(string.IsNullOrEmpty(url) ? GetString("content.menu.nochilddocument") : string.Format("<a target=\"_blank\" href=\"{0}\" >{0}</a>", URLHelper.ResolveUrl(url)));
    }
Example #2
0
    private string GetFirstChildUrl()
    {
        var url = TreePathUtils.GetFirstChildUrl(PageInfoProvider.GetPageInfo(Node.DocumentGUID));

        return(string.IsNullOrEmpty(url) ? GetString("content.menu.nochilddocument") : string.Format("<a target=\"_blank\" href=\"{0}\" >{0}</a>", URLHelper.ResolveUrl(url)));
    }