How to have a plugin displayed in the right panel under whm?
Hi,
Sorry for another question but as you might have guessed I am assigned with the job to update our plugins to work with current whm versions.
One of the problems that we face with the new version is that when we click on out plugin link under the plugin sections it opens a new window rather than just showing the content on the right panel as it used work before.
I did some search and it seems there is a new option under appconfig config file for target which we should set it to _self.
The problem here is that when we do that and register the plugin again, the plugin content still doesn't show on the right section. What happens this time is that it just overrides the current tab with the content which is not the desired outcome.
I checked CageFS plugin which opens on the right panel without any problem and this is my finding:
1. They use target=_self too
2. The content that comes back from their plugin also includes the whm menus and everything. (I checked that by right clicking on the link and having it opened in a new tab)
So my question is, is there something that is missing in the document? Are we supposed to send back the whole whm content as a part of our plugin output?
And if yes how? (We use Golang for our CGI development)
-
Hello, You can find information about this change referenced on the following post: We document information about how to ensure the plugin opens and displays correctly at: In particular, we document examples of how to ensure the plugin appears in the WHM user interface at: Can you review these documents and let us know if they help? Thank you. 0 -
Thanks for the links. Unfortunately it only covers php and perl. How about other more generic option? For instance for us we have our CGI developed in Go. 0 -
Hello, If you've developed a CGI application, you may want to setup the plugin per the plugin development workflow documented at: Tutorial - Create a New WHM Interface in Template Toolkit - Developer Documentation - cPanel Documentation Thank you. 0 -
I checked the links and I am probably missing something very obvious so sorry for silly question but those seem to all be perl related. Are we supposed to somehow integrate Template Engine into Golang? I guess the big question here is how to integrate your Perl template engine in other languages? 0 -
Thanks for the guide, it helped me a lot in solving the problem 0 -
Hello carrydoul! I am glad to hear that guide provided was able to help you resolve the issue! I'll go ahead and set this thread as solved for now. As always, please let us know if you have any other questions or concerns. Thank you for choosing cPanel! 0
Please sign in to leave a comment.
Comments
8 comments