1

I am using the Calendar module (http://drupal.org/project/calendar).

One of the default block (called Block) in the Calendar module gives you the option to embed a mini-calendar as a block on your site. I would like this mini-calendar to show a future month instead of current month.

Does anybody know how to do it?

Thanks.

2
  • usually this block has a view controlling its output, try checking that view first.
    – saadlulu
    Aug 6 '12 at 19:45
  • @saadlulu I did. I could not find anything to there that allowed me to adjust the month displayed.
    – Stealth
    Aug 6 '12 at 19:54
1

You can adjust the Contextual Filter for this block. Instead of providing a default value of "Current date" you can set it to "PHP Code" and use the following:

return date('Y-m',strtotime('+1 month'));

Screenshot of contextual filter

0

Maybe it is still actual. Just change date in contextual filter WHEN THE FILTER VALUE IS NOT AVAILABLE Provide default value to Y-m format (PHP - return '2014-02', Fixed value - 2014-02).

This site is temporarily in read only mode and not accepting new answers.

Not the answer you're looking for? Browse other questions tagged .