Content Management and Capture

Content Management and Capture

Come for answers. Stay for best practices. All we’re missing is you.

 View Only
  • 1.  EntryTemplate with layout new Editor

    Posted Mon March 15, 2021 01:04 PM

    Dear support,I am using an EntryTemplate with Layout. I have to add a button next to an EDS dependent choice List field, press on this button will select default value on the choice list. To achieve this behavior i consider to add a new "Editor" that doing the same as the original EDS default Editor that called "FilteringSelect" with one more thing like button next to it.

    I use this guide to create a new EntryTemplate Editor.

    http://www.notonlyanecmplace.com/create-your-custom-attribute-editor-part-2/

    I created a new plugin and on his global JS i add

    on the require list the ecm/model/configuration/ControlRegistry

    require([

    "dojo/_base/lang",

    "ecm/model/configuration/ControlRegistry",

    "customEditorPluginDojo/editors/MyCustomEditor" // our custom editor widget

    ], function(

    lang, ControlRegistry, MyCustomEditor

    ) {

    var editorId = "myCustomEditor";

    ControlRegistry.editors.editorConfigs[editorId] = {

    label: "My Custom Editor",

    editorClass: MyCustomEditor

    }; ControlRegistry.editors.mappings.choices.falt.single.editorConfigs.push(editorId);

    });

    How do i add\create\call the same Editor like pvr.widget.editors.FilteringSelect editor with option to extend it on my MyCustomEditor.js and MyCustomEditor.html?

    Do you have any Idea?

    Do you have some reference? i dont want to break the EDS behavior with unsupported js that why it is so important to Duplicate and extend the FiltringSelectEditor.



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 2.  RE: EntryTemplate with layout new Editor

    Posted Tue March 16, 2021 03:52 AM

    Hi,

    You may refer to the redbook http://www.redbooks.ibm.com/Redbooks.nsf/RedpieceAbstracts/sg248055.html and see how to create a custom property editor. Sample plugins are available at https://github.com/ibm-ecm/ibm-content-navigator-samples.

    Regards,

    Angie



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 3.  RE: EntryTemplate with layout new Editor

    Posted Tue March 16, 2021 08:54 AM

    Thank you

    But i am trying to create a new EntryTeplate editLayout editor,

    by inject new editor to Control Registry, not by Response Filter.


    I want to figure out how to duplicate the pvr.widget.editors.FilteringSelect with button, that will be also a version safe.



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 4.  RE: EntryTemplate with layout new Editor

    Posted Thu March 18, 2021 01:32 AM

    Hi,

    You need to create a new editor widget, that contains a FilteringSelect and a button. There are property editor examples in the redbook and on git.

    Regards,

    Angie



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration