1

I need to do an Agenda in Drupal 7. The table for the events is more or less already done, but I would need to add 3 days on the top like:

Day 1 - Day 2 - Day 3

Depending on which day is clicked, it will show an agenda or the other.

How can I do this?

I'm adding the content using the Agenda content type I created, but I would need to create content for those 3 days.

6
  • Welcome to Drupal Answers! It sounds like you might be able to use Views Menu Tabs or the Quick Tabs module. Commented Aug 16, 2021 at 19:26
  • 1
    I would create a Taxonomy named "Days" with the terms Day 1, Day 2, Day 3. Then add a Taxonomy field so you can assign which day an Agenda Node belongs to. You can then use one of the modules @hotwebmatter suggested. Commented Aug 16, 2021 at 20:46
  • 1
    Yep @RyanHartman, that sounds like it could work. Add a Taxonomy term reference field to the node bundle for the custom Agenda entity type. Then use that field to tag content for inclusion on each of the three tabs for Day 1, Day 2, Day 3. Commented Aug 16, 2021 at 21:57
  • 1
    Thank you guys! Thats what I did. I didn't know how to add the menus but once I could do that, I realized on how to filter with taxonomy terms (I added them first to the vocabulary). I'm getting used to Drupal at least in a basic way. By the way, on the Agenda I made (as a table format) is it possible to modify its css style? Do you know how? If it's necessary I could make another thread. Thank you again!
    – Ray91
    Commented Aug 17, 2021 at 3:45
  • You certainly can. Drupal has an entire theme system so yes you can do so, but that is off-topic for this discussion. Commented Aug 17, 2021 at 14:46

1 Answer 1

1

The easiest way to accomplish this would be to utilize the Taxonomy module.

  1. In your case, setup a new taxonomy with the name Agenda Days.
  2. Add some of your terms to it: Day 1, Day 2, Day 3, etc.
  3. Go back to your Agenda content type and add a taxonomy term reference field, configured to point at your new Agenda Days taxonomy.
  4. Edit your content and select which Day they belong to.
  5. Install and enable either the Views Menu Tabs or the Quick Tabs module.
  6. Edit your view and add your new taxonomy field.
  7. Set the views display mode to one provided by the module you selected, configured to use your taxonomy field for sorting.

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.