Answer the question
In order to leave comments, you need to log in
How can you store a table in Drupal for each node?
Hello Habr.
There is Noda. This is a kind of entity that is leased.
It is necessary to store an employment table with 3 states (free / busy / in reserve) depending on the month.
Those. for example, in January - busy, in February - busy, in March - free, etc.
Can anyone come across? In which direction to dig? Do a separate field or try to make a separate table?
Answer the question
In order to leave comments, you need to log in
Look towards the field collection
module
First, create a field collection in the node, making it a multiple. Then add 2 fields to the field collection: month and occupancy, set the number of values to 1.
That's it - you can add an unlimited number of month-occupancy ratios to the node.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question