Feature showing up in /cpanel when it shouldn't

ottdev

Well-Known Member
Oct 1, 2013
129
4
68
cPanel Access Level
Root Administrator
I started the process to add a custom plugin; not ready to put it live yet, so I have ensured that it is:
- checked in 'disabled' feature package
- unchecked in all other feature packages

After adding it, it appeared to be correct - I could access in both X3 theme and Paper Lantern. Then I disabled it, and it now correctly does not appear in Paper Lantern, but it incorrectly is still appearing in X3.

What have I missed doing ?
(I realize X3 is soon to be deprecated, but at this time, most accounts are using it)
 

ottdev

Well-Known Member
Oct 1, 2013
129
4
68
cPanel Access Level
Root Administrator
RESOLVED!
I hadn't registered it yet since I was not ready to put it live.
Once I ran register_cpanelplugin on my generated plugin file, the icon correctly disappeared from the X3 /cpanel as per its feature manager settings.
 

ottdev

Well-Known Member
Oct 1, 2013
129
4
68
cPanel Access Level
Root Administrator
Some of my confusion stems from what I am interpreting as inconsistent docs:
Guide to cPanel Plugins - Add Plugins to cPanel & WHM Version 11.44 and Later - Software Development Kit - cPanel Documentation

This page says that using install.json method takes care of installing for both Paper Lantern AND X3

Page History - cPanel Plugin File Generator - 11.52 Documentation - cPanel Documentation

This recently updated page which creates your install.json for you says it's for paper lantern only and that you must still use the other (X3) generator as well and install that in a separate step.
 
Last edited by a moderator:

cPanelAdamF

cPanel Product Owner
Staff member
Mar 21, 2013
258
76
153
Houston TX
cPanel Access Level
DataCenter Provider
Twitter
We'll clarify the documentation on the page.

The /scripts/install_plugin script can indeed install plugins for both themes, x3 and paper lantern, however it won't do it at the same time. If you do not specify a --theme parameter, it will only install your plugin into paper lantern. If you specify --theme=x3 it will install into x3.