Announcement

Collapse
No announcement yet.

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

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    You don't need to overwrite anything. Just add your menu items.

    Comment


    • #3
      Hi Viktor,

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

      Kind regards
      Simon

      Comment


      • #4
        Yes. .

        Comment


        • #5
          Ok, many thanks for your reply,

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

          Comment


          • #6
            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

            Comment


            • #7
              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.

              Comment

              Working...
              X