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

  •  

    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

  • Hi ,

    thank you for your feedback. I will do this that way ; I was wondering / hoping that I can do this with an API call.

    Have a good day,

    Fred