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.
All my calendar pages (Year, Month, Day) show the string literal "Day" as the title. Stepping thru via debugger, Views (5.x-1.6-beta5) line ~750 favors Calendar's $args[]['title'] over the explicitly defined $view->page_title. In my example, look for the text "Great Events at the Brazos Center"
This could be an issue with Views implementation or Calendar's structure of $args including "title". See attached Calendar View export.
Comment | File | Size | Author |
---|---|---|---|
views_calendar-iss-title-shows-DAY.txt | 3.94 KB | texas-bronius |
Comments
Comment #1
texas-bronius CreditAttribution: texas-bronius commentedTo explicitly declare a calendar title to be what you type in the Page section, item Title, clear out the "title" fields in the Calendar View Arguments section.
Karen- perhaps the prompting text under Page>>Title could suggest this somehow.
Comment #2
KarenS CreditAttribution: KarenS commentedActually, it uses whatever you have in the argument titles, this is the way Views does titles when there are arguments. The original default calendar view had 'Year', 'Month', and 'Day' hardcoded into the argument titles. The better method is to change those titles to '%1', '%2', and '%3', which is how the default view now handles it. That will substitute the current year, month, or day name in for the title.
So you would see '2007' for the year, or 'March 2007' for the month.
Those titles are themed, so you can change them in your theme however you like. The theme is called theme_calendar_arg_title() in calendar.theme.
Comment #3
(not verified) CreditAttribution: commented