Adds guid to entitybasic
This commit is contained in:
@@ -95,7 +95,7 @@ function entityResource($q, $http, umbRequestHelper) {
|
||||
umbRequestHelper.getApiUrl(
|
||||
"entityApiBaseUrl",
|
||||
"GetById",
|
||||
[{ id: id, type: type }])),
|
||||
[{ id: id}, {type: type }])),
|
||||
'Failed to retreive entity data for id ' + id);
|
||||
},
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
<ul class="umb-search-group" ng-repeat="resultGroup in nav.ui.search.results">
|
||||
<li ng-repeat="result in resultGroup.matches">
|
||||
<div style="padding-left: 20px">
|
||||
<a ng-class="{'first':$first}" ng-href="#/{{resultGroup.editor}}{{result.id}}">
|
||||
<a ng-class="{'first':$first}" ng-href="#/{{resultGroup.editor}}{{result.Id}}">
|
||||
|
||||
<i class="icon umb-tree-icon sprTree {{resultGroup.icon}}" style="height: 100%"></i>
|
||||
{{result.title}}
|
||||
|
||||
@@ -40,17 +40,6 @@ namespace Umbraco.Web.Editors
|
||||
return null;
|
||||
|
||||
return ExamineSearch(query, type);
|
||||
|
||||
/*
|
||||
switch (type)
|
||||
{
|
||||
case UmbracoEntityTypes.Document:
|
||||
|
||||
case UmbracoEntityTypes.Media:
|
||||
return ExamineSearch(query, UmbracoEntityType);
|
||||
default:
|
||||
throw new NotSupportedException("The " + typeof(EntityController) + " currently does not support searching against object type " + type);
|
||||
}*/
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -107,6 +96,7 @@ namespace Umbraco.Web.Editors
|
||||
case UmbracoEntityTypes.Member:
|
||||
searcher = Constants.Examine.InternalMemberSearcher;
|
||||
type = "member";
|
||||
fields = new[] { "id", "email", "login","name", "nodename"};
|
||||
break;
|
||||
case UmbracoEntityTypes.Media:
|
||||
type = "media";
|
||||
|
||||
@@ -23,6 +23,9 @@ namespace Umbraco.Web.Models.ContentEditing
|
||||
[DataMember(Name = "icon")]
|
||||
public string Icon { get; set; }
|
||||
|
||||
[DataMember(Name = "key")]
|
||||
public Guid Key { get; set; }
|
||||
|
||||
[DataMember(Name = "parentId", IsRequired = true)]
|
||||
[Required]
|
||||
public int ParentId { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user