imorandin

Active Member
PartnerNOC
Nov 20, 2014
28
5
53
cPanel Access Level
DataCenter Provider
Hi,

I want to add some custom functionality on the sidebar:

1645563297747.png

but couldn't find any related information about it.

I see that the template is this:
/usr/local/cpanel/base/frontend/paper_lantern/home/index.tt

but does it get overwritten with cpanel updates?

Thanks,

Ignacio
 
Last edited by a moderator:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,505
2,605
363
cPanel Access Level
Root Administrator
Hey there! It would likely be best to start working on customizations in the Jupiter theme, as we do plan to deprecate Paper Lantern in the near future. Details on how to perform that work for a plugin can be found here:


and details on the interface in general can be found here:

 

imorandin

Active Member
PartnerNOC
Nov 20, 2014
28
5
53
cPanel Access Level
DataCenter Provider
Thanks @cPRex , but how can I add a button (like nginx's "clear cache") or additional information (like Cloudlinux does with inodes) into the sidebar specifically? Using jQuery perhaps?.
In that case, how can I insert jquery code to be executed in the home page? we did this using UI includes in Paper Lantern but I can't find UI includes in Jupiter.

Ignacio
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,505
2,605
363
cPanel Access Level
Root Administrator
The team is actually working on such a functionality literally as we speak, which will allow for UI includes in Jupiter. I can't say exactly when that will get implemented, but we are hoping this gets added before the software is moved to the Release tier.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,505
2,605
363
cPanel Access Level
Root Administrator
Update - if you add the data to /var/cpanel/customizations/content_includes/ those will not get overwritten, and will get added to the sidebar. For example, I created the following file:

cpanel_jupiter_tools_stats_before.html.tt

and the user interface then updated to look like this:

Code:
Server Information
testing
Statistics
Disk Usage
42.28 GB / ∞
I'm not sure if that is exactly what you're looking for, but let me know if you have any questions.