0

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 '12 at 21:29
0

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.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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