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!

adding link to WHM addon/plugins under the "Plugins" section- How?

Discussion in 'cPanel Developers' started by itwebteam, Jul 21, 2011.

  1. itwebteam

    itwebteam Member

    Joined:
    Jul 7, 2004
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    151
    Hi,
    I created a plugin using the Docs, and it works OK when I access it directly by URL.
    the problem is that I can't seem to find how to add a link to it under the "Plugins" section in WHM-it's probably something I overlooked, can anyone point me in the right direction?
    Thank you
     
  2. cPanelDavidN

    cPanelDavidN Integration Developer
    Staff Member

    Joined:
    Dec 17, 2009
    Messages:
    571
    Likes Received:
    3
    Trophy Points:
    68
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Hi itwebteam,

    Did you add "#WHMADDON:appname:Display Name" at the top of your file?

    • "appname" should correlate to your cgi script name
    • "Display Name" is the text you want to be hyperlinked under the "Plugins" section of the sidebar

    EX: "addon_myapp.cgi" should be "#WHMADDON:myapp:My App" and in the sidebar you'll have a link to "My App"

    Also note, the chunks are delimited with a single colon (not a double colon/paamayim-nekudotayim)

    It should be place on the 2nd line of your cgi script (or any line following the shabang but before you render text)

    Regards,
    -DavidN
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. itwebteam

    itwebteam Member

    Joined:
    Jul 7, 2004
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    151
    Thank you, David.
    I missed that section in the docs.
    it's working perfectly, thanks a lot!
     
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