Results 1 to 3 of 3

Thread: custom context menu links

  1. #1
    cbl016 is offline Junior Member
    Join Date
    Oct 2007
    Posts
    9
    Rep Power
    7

    Default custom context menu links

    Is it possible to add custom html to a right click context menu?

    I have a context menu with several menu items and when a menu item is clicked a different url should open in a new browser window. So far I have it working with xml but there are a couple of problems.

    1. The window does not open in a new tab even though I have the firefox setting "new pages should be opened in tabs" selected.

    2. When the user clicks on a second menu item, instead of opening a new window it overrides the first window that was opened.

    To fix this I could just use some custom html to add my own links to the context menu but I am not sure how to do this.

    I have also tried javascript to open the pages which works a little better but I still can't get the external pages to open in new tabs without overriding a previously opened tab.

    Any help would be appreciated.

  2. #2
    cbl016 is offline Junior Member
    Join Date
    Oct 2007
    Posts
    9
    Rep Power
    7

    Default

    Ok I figured this out. If you need links in your context menu just htmlencode them and put it in the label attribute. For example
    Code:
    <menuItem label="&lt;a href=&quot;/path/to/page.php&quot; target=&quot;_blank&quot;&gt;Link Name&lt;/a&gt;" id="some_id" />

  3. #3
    sposetti is offline Former Zimbran
    Join Date
    Nov 2009
    Posts
    105
    Rep Power
    5

    Default

    There are a few panel item menu examples here:

    ZCS 6.0:Zimlet Developers Guide:Example Zimlets - Zimbra :: Wiki

    Also, check this out as a reference for the XML tags in the Zimlet Definition File:

    ZCS 6.0:Zimlet Developers Guide:Zimlet Definition File Reference - Zimbra :: Wiki

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Opening browser windows / Context menu
    By ezu in forum General Questions
    Replies: 0
    Last Post: 11-16-2009, 08:01 AM
  2. right click context menu
    By mraaronm in forum Administrators
    Replies: 0
    Last Post: 11-19-2008, 12:04 PM
  3. Replies: 7
    Last Post: 04-10-2008, 05:28 AM
  4. Context menu bug
    By mclain in forum Administrators
    Replies: 5
    Last Post: 02-05-2008, 11:02 AM
  5. Firefox & New Email context menu problem
    By davidh in forum Installation
    Replies: 2
    Last Post: 03-21-2007, 12:28 PM

Posting Permissions

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