Skip to content
  • Solutions
    By Role
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    By Infrastructure
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
  • Product
    • Plesk Features
    • Plesk Editions
    • What’s new
    • Pricing
    • Roadmap
    • Lifecycle Policy
    • Extensions Catalogue
  • Pricing
  • Extensions
    Featured Extensions
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    Bundles and packs:
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack

    See all Extensions

  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
Plesk 360 login
Free Trial

Knowledge Base

Integrate to Home Page

 
extensions guideimplement uiintegrate to plesk uiplesk features available for extensionsextensions

Extensions can communicate various information by placing info blocks
(also referred to as widgets) to the administrator’s and customers’
Home pages in Plesk.

image 79553

To do that, include in your extension a class that extends
pm_Promo_AdminHome
or
pm_Promo_CustomerHome
and overrides the necessary methods. All classes that extend
pm_Promo_AdminHome and pm_Promo_CustomerHome are loaded when a
user navigates to the Home page.

Note: Make sure to follow the Class Naming Conventions for
the classes you implement. Otherwise, the classes may not be properly
loaded.

For example, in an extension with an ID "my-module", a new class
implementing an info block for the administrator’s Home page should
be named Modules_MyModule_Promo_AdminHome. Its code should be placed
in the file plib/library/Promo/AdminHome.php.

“Plesk News” info block on the screenshot above is displayed by the
sample extension “Panel News”. Its source code is available here:
https://github.com/plesk/ext-panel-news

Example: defining an info block

This example demonstrates an implementation of a info block. It uses the
following methods:

  • getTitle()
  • getText()
  • getButtonText()
  • getButtonUrl()
  • getIconUrl()

Use the following code:

    <?php
class Modules_MyModule_Promo_AdminHome extends pm_Promo_AdminHome
{
    public function getTitle()
    {
        return 'Add Block Title Here';
    }
    public function getText()
    {
        return 'Add your text here...';
    }
    public function getButtonText()
    {
        return 'View';
    }
    public function getButtonUrl()
    {
        return 'http://example.com';
    }
    public function getIconUrl()
    {
        pm_Context::init('my-module');
        return pm_Context::getBaseUrl() . '/images/icon.png';
    }
}

Note: When you need to use the functions provided by the Extensions API,
you need to define context in the method body by calling
pm_Context::init('module ID').

The getButtonText() and getIconUrl() methods are optional. If
you omit these methods, Plesk will use the default button caption
(“Learn more”) and icon.


Tweet
Share
Share
Email
0 Shares
Read the full article
Related Posts

Getting Started With Plesk Extensions & Tools

Read More »

The Plesk WP Toolkit 5.6 Release – What’s New

Read More »

Podcast | Using the Right eCommerce Tools with Joerg Strotmann

Read More »
Knowledge Base

Extensions Reference

Read More »

Plesk Features Available for Extensions

Read More »

Issuing Custom Licenses for Extensions

Read More »

Available Licensing Models – Freemium Extensions

Read More »

Hosting Wiki

  • GIT
  • GitHub
  • PhpMyAdmin
  • phpPgAdmin
  • PHP
  • Plesk
  • HTTP
X-twitter Linkedin Youtube Reddit Github
  • Product
  • Login
  • Pricing
  • Editions
  • For Partners
  • Partner Program
  • Contributor Program
  • Affiliate Program
  • Plesk University
  • Company
  • Blog
  • Careers
  • Events
  • About Plesk
  • Our Brand
  • Resources
  • User and Admin guides
  • Help Center
  • Migrate to Plesk
  • Contact Us
  • Hosting Wiki
  • Forum
  • Legal
  • Legal
  • Privacy Policy
  • Imprint

© 2025 WebPros International GmbH

Part of the WebPros®  Family