Edit default widget content (Sub-Groups widget)

Former Member
Former Member

Hi

I have to update "Sub-Groups" at the left administrate tab

I found that widget in the filestorage folder:

filestorage/defaultwidgets/2be81192090d4ceebe3a46d6e23b999a

but can't find it in Widget Studio.

I tried soultion https://community.telligent.com/community/11/w/developer-training/65065/widget-extensions
but in logs recive exception 
Multiple factory default scripted content fragment providers were detected with the same identifier: Telligent.Evolution.Api.Plugins.Administration.SubGroupsContainerPanel, Telligent.Evolution.Platform, verint_test_extension.CustomSubGroupsContainerPanel, verint_test_extension

Also I found next code in Telligent.Evolution.Api.Plugins.Administration.SubGroupsContainerPanel

public void Register(IScriptedContentFragmentController controller)
{
this._widgetController = controller;
ScriptedContentFragmentOptions options = new ScriptedContentFragmentOptions(this.FrontUiWidget)
{
IsEditable = false,
CanBeThemeVersioned = false,
CanHaveHeader = false,
CanHaveWrapperCss = false,
CanReadPluginConfiguration = false
};

options.Extensions.Add((IContextualScriptedContentFragmentExtension) new SubGroupsContainerPanel.PanelContext());
controller.Register(options);
}

Looks like widget marked as unEditable.

Can someone suggest how can I edit it?

Parents
  • Former Member
    0 Former Member

    Magic happens Slight smile

    //Strings.Get(1864897) = b25463f3aed041558ec30bb9af6ae275 - widget folder name
    Guid FrontUiWidget = new Guid(Strings.Get(1864897)); 

    IScriptablePluginService scriptablePluginService = Telligent.Common.Services.Get<IScriptablePluginService>();

    ScriptedContentFragmentOptions options = scriptablePluginService.Get(FrontUiWidget);
    options.IsEditable = true;
    options.CanBeThemeVersioned = true;
    options.CanHaveWrapperCss = true;
    //options.CanReadPluginConfiguration = true;
    //options.CanWritePluginConfiguration = true;

Reply
  • Former Member
    0 Former Member

    Magic happens Slight smile

    //Strings.Get(1864897) = b25463f3aed041558ec30bb9af6ae275 - widget folder name
    Guid FrontUiWidget = new Guid(Strings.Get(1864897)); 

    IScriptablePluginService scriptablePluginService = Telligent.Common.Services.Get<IScriptablePluginService>();

    ScriptedContentFragmentOptions options = scriptablePluginService.Get(FrontUiWidget);
    options.IsEditable = true;
    options.CanBeThemeVersioned = true;
    options.CanHaveWrapperCss = true;
    //options.CanReadPluginConfiguration = true;
    //options.CanWritePluginConfiguration = true;

Children
No Data