Development Seed

Blog

Defining Spaces Features in Code in Drupal

Export Your Feature Definitions Into Custom Modules

This screencast will look at how to export your feature definitions into custom modules so you never have to build a blog from scratch again. This doesn’t mean every site you build will look and work the same, just that you can cut down on the repetitive tasks you do on every build and spend more time getting the details from your user stories right.

You can check out the code for the myblog module developed during this screencast here: http://svn3.cvsdude.com/devseed/sandbox/drupal-6/myblog/, and you can learn more about Context and Spaces on code.developmentseed.org.

I also recommend watching the first screencast in this series if you haven’t already I build on some concepts discussed there. We’ve written about using Context and Spaces to make site building faster before, and we recently posted a screencast about how to build a blog feature through the interfaces provided by Context UI.

Next time we’ll look at how Spaces and Organic Groups can work together to allow you to define and customize features on a per group basis.

Thanks a ton and can't wait work the og + spaces tutorial

Heya Robert,

thanks a ton for your screencasts. Lovely to follow and giving lots of ideas. I can’t wait to see the tutorial on the combination spaces+og. Still something that I haven’t got around to making work. Will the same view defined for a site space be limited to an organic group then if defined as group spaces? I presume I will see in time. Will be very useful for a social site.

Best wishes

Sebastian

Great question

“Will the same view defined for a site space be limited to an organic group then if defined as group spaces?”

Great question Sebastian. The answer depends on your implementation, but yes, it’s entirely possible using the views filters provided by Spaces to create one view and use it across multiple spaces and space-types. There is some documentation on this here: http://code.developmentseed.org/sp/node/56

I’ll also make sure to cover this in the next screencast.

Cheers, Robert