Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,896
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. DavidGhedini

    DavidGhedini Registered

    Joined:
    Oct 18, 2011
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    51
    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:
    51
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice