Try Now
More in this section

Forums / Developing with Sitefinity / Ping Technorati?

Ping Technorati?

3 posts, 0 answered
  1. Quba
    Quba avatar
    15 posts
    13 Jun 2006
    24 Mar 2009
    Link to this post
    Does sitefinity support the pinging of services such as Technorati when new content is added? If not, how might I go about adding this feature?

  2. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    18 Jul 2012
    25 Mar 2009
    Link to this post
    I'm not 100% sure but I'm don't believe this functionality is built in by default... and I'm not too much of an expert on this but I've been needing to do something similar and have been mulling this over...

    the way I've come up with to do it is to make an external template ascx control, then add an event handler to the saveButton click event and add code in there to ping the service... however I'm not sure if at this point in the workflow that the url for the content would be retrieveable... you could easily send it just the general link for the blog itself, for example ping yoursite.com/blog.aspx so it knows that the page has been updated...

    this is just in the idea phase however, so I haven't tested it... i hope this helps give you an idea on how to get started!
  3. Georgi
    Georgi avatar
    3583 posts
    28 Oct 2016
    25 Mar 2009
    Link to this post

    You could do this every time you publish a new content. Let me show you how:

    void Application_Start(object sender, EventArgs e)  
           //Event handler for executing the Content Manager 
           Telerik.Cms.Engine.ContentManager.Executing += new EventHandler<Telerik.ExecutingEventArgs>(ContentManager_Executing); 
        void ContentManager_Executing(object sender, Telerik.ExecutingEventArgs e) 
            //Check whether the user is creating content 
            if (e.CommandName == "CreateContent"
                //take the IContent Item from the command arguments 
                Telerik.Cms.Engine.IContent cnt = e.CommandArguments as Telerik.Cms.Engine.IContent; 
                //chech if there is such content and if it belongs to the news provider 
                if (cnt != null && cnt.ProviderName == "News"//or some other provider 
                    //Ping technorati with a WebRequest? 

    This should do the trick.

    Best wishes,
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Register for webinar
3 posts, 0 answered