Пример #1
0
        public void Register(IScriptedContentFragmentController controller)
        {
            _widgetController = controller;

            var widget = new ScriptedContentFragmentOptions(FrontUiWidget)
            {
                IsEditable                 = false,
                CanBeThemeVersioned        = false,
                CanHaveHeader              = false,
                CanHaveWrapperCss          = false,
                CanReadPluginConfiguration = false
            };

            widget.Extensions.Add(new PanelContext(_translation));

            controller.Register(widget);
        }
        public void Register(IScriptedContentFragmentController controller)
        {
            Guid adminPanelWidgetId = new Guid("b089b96795074ad1ad130141f62bc937");
            var  options            = new ScriptedContentFragmentOptions(adminPanelWidgetId)
            {
                CanBeThemeVersioned        = true,
                CanHaveHeader              = true,
                CanHaveWrapperCss          = true,
                CanReadPluginConfiguration = true,
                IsEditable = true,
            };

            //options.Extensions.Add(new PanelContext());

            controller.Register(options);


            // throw new NotImplementedException();
            _iScriptedContentFragmentController = controller;
        }