If I'm making a theme that I want multiple people to be able to download and install (not just making it for one client), what's the best way to include the content types? For instance, say it's a portfolio type of website, and has a content type called "project". I don't want anyone who downloads my theme to have to go in and create the content types by hand.

What are best practices in distributing a theme with requirements like that? Is there a simple module I could expect someone to install first?

  • 2
    How does it makes sense for a theme to ship with content types? It sounds more like you should be building an install profile that uses your theme.
    – Letharion
    Jun 7, 2012 at 21:29

1 Answer 1


If your theme code depends on certain content types being there, then that tells me that you are actually building a module plus a theme, and not just a standalone theme.

One way to do this is to use the Features module to export your content types and other settings. Then you probably want to move some of your theme functions into the module code, so that other themers can more easily build on top of what you've created.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.