mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
@@ -34,7 +34,7 @@ namespace Orchard.Projections.Drivers {
|
|||||||
Items = part.Items,
|
Items = part.Items,
|
||||||
Skip = part.Skip,
|
Skip = part.Skip,
|
||||||
QueryRecordId = part.QueryPartRecord == null ? "-1" : part.QueryPartRecord.Id.ToString(),
|
QueryRecordId = part.QueryPartRecord == null ? "-1" : part.QueryPartRecord.Id.ToString(),
|
||||||
Queries = Services.ContentManager.Query<QueryPart>().Join<TitlePartRecord>().OrderBy(x => x.Title).List(),
|
Queries = Services.ContentManager.Query<QueryPart, QueryPartRecord>().Join<TitlePartRecord>().OrderBy(x => x.Title).List(),
|
||||||
};
|
};
|
||||||
|
|
||||||
return shapeHelper.EditorTemplate(TemplateName: TemplateName, Model: model, Prefix: Prefix);
|
return shapeHelper.EditorTemplate(TemplateName: TemplateName, Model: model, Prefix: Prefix);
|
||||||
|
|||||||
@@ -249,7 +249,7 @@ namespace Orchard.Projections.Drivers {
|
|||||||
|
|
||||||
// populating the list of queries and layouts
|
// populating the list of queries and layouts
|
||||||
var layouts = _projectionManager.DescribeLayouts().SelectMany(x => x.Descriptors).ToList();
|
var layouts = _projectionManager.DescribeLayouts().SelectMany(x => x.Descriptors).ToList();
|
||||||
model.QueryRecordEntries = Services.ContentManager.Query<QueryPart>().Join<TitlePartRecord>().OrderBy(x => x.Title).List()
|
model.QueryRecordEntries = Services.ContentManager.Query<QueryPart, QueryPartRecord>().Join<TitlePartRecord>().OrderBy(x => x.Title).List()
|
||||||
.Select(x => new QueryRecordEntry {
|
.Select(x => new QueryRecordEntry {
|
||||||
Id = x.Id,
|
Id = x.Id,
|
||||||
Name = x.Name,
|
Name = x.Name,
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ namespace Orchard.Widgets.Filters {
|
|||||||
|
|
||||||
// Once the Rule Engine is done:
|
// Once the Rule Engine is done:
|
||||||
// Get Layers and filter by zone and rule
|
// Get Layers and filter by zone and rule
|
||||||
IEnumerable<LayerPart> activeLayers = _orchardServices.ContentManager.Query<LayerPart>().ForType("Layer").List();
|
IEnumerable<LayerPart> activeLayers = _orchardServices.ContentManager.Query<LayerPart, LayerPartRecord>().ForType("Layer").List();
|
||||||
|
|
||||||
var activeLayerIds = new List<int>();
|
var activeLayerIds = new List<int>();
|
||||||
foreach (var activeLayer in activeLayers) {
|
foreach (var activeLayer in activeLayers) {
|
||||||
|
|||||||
Reference in New Issue
Block a user