removes unneeded contentpicker dialog and just uses the standard tree picker that has the correct search built in, now search is working for the link picker.
This commit is contained in:
@@ -81,11 +81,12 @@ namespace Umbraco.Web.Trees
|
||||
entity.HasChildren && (isContainer == false));
|
||||
|
||||
node.AdditionalData.Add("contentType", entity.ContentTypeAlias);
|
||||
|
||||
|
||||
|
||||
if (isContainer)
|
||||
{
|
||||
node.SetContainerStyle();
|
||||
node.AdditionalData.Add("isContainer", true);
|
||||
}
|
||||
|
||||
return node;
|
||||
}
|
||||
|
||||
@@ -82,6 +82,7 @@ namespace Umbraco.Web.Trees
|
||||
false);
|
||||
|
||||
node.AdditionalData.Add("contentType", member.ContentTypeAlias);
|
||||
node.AdditionalData.Add("isContainer", true);
|
||||
|
||||
return node;
|
||||
}
|
||||
@@ -135,6 +136,8 @@ namespace Umbraco.Web.Trees
|
||||
|
||||
//There is no menu for any of these nodes
|
||||
nodes.ForEach(x => x.MenuUrl = null);
|
||||
//All nodes are containers
|
||||
nodes.ForEach(x => x.AdditionalData.Add("isContainer", true));
|
||||
|
||||
return nodes;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user