Adding shape tree plus synchronization

--HG--
branch : dev
This commit is contained in:
Sebastien Ros
2011-03-12 16:18:33 -08:00
parent 0d83b97cc3
commit 6dc7f927bd
4 changed files with 197 additions and 15 deletions

View File

@@ -6,6 +6,7 @@ using Orchard.DisplayManagement.Shapes;
using Orchard.Environment.Extensions;
using Orchard.FileSystems.WebSite;
using Orchard.Themes;
using Orchard.UI;
namespace Orchard.DesignerTools.Services {
[OrchardFeature("Orchard.DesignerTools")]
@@ -78,6 +79,11 @@ namespace Orchard.DesignerTools.Services {
if (shapeMetadata.PlacementSource != null && _webSiteFolder.FileExists(shapeMetadata.PlacementSource)) {
context.Shape.PlacementContent = _webSiteFolder.ReadFile(shapeMetadata.PlacementSource);
}
// Inject the Zone name
if(shapeMetadata.Type == "Zone") {
shape.Hint = ((Zone) shape).ZoneName;
}
}