Can I disable a module from GlobalSearch using REST API or specific settings from the code?

Hello,

Is there an easy way to disable a module from the global search using the REST API or maybe through the code ? The purpose is, for instance, to avoid that a new module created from the builder is automatically enabled.

Many thanks,

Fred

Parents
  •  

    There are two options,

    you can include this in your vardefs.php 

    'full_text_search' => false,

    or

    Add a file full_text_search_admin.php into the directory custom/Extension/modules/<MODULE>/Ext/Vardefs

    Fullscreen
    1
    2
    <?php
    $dictionary['MODULE']['full_text_search']=false;
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Substitute your Module Name anywhere you see the word MODULE

Reply
  •  

    There are two options,

    you can include this in your vardefs.php 

    'full_text_search' => false,

    or

    Add a file full_text_search_admin.php into the directory custom/Extension/modules/<MODULE>/Ext/Vardefs

    Fullscreen
    1
    2
    <?php
    $dictionary['MODULE']['full_text_search']=false;
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Substitute your Module Name anywhere you see the word MODULE

Children