Registering Ping Servers

When new entries are created, and "External Notifications" are enabled for a given blog, then Movable Type will optionally ping a set of services chosen by the user or system administrator. These "pings" notify the designated services of new content that is available on your blog or web site. This list of ping services is easily extended by registering new pingable endpoints via the Movable Type registry.

The following code sample demonstrates how to register a new ping server:

sub init_registry {
    my $plugin = shift;
    $plugin->registry({
        ping_servers  => {
            'myping' => {
                label => 'My Ping Service',
                url   => 'http://ping.somedomain.com/foo',
            },
        },
    });
}

When registering a ping server, the following properties must be specified:

  • label - The display name of the ping server that will be presented to the user from within the application
  • url - The url to ping when the service is selected by the user
This page was last updated on 2007-07-24, 23:06.  

Leave a note

Have a question, please use the MT Forums. Notes sumbitted here should pertain to tips & hints regarding documentation.