Reputation: 1404
There is a list of cars for rent (list of nodes of material type "car rental"). Each car has a page of details. On the page there is a table of the cost depending on the duration of the lease (here is page screenshot):
As I see it, I need to add fields for the type of material "car rental":
21 days
And then, somehow, render this fields to a table.
How to best implement it in Drupal 7?
Upvotes: 0
Views: 932
Reputation: 626
How to do it best might vary depending on who you talk to. But I would probably use a node--car_rental.tpl.php solution. And code the table my self in html. This restricts the page to be dynamic with more fields, but it is easy to implement. But if you want more dynamic solution without needing to coding files, I would use the Display Suit module and some CSS.
Upvotes: 2