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.

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:
    1
    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:
    1
    Trophy Points:
    18
    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
     
  3. itwebteam

    itwebteam Member

    Joined:
    Jul 7, 2004
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Thank you, David.
    I missed that section in the docs.
    it's working perfectly, thanks a lot!
     
Loading...

Share This Page