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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

texas-bronius’s picture

Title: View always returns title == "Day". View->page_title doesn't override » How to avoid Calendar View always returns title == "Day"
Component: Code » User interface
Category: bug » task

To 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.

KarenS’s picture

Status: Active » Fixed

Actually, 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.

Anonymous’s picture

Status: Fixed » Closed (fixed)