mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Merge branch '1.8.x' into 1.x
This commit is contained in:
@@ -21,7 +21,7 @@ namespace Orchard.Core.Containers.Settings {
|
||||
}
|
||||
|
||||
public override IEnumerable<TemplateViewModel> TypePartEditorUpdate(ContentTypePartDefinitionBuilder builder, IUpdateModel updateModel) {
|
||||
if (builder.Name != "ContainerPart")
|
||||
if (builder.Name != "ContainablePart")
|
||||
yield break;
|
||||
|
||||
var model = new ContainableTypePartSettings();
|
||||
|
@@ -16,6 +16,7 @@
|
||||
<fieldset>
|
||||
@Html.LabelFor(m => m.Part.Record.OrderByProperty, T("Order by"))
|
||||
<select id="@Html.FieldIdFor(m => m.Part.Record.OrderByProperty)" name="@Html.FieldNameFor(m => m.Part.Record.OrderByProperty)">
|
||||
@Html.SelectOption(Model.Part.Record.OrderByProperty, "ContainablePart.Weight", T("Weight").Text)
|
||||
@Html.SelectOption(Model.Part.Record.OrderByProperty, "CommonPart.CreatedUtc", T("Date Created").Text)
|
||||
@Html.SelectOption(Model.Part.Record.OrderByProperty, "CommonPart.PublishedUtc", T("Date Published").Text)
|
||||
@Html.SelectOption(Model.Part.Record.OrderByProperty, "TitlePart.Title", T("Title (Title Part)").Text)
|
||||
|
@@ -17,7 +17,7 @@ namespace Orchard.Autoroute.Services {
|
||||
|
||||
public AutoroutePart GetPath(string path) {
|
||||
var autorouteRecord = _autorouteRepository.Table
|
||||
.Where(part => part.DisplayAlias == path && part.ContentItemVersionRecord.Latest && part.ContentItemVersionRecord.Published)
|
||||
.Where(part => part.DisplayAlias == path && part.ContentItemVersionRecord.Published)
|
||||
.FirstOrDefault();
|
||||
|
||||
if (autorouteRecord == null) {
|
||||
|
@@ -228,6 +228,11 @@ namespace Orchard.OutputCache.Filters {
|
||||
}
|
||||
}
|
||||
|
||||
// don't enable public caching for requests with query string
|
||||
if (queryString.AllKeys.Any()) {
|
||||
_maxAge = 0;
|
||||
}
|
||||
|
||||
// compute the cache key
|
||||
_cacheKey = ComputeCacheKey(filterContext, parameters);
|
||||
|
||||
|
@@ -132,6 +132,10 @@ position:absolute;
|
||||
top:1px;
|
||||
width:20px;
|
||||
}
|
||||
.widgets-listed .widgets-zone-widgets h3,
|
||||
.widgets-listed .widgets-zone-widgets .contentType {
|
||||
display: inline;
|
||||
}
|
||||
.widgets-listed .widgets-move {
|
||||
background:url(images/arrows.png) 7px -31px no-repeat;
|
||||
border:0;
|
||||
|
@@ -1,4 +1,5 @@
|
||||
@model Orchard.Widgets.Models.WidgetPart
|
||||
<h2>@Model.TypeDefinition.DisplayName</h2>
|
||||
<fieldset>
|
||||
@Html.LabelFor(widget => widget.Zone, T("Zone"))
|
||||
@Html.DropDownListFor(widget => widget.Zone, new SelectList(Model.AvailableZones))
|
||||
|
@@ -22,7 +22,7 @@
|
||||
foreach (WidgetPart widget in widgets.Where(w => w.Zone == zone).OrderBy(w => w.Position, new Orchard.UI.FlatPositionComparer())) {
|
||||
<li class="widgets-@(widget.LayerId == Model.CurrentLayer.Id ? "this" : "other")-layer widgets-layer-@widget.LayerId@(i == 0 ? " first" : (i == count ? " last" : ""))">
|
||||
@using (Html.BeginFormAntiForgeryPost()) {
|
||||
<h3>@Html.ActionLink(HasText(widget.Title) ? widget.Title : widget.TypeDefinition.DisplayName, "EditWidget", new { @widget.Id, returnUrl })</h3>
|
||||
<h3>@Html.ActionLink(HasText(widget.Title) ? widget.Title : widget.TypeDefinition.DisplayName, "EditWidget", new { @widget.Id, returnUrl })</h3><div class="contentType"> - @widget.TypeDefinition.DisplayName</div>
|
||||
<div class="widgets-actions">
|
||||
@if (widget.LayerId != Model.CurrentLayer.Id) {
|
||||
<button name="moveHere" class="link" type="submit" value="1">@T("Move to current layer")</button>
|
||||
|
Reference in New Issue
Block a user