Exemplo n.º 1
0
        private void ExportElement(ExportElementContext context)
        {
            var element = (Widget)context.Element;
            var widgetId = element.WidgetId;
            var widget = widgetId != null ? _contentManager.Value.Get(widgetId.Value, VersionOptions.Latest) : default(ContentItem);
            var widgetIdentity = widget != null ? _contentManager.Value.GetItemMetadata(widget).Identity.ToString() : default(string);

            if (widgetIdentity != null)
                context.ExportableData["WidgetId"] = widgetIdentity;
        }
 void IElementEventHandler.Exported(ExportElementContext context) { }
Exemplo n.º 3
0
 public override void Exporting(ExportElementContext context)
 {
     InvokeDrivers(context.Element, driver => driver.Exporting(context));
 }
        private void ExportElement(ExportElementContext context) {
            var element = (PlaceableContentItem)context.Element;
            var contentItemId = element.ContentItemId;
            var contentItem = contentItemId != null ? _contentManager.Value.Get(contentItemId.Value, VersionOptions.Latest) : default(ContentItem);
            var contentItemIdentity = contentItem != null ? _contentManager.Value.GetItemMetadata(contentItem).Identity.ToString() : default(string);

            if (contentItemIdentity != null)
                context.ExportableData["ContentItemId"] = contentItemIdentity;
        }
Exemplo n.º 5
0
 protected virtual void OnExporting(TElement element, ExportElementContext context)
 {
 }
Exemplo n.º 6
0
 public void Exporting(ExportElementContext context)
 {
     OnExporting((TElement)context.Element, context);
 }
Exemplo n.º 7
0
 public virtual void Exporting(ExportElementContext context)
 {
 }