0

I've got a drupal structure that I'm trying to set up for hospitality venues so it has information like opening hours, and what is going on at those times. E.g. At Joe's Burgers between 9-5 Monday-Thursday it is a restaurant, but from 9-5 Friday-Saturday it's a nightclub.

I've got fields of venue name, opening hours, and category (e.g. bar, nightclub, restaurant, etc), and therefore am able to add content for one time frame: e.g. Joe's Burgers is a restaurant from 9-5 Monday-Thursday. But I don't know how to set it up so that I can attach further details such as it's a nightclub 9-5 Friday-Saturday.

Is there a button I can add into the 'add content' section which allows me to replicate the opening hours and category fields so that I can have multiple opening hours and category combinations under one venue name?

Thanks guys!

2 Answers 2

2

You could use Field Collection to set up a field that contains both a category and a date as one unit.

Then all you would need to do is set the field collection to allow multiple values.

enter image description here

1

Do you need to replicate an existing time collection, or do you just need to add more?

If you just need more, Field Collection will let you add multiple collections of fields. Each collection can have the fields you need: name, hours, category, etc

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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