0

I would like my Calendar Page View of Events to show "August 2014" (or whatever the current month is) as the heading instead of showing "Friday, August 1, 2014" (see attached pic). Is there a configuration setting for this please? I have looked at various YouTube vids and it shows the date how I want, but I cant seem to figure out how they are doing it? .enter image description here

1
  • i managed to find a fix , it involves amending a theme.inc file, its a simple change , click on this link and scroll down to item #20 : drupal.org/node/2294973 Aug 28 '14 at 19:08
0

Here's the fix, the reference to it is here : click on this link and scroll down to item #20 : drupal.org/node/2294973 , however its pasted below just in case that link becomes broken...

Quick workaround for people unable to apply the patch:

STEP 1: Edit date_views/theme/theme.inc and go find line 165.

Change these two lines:

$format_with_year = variable_get('date_views_' . $granularity . 'format_with_year', 'l, F j, Y');
$format_without_year = variable_get('date_views_' . $granularity . 'format_without_year', 'l, F j');

To these two lines:

$format_with_year = variable_get('date_views_' . $granularity . '_format_with_year', 'l, F j, Y');
$format_without_year = variable_get('date_views_' . $granularity . '_format_without_year', 'l, F j');

Note: the only difference is one underscore character added to each line.

Upload the changed file back to your web server.

STEP 2: Go to (YOUR_WEBSITE)/admin/config/regional/date-time/date-views and click Save. If you get permissions errors, try clearing caches.

2
  • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. Aug 28 '14 at 19:40
  • Thats a good point, I have enhanced my Answer above accordingly. I also found a similar question which I have responded to here: drupal.stackexchange.com/questions/127637/… . I'm not sure if you can link the 2 together, thought I would let you know. thanks. Sep 1 '14 at 7:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.