mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Adding shape tree plus synchronization
--HG-- branch : dev
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user