How to override vendor/elgg/elgg/js/lib/ui.js

Elgg 2.3.13

In my plugin I need to to override vendor/elgg/elgg/js/lib/ui.js 

How to do it

Thank you

  • Copy this file from:


    To your custom plugin:


    Comment this:


    Add after:

    foreach ($files as $file) {
       // putting a new line between the files to address
       echo "\n";

    Path to your custom ui.js (e.g. \mod\my_plugin\views\default\lib\ui.js):

    readfile(dirname(__FILE__). '/lib/ui.js');
    echo "\n";

    Clean the caches.


  • Works great.

    Thank you very much dear RVR