Clément Renaud blog

  • Works
  • About
  • Web Tools
  • Journalism
  • Thought
  • Reviews
 
 
 

Find me online

TwitterWeiboFacebookRSSLinkedinDeliciousTumblrGithubYoutubeDoubanSlideshareGoogle PlusEmail

French Chinglish

This blog is writing in a language between Chinglish and Frenglish, so please accept my apologies for such thing has bad grammar or wrong vocabulary ! And feel free to post any corrections/improvements in the comments...

Recent Posts

  • From Gdocs to WordPress : a complete web-first workflow for newspaper
  • Self portrait – Visualizing myself
  • Display articles from the Guardian in a timeline
  • Data Journalism Handbook
  • Happy Open Data Day everybody !

Tags

aiweiwei api A propos d\'Open Newsroom Bibliographie China collaborative tools conference CRI data data visualization dataviz dipity Economie 2.0 education French Internet GDocs guardian Heroku Hunter S. Thompson Journalisme Journalisme en ligne lecture Liens multimedia multimedia grammar online desk online writing open data day outils Outils internes project management Publication S3 Scenari self portrait sharism SIMILE talk teaching Teambox Technologies Web telephonie timeline tools toyhouse
Web Tools

Add SIMILE Timeline to your custom content types

December 16, 2010

0 Comments

I was working on some custom content types and I wanted to use the SIMILE timeline for WordPress, but I cannot get the metabox in the admin part.

What you have to change is inside the plugin code timeline.php, line 219.

It stills pretty much a dirty hack and it could be a good idea to implement content types further in the timeline admin area. I’ll see what I can do

/*
* Custom box hook for post and page interface adds custom option box
*/
function addPostPanelEventDates() {
	if(WPSimileTimelineLoader::loadPlugin()){
		$wpstl = WPSimileTimeline::singleton();
		$wpstl->init();
		if( function_exists('add_meta_box')) {
			add_meta_box( 'stl-timeline-event-data', __( 'SIMILE Timeline', 'stl_timeline' ), array('WPSimileTimelineAdmin', 'outputCustomPostDateOptions'), 'post', 'advanced' );
			add_meta_box( 'stl-timeline-event-data', __( 'SIMILE Timeline', 'stl_timeline' ), array('WPSimileTimelineAdmin', 'outputCustomPostDateOptions'), 'page', 'advanced' );
			add_meta_box( 'stl-timeline-event-data', __( 'SIMILE Timeline', 'stl_timeline' ), array('WPSimileTimelineAdmin', 'outputCustomPostDateOptions'), 'your custom content type name here', 'advanced' );
		}
	}
}
Tweet

What's next ?

→ Install your office in the cloud (Teambox, Heroku, S3, GDocs)

← Publish custom feeds with Yahoo! Pipes

Read more in Web Tools

New comments are closed.

Creative Commons License
All content licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.