renamed DynamicDocumentList to DynamicPublishedContentList
simplified some of the DynamicPublishedContent methods to accept Func<IPublishedContent> instead of Func<DynamicPublishedContent>, made the IsHelper method private as this shouldn't be exposed. renamed other objects starting with DynamicDocument to DynamicPublishedContent
This commit is contained in:
@@ -144,7 +144,7 @@ namespace umbraco.MacroEngines.Library
|
||||
public dynamic Search(string term, bool useWildCards = true, string searchProvider = null)
|
||||
{
|
||||
//wraps the functionality in UmbracoHelper but still returns the legacy DynamicNodeList
|
||||
var nodes = ((DynamicDocumentList)_umbracoHelper.Search(term, useWildCards, searchProvider))
|
||||
var nodes = ((DynamicPublishedContentList)_umbracoHelper.Search(term, useWildCards, searchProvider))
|
||||
.Select(x => x.ConvertToNode());
|
||||
return new DynamicNodeList(nodes);
|
||||
}
|
||||
@@ -152,7 +152,7 @@ namespace umbraco.MacroEngines.Library
|
||||
public dynamic Search(Examine.SearchCriteria.ISearchCriteria criteria, Examine.Providers.BaseSearchProvider searchProvider = null)
|
||||
{
|
||||
//wraps the functionality in UmbracoHelper but still returns the legacy DynamicNodeList
|
||||
var nodes = ((DynamicDocumentList) _umbracoHelper.Search(criteria, searchProvider))
|
||||
var nodes = ((DynamicPublishedContentList) _umbracoHelper.Search(criteria, searchProvider))
|
||||
.Select(x => x.ConvertToNode());
|
||||
return new DynamicNodeList(nodes);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user