Plugins Open In New Window v64
Has anyone else been able to get a WHM plugin to open in the same window post v64? Neither target=mainFrame nor target=_self has worked for me in either of these versions. running v66 at the moment. Confirmed that /usr/local/cpanel/bin/show_appconfig shows target: _self on the plugin in question. I even tried target=_self in the /var/cpanel/apps conf file for the Configure ClamAV Scanner plugin, and that too still opens in a new window.
If anyone has a link to an example plugin that opens in the same window, I would be happy to review that.
-
Hello, The updated behavior is documented under the "target" key on the following document: Guide to WHM Plugins - AppConfig Configuration File - Software Development Kit - cPanel Documentation Here's the corresponding entry from the interface (Home >> cPanel >> Manage Plugins). Note: Plugin developers can alter the default behavior. For more information, read our : documentation. Note: Users who encounter an incorrect locale in WHM's Home interface after they upgrade to cPanel & WHM version 66 must run the following command: mv /var/cpanel/caches/_generated_command_files{,.backup} This command clears the locale caches, which corrects the issue.
Let us know if this helps. Thank you.0 -
Hello, I'm setting up a whm plugin in the same window and added "target=_self" in app config. But still the plugin interface open in new window. ( cPanel version used is v68.0.37 ). Can you give me some hints for this. 0 -
I'm setting up a whm plugin in the same window and added "target=_self" in app config. But still the plugin interface open in new window. ( cPanel version used is v68.0.37 ). Can you give me some hints for this.
Hello @kssuhesh, Can you let us know the contents of your plugin's app configuration file? Thank you.0 -
Contents are here; -------- name=xxxxx service=whostmgr url=/cgi/addon_xxx.cgi target=_self user=root acls=any displayname=XXXX -------- 0 -
Hello @kssuhesh, Can you try adding the entryurl key to your plugin's AppConfig configuration file to see if that helps? We document this key at: Guide to WHM Plugins - AppConfig Configuration File - Developer Documentation - cPanel Documentation Remember to restart the cpsrvd service to apply the changes made to your AppConfig configuration files: /scripts/restartsrv_cpsrvd
Thank you.0 -
I have added the following entry and it worked for me. entryurl=addon_xxxx.cgi 0 -
Hello, I'm glad to see that helped. Thank you for sharing the outcome. 0
Please sign in to leave a comment.
Comments
7 comments