The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Query on cpanel plugin anchor content and onclick

Discussion in 'User Experience' started by jyho77sg, Oct 8, 2014.

  1. jyho77sg

    jyho77sg Member

    Joined:
    Oct 7, 2014
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi,

    Need a bit of advice on the cpanel plugin generator.
    cPanel Plugins | cPanel, Inc.

    I had managed to create icon and groups successfully in cpanel. The customized icon is suppose to open a new tab window and go to the specific url. However, it did not open a new tab of window and use the current window to go to the url.
    i suspected is related to content and onclick while i creating it.

    content: target="_blank"
    onclick:

    Any advice :confused:
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  3. DavidGhedini

    DavidGhedini Registered

    Joined:
    Oct 18, 2011
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I have tried every variation I could think of, but I can't get the syntax to open a uri in a new window. The doc you link to above does not list 'content' or 'onclick' as options.

    How do I get a uri to open in a new window?

    Any help would be appreciated.
     
  4. DavidGhedini

    DavidGhedini Registered

    Joined:
    Oct 18, 2011
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Never mind - you just need to escape the "'s:

    "uri" : "../../3rdparty/myplugin/index.php\" target=\"_blank\""
     
Loading...

Share This Page