Jan 27 2008

Silverstripe Ping Widget

By Dieter Orens | 0 Reactions so far… | 0 Trackbacks

As Silverstripe currently doesn't have built - in support for pinging services like technorati or weblogs, I created a little widget that makes this possible. 

Ping Widget

Installing it is pretty easy: 

  1. Download the zip file and extract it to the root of your SS-installation.
  2. Run db/build.
  3. Go to the cms and select the root of whatever page-type you're publishing children on. If you're using the standard blog module, this would be the 'Blog' page.
  4. Choose the widgets tab, and drag the widget to the right to enable it. Save and publish the page.
  5. The widget is now working.

Everytime a child page of the page where the widget is on gets published, it can ping technorati, weblogs and pingomatic. It makes use of 2 little external libraries (weblog_pinger and xmlrpc). Note that you don't need to download the libraries, they are already included in the widget.

To use SS widgets on your page (articleholder, blogholder, whatever) , make sure you have attached a widgetarea in your pageholder/articleholder/... model:

static $has_one = array( "WidgetArea" => "WidgetArea" );

function getCMSFields()
{
$fields = parent::getCMSFields();
$fields->addFieldToTab("Root.Content.Widgets", new WidgetAreaEditor("WidgetArea"));
return $fields;
}

Hope this is useful for someone. Let me know if you find any bugs or things that I might have overlooked.

Comments

There are no comments for this post yet.

Sorry, comments are closed for this entry.

Trackbacks

No trackbacks on this post.

Trackback-url for this post

http://www.dio5.com/silverstripe-ping-widget/trackback

Get the RSSFeed for the comments on this article.

Del.icio.us

DownUp
  1. YouTube - Rising_Yoshida Brothers
  2. What I Hate About Becoming a Designer | Jeremy Adam Davis
  3. Web Design Blog: Web Design & Innovation in web standards : Viget Labs
  4. De Morgen: Economie - Vier op vijf Belgen zien toekomst donker in (332188)
  5. Yes, you found us! Too bad! - Home
  6. Pluit Solutions » Blog Archive » PNG Image Fix For IE
  7. Carectomy.com: Removing Cars from People - All Aboard the Train that Never Stops!
  8. BBC NEWS | Have Your Say | Spreading peace over the net
  9. Pictures From the Sky
  10. remiq.net : (America), (car), (dog), (motivator), (US)This is why the world hates you …
  11. TinyPaste
  12. Icojoy - stock icons shop, icons blog, free icons
  13. The Website Is Down
  14. Shell Command - Remove SVN Folders - Jon Galloway
  15. Stuck in Photos - Helga Kvam and Völundur Photograph Iceland
  16. 1% For the Planet
  17. YouTube - Open Source, pants optional
  18. Welcome to Agavi!
  19. your enemy's enemy is your friend | <3 ifhy
  20. Hatebook – Welcome to Hatebook
  21. UI-patterns.com
  22. 30 Useful PHP Classes and Components « PHP::Impact ( [str blog] )
  23. Ik zoek huis.Ik zoek een huis. …
  24. Uw online wijnwinkel... Vinoshop.be - VinoshopMooi mooi …
  25. Design the content - Wolf’s Little Storewe're still far from there... …
  26. YouTube - Cell Phone In MicrowaveIt's evil I tell ya... …
  27. Insects/Spiders - a set on Flickr
  28. Everybody | Faviki - Social bookmarking tool using smart semantic Wikipedia (DBpedia) tags
  29. BIGGEST DRAWING IN THE WORLD
  30. 13 free CMS options for Web Design Professionals Reviewed
  31. [Re]Encoded dot Com » Blog Archive » 42 Awesome Business Card Designs (With Links to 100s More)