Sky Blue Sofa Blog Concrete5 Composer Events Cheat-Sheet - Sky Blue Sofa Blog

Concrete5 Composer Events Cheat-Sheet

Posted by Dave Rogers // March 26, 2013 // in Blog // 0 Comments

Rifle Trigger

A while back in concrete5.5, I had a great idea for an update to my Socializer addon: Automatically post to Facebook and Twitter when a new page was added to the site. In order to make this work properly, I needed to add new events to the concrete5 core files. These events are used in the Composer workflow of concrete5.

Composer Events

on_composer_save_draft

Fires when a composer page is automatically or expressly saved as a draft.

Arguments: $composerEntry

on_composer_publish

Fires when a composer page is published and turned into a 'real' page.

Arguments: $composerEntry

on_composer_delete_draft

Fires when a composer draft is removed from the system.

Arguments: $composerEntry

About the Author

Dave Rogers

Dave is the founder of Sky Blue Sofa Web Design. He enjoys working out, spending time with his wife and dogs and programming. He grew up and currently resides in the Illinois Quad Cities. You can find his personal blog at strength/reliance.com.

View Profile »

Comments

You must be logged in to leave a reply. Login »