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.
I added some code to calendar-datebox.tpl.php but I only want to it on a particular view. Any way to achieve this ?
Comments
Comment #1
mibfire CreditAttribution: mibfire commentedYou can use the $view object. For example:
Comment #2
schifazl CreditAttribution: schifazl as a volunteer commentedSorry for reviving this old issue. It's possible to achieve this by adding the view name to the tpl file? E.g. calendar-datebox--view-name.tpl.php? I doesn't work for me, but maybe I'm screwing something.
Thanks!
Comment #3
mibfire CreditAttribution: mibfire commentedI think it is possible if you add this manually with theme suggestions.
Comment #4
Neslee Canil Pinto