Using ZoneName property directly to avoid bypassing interceptor

--HG--
branch : theming
This commit is contained in:
Louis DeJardin
2010-09-07 01:05:24 -07:00
parent 934965ef6e
commit f5baed69b9
2 changed files with 3 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
@{
var id = Model.Id;
if (id == null) {
if (id == null && Model.ZoneName != null) {
id = (Model.Parent.Id == null ? "" : Model.Parent.Id + "-") + "Zone-" + Model.ZoneName;
}
}

View File

@@ -94,7 +94,8 @@ namespace Orchard.UI.Zones {
dynamic parent = _parent;
dynamic zone = _shapeFactory.Create("Zone", Arguments.Empty());
zone.Parent(_parent).ZoneName(_potentialZoneName);
zone.Parent = _parent;
zone.ZoneName = _potentialZoneName;
parent[_potentialZoneName] = zone;
if (argsCount == 1)