Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello everybody! Congratulations for the module is very simple but powerfull.
How can I print availability calendars inside a hotel_booking node programmatically? Is there a function for that? I want to customize the view of a hotel with some tabs and I cannot find a way to display them in a tpl file.
Another question: Can I add a drop down menu with all the months?
Comments
Comment #1
larowlanPlease see the settings form. Admin->Store->Hotel Booking->Settings.
There is a checkbox for removing the calendars from the node page that gives you the variable name for printing in the tpl file in it's help text.
Re dropdown menu, if you know the Drupal form api you can do this by overriding the theme functions in your theme's template.php - any of the functions in hotel_booking.theme.inc can be copied to your template.php then renamed accordingly and modified as you see fit.
Lee
Comment #2
creatorgr CreditAttribution: creatorgr commentedThanks for your time larowlan! I'll try this out!