mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Fixing ZoneHolding duck typing behavior
--HG-- branch : 1.x
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Orchard.ContentManagement;
|
||||
|
||||
namespace Orchard.Localization.ViewModels {
|
||||
public class AddLocalizationViewModel {
|
||||
@@ -7,6 +8,6 @@ namespace Orchard.Localization.ViewModels {
|
||||
[Required]
|
||||
public string SelectedCulture { get; set; }
|
||||
public IEnumerable<string> SiteCultures { get; set; }
|
||||
public dynamic Content { get; set; }
|
||||
public IContent Content { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,4 @@
|
||||
@using Orchard.ContentManagement
|
||||
@model Orchard.Localization.ViewModels.AddLocalizationViewModel
|
||||
@model Orchard.Localization.ViewModels.AddLocalizationViewModel
|
||||
@{
|
||||
Style.Require("LocalizationAdmin");
|
||||
}
|
||||
@@ -12,6 +11,6 @@
|
||||
<div>
|
||||
@T("This is the <em>{0}</em> variation of {1}",
|
||||
Html.DropDownList("SelectedCulture", new SelectList(siteCultures, Model.SelectedCulture)),
|
||||
Html.ItemEditLink((IContent)Model.Content.ContentItem))
|
||||
Html.ItemEditLink(Model.Content))
|
||||
</div>
|
||||
</fieldset>
|
||||
@@ -72,7 +72,7 @@ namespace Orchard.DisplayManagement.Shapes {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
return base.TryConvert(binder, out result);
|
||||
}
|
||||
|
||||
//public class ShapeBehavior : ClayBehavior {
|
||||
|
||||
Reference in New Issue
Block a user