{"id":50705,"date":"2018-10-11T10:00:00","date_gmt":"2018-10-11T15:00:00","guid":{"rendered":"https:\/\/blog.cpanel.com\/?p=50705"},"modified":"2018-10-11T10:00:00","modified_gmt":"2018-10-11T15:00:00","slug":"whm-feature-showcase-update","status":"publish","type":"post","link":"https:\/\/devel.www.cpanel.net\/blog\/products\/whm-feature-showcase-update\/","title":{"rendered":"WHM Feature Showcase update"},"content":{"rendered":"
If you’ve ever logged in to WHM as a root-level user, you’ve assuredly seen a box with a notification of a new or improved feature. This dialogue box is known as the “Feature Showcase<\/a>,” and has allowed us at cPanel to present information about changes to cPanel & WHM. Since its creation, the Feature Showcase was only available for use by cPanel. However, we’ve made some changes to the functionality of the Feature Showcase which change that.<\/p>\n Starting in v74, the Feature Showcase system now uses\u00a0individual JSON files<\/a>\u00a0for each Showcase item. The update allows cPanel more control over how it appears and how configuration changes to the system are triggered.<\/p>\n The greatest benefit the new functionality of the Feature Showcase provides is opening the feature to third-parties. Hosting providers, plugin developers, and server owners can create their own Feature Showcase boxes in an officially supported way for the first time!\u00a0 This means that parties such as plugin developers can create new Feature Showcase popups upon the launch of a new feature in their plugin, or announce a change to an existing feature! This allows developers to create messaging that appears directly to WHM end-users in a way that doesn’t break the normal WHM workflow!<\/p>\n The Showcase is split into\u00a0three different sections<\/a>:<\/p>\n Within those sections, there are\u00a0four types of items<\/a>\u00a0that the Feature Showcase supports:<\/p>\n There are a few different\u00a0actions<\/a>\u00a0you can request of a user who views the Feature Showcase item.<\/span><\/p>\n Using the ability to craft Feature Showcase messaging to your end users allows a bit of flexibility in enabling, disabling, or configuring any new features you wish to spotlight<\/span>.\u00a0Depending on the type of action the user does, the Feature Showcase can return a different value:<\/p>\n To remove a\u00a0Feature Showcase\u00a0item from display simply\u00a0remove the appropriate\u00a0 Once you have created your new feature showcase item, you will definitely want to test it before you push it to end users. To test a Feature Showcase listing, follow these steps:<\/p>\n <\/a><\/p>\n It’s that easy! The uses for this are extremely exciting and allow our plugin developers a much deeper integration into the user experience.\u00a0If you have any questions or comments about the Feature Showcase, feel free to open a ticket with\u00a0our support team<\/a>, or reach out to us via\u00a0Slack<\/a>,\u00a0Discord<\/a>, or the Official cPanel\u00a0Subreddit<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":" If you’ve ever logged in to WHM as a root-level user, you’ve assuredly seen a box with a notification of a new or improved feature. This dialogue box is known as the “Feature Showcase,” and has allowed us at cPanel to present information about changes to cPanel & WHM. Since its creation, the Feature Showcase […]<\/p>\n","protected":false},"author":77,"featured_media":65061,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[49],"tags":[],"class_list":["post-50705","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-products"],"acf":[],"yoast_head":"\n<\/a><\/h3>\n
Now hosting providers and plugin developers can create notifications!<\/h2>\n
So what comprises the Feature Showcase?<\/h2>\n
\n
\n
\n
enable<\/code>\u00a0or\u00a0
disable<\/code>)<\/span><\/li>\n
set_default<\/code>)<\/span><\/li>\n
handle_showcase_submission<\/code>)<\/span>.\u00a0
\n<\/span><\/li>\n<\/ul>\n\n
enable<\/code>\u00a0and d
isable<\/code>\u00a0actions return a value of 1 for success and 0 for failure.<\/li>\n
set_default<\/code>\u00a0actions return a value of 0 for backward compatibility with Version 1.<\/li>\n
handle_showcase_submission<\/code>\u00a0actions return the form response.<\/li>\n<\/ul>\n
drivers.json<\/code>\u00a0file from the\u00a0
\/user\/local\/cpanel\/<\/code>
Cpanel\/Config\/ConfigObj\/Driver<\/code>\u00a0directory.<\/p>\n
Test Time!<\/h2>\n
\n
root<\/code>\u00a0user.<\/li>\n
Get started!<\/h2>\n