Skip to content

What are some good reasons to create your own module/content types/parts etc. via code? #17546

Answered by Piedone
RemcoW2002 asked this question in Q&A
Discussion options

You must be logged in to vote

You need to roll out your custom module if its functionality is not built into OC :). There's not much more to it.

Reusability is a good point, but as you also observe, recipes can serve as the vehicle to reuse custom content types and parts, and BTW even templates written from the admin (and Media files, and settings..). If what you need is possible with these, and you're happy to use them, then feel free to keep using them.

My preference is to keep custom content types in code (in migrations), since then they can be versioned and easily shared as code. This is important if you work in a team, and/or on an app that you intend to maintain for years. Same for custom content types, although…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by RemcoW2002
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants