From c13ae2088526d2fdbf7cd5984fab8759aab0ed09 Mon Sep 17 00:00:00 2001 From: Per Ploug Date: Thu, 24 Sep 2015 15:49:17 +0200 Subject: [PATCH] U4-4761: adds overload to treeattribute --- src/Umbraco.Web/Trees/TreeAttribute.cs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/Umbraco.Web/Trees/TreeAttribute.cs b/src/Umbraco.Web/Trees/TreeAttribute.cs index 67543085c1..e3e302fb69 100644 --- a/src/Umbraco.Web/Trees/TreeAttribute.cs +++ b/src/Umbraco.Web/Trees/TreeAttribute.cs @@ -8,6 +8,16 @@ namespace Umbraco.Web.Trees [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)] public class TreeAttribute : Attribute { + /// + /// Initializes a new instance of the class. + /// + /// The app alias. + /// The alias. + public TreeAttribute(string appAlias, + string alias) : this(appAlias, alias, null) + { + } + /// /// Initializes a new instance of the class. /// @@ -20,7 +30,7 @@ namespace Umbraco.Web.Trees /// The sort order. public TreeAttribute(string appAlias, string alias, - string title = "", + string title, string iconClosed = "icon-folder", string iconOpen = "icon-folder-open", bool initialize = true, @@ -35,6 +45,8 @@ namespace Umbraco.Web.Trees SortOrder = sortOrder; } + + public string ApplicationAlias { get; private set; } public string Alias { get; private set; } public string Title { get; private set; }