Drupal7: multi-field content type

what is the best way in Drupal 7 to handle many fields (> 40). I have to handle dormitory content types. D7 creates as many mysql tables as there are fields, so I'm afraid for the performances, but maybe this is not a problem.

Do I need to create entities and subilo entities or create modules for storing some data in one table (a field for equipment, a field for services, a field for active actions, etc.). or another solution?

Thanks so much for your advice!

+4
source share
2 answers

40 fields are not so bad as I have many db tables with a lot of fields.

Drupal is actually not so good at OO and normalization, but you can:

  • Create several custom content types and bind them through Corresponding Node Links to simulate an entity relationship, foreign key.
  • use taxonomy
  • Write your module that never hurts, as it will help you learn the Druapl path.

Hope that helps

+1
source

You can leave it as it is because, you know, between performance and flexibility, Drupal chose flexibility :)

if you want all of them to be stored in 1 table, you can write a module that implements a custom set of fields, for example: http://www.lullabot.com/articles/creating-custom-cck-fields however for D6 - I do not did a similar thing for D7 with cck fields in the kernel, so I can't give you directions here.

I think this one and especially this one could help.

+1
source

All Articles