Smart UI extension point for function menu in Search results?

Ingus
edited February 19, 2021 in Smart View #1

Hello,

so far I had found how to add new commands in nodestable (browse) and metadata views.

But I can't find any extension point that allows to add same command to function menu in Global search results view.

Is this function menu supported already for customization and how to get to it?

Comments

  • Finally got there by myself.

    If somebody needs it, then this block should be added to mymodule-extensions.json file to access the proper extension part

      "csui/widgets/search.results/toolbaritems": {
        "extensions": {
          "dmsign": [
            "dmsign/commands/sign/sign.search.results.toolbaritems"
          ]
        }
      }
    

    and following content must be placed in separate file, which is 'dmsign/commands/sign/sign.search.results.toolbaritems.js' for my case, to describe the extension

    define(['i18n!dmsign/commands/sign/impl/nls/lang'
    ], function (lang) {
      'use strict';
    
      return {
        inlineToolbar: [
          {
            signature: 'dm-sign',
            name: lang.toolbarButtonTitle
          }
        ],
        otherToolbar: [
          {
            signature: 'dm-sign',
            name: lang.toolbarButtonTitle
          }
        ]
      };
    
    });