Homepage | Products | OX Knowledge Base | Support | Try Now | Contact | Company
OX Logo
Results 1 to 7 of 7
  1. #1
    Join Date
    Apr 2012
    Posts
    8

    Default How to extend the filestore context menu about open-xchange-gui

    Hi,

    im trying to extend the globalContextMenu.infostore content located inside the open-xchange-gui/js/menu/menu.js.

    I do not want overwrite your own source code because i think that can be upgraded in another ox update. If i overwrite the OX source code then the new item is displayed as expected.

    I need to add a new option to the context menu to perform a custom javascript action.

    I tried to add a new plugin who overwrite the main function initContext(modules) --> menuinfostoreloaded() functions but seem that
    do not work.

    I think that this method do not works because all of this javascript funtions are minified into single big javacript files

    Please let me known if are there any way to add a new custom label to perfom without touch the main open-xchange-gui source code ?

    At oxpedia (Gui_Plugin_Development) there are examples to extend the open-xchange-gui features but i can not locate anything usefull to perform this objective.

    Kind regards
    Simon

  2. #2
    Join Date
    Feb 2007
    Posts
    253

    Default

    You don't need to overwrite anything. Just add your menu items.

  3. #3
    Join Date
    Apr 2012
    Posts
    8

    Default

    Hi Viktor,

    can be added (new menu items) to the context menu with a custom plugin?

    Kind regards
    Simon

  4. #4
    Join Date
    Feb 2007
    Posts
    253

    Default

    Yes. .

  5. #5
    Join Date
    Apr 2012
    Posts
    8

    Default

    Ok, many thanks for your reply,

    please, do you have a simple example about to perform this task?

  6. #6
    Join Date
    Feb 2007
    Posts
    253

    Default

    You already found it, in the function menuinfostoreloaded(). You can add new MenuItem objects to globalContextMenus.infostore at any time, including in your plugin.
    There is also a tutorial on how to write plugins at http://oxpedia.org/wiki/index.php?title=Plugin_API

  7. #7
    Join Date
    Jun 2012
    Location
    350 S Havana St, Aurora , CO 80012
    Posts
    1

    Default

    I already replaced the huge Acrobat by Foxit, as soon as i found it, but this is very promising.
    Nice to see that you use the Unicode-lists as well btw.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •