Menu

#678 print view year displays only 3 months of data

v2.0
open
nobody
5
2017-01-17
2015-04-06
Jurgen
No

I want to display a calendar in print view "year" with dates spanning over a number of months. However, the list cuts off after three months. Later dates are not displayed. On the other side, all dates are displayed when viewed in calendar mode "year".

Is there a way to display all the dates of the year in the print mode?

Default language is set to German.
http://www.123me.de/phpicalendar/print.php?cal=1620%20IKS.ics
http://www.123me.de/phpicalendar/month.php?cal=1620+IKS

Discussion

  • Lijat

    Lijat - 2016-01-21

    I was encountering the same bug, the following patch solves the problem
    In date_range.php

    +$current_view_time = $current_view;
    +if($current_view_time == 'print'){
    +       $current_view_time=$phpiCal_config->default_view;
    +}
    +
    +switch ($current_view_time){
    -switch ($current_view){
    
     
  • Thomas Wilhelmi

    Thomas Wilhelmi - 2016-11-15

    Hi,
    this patch didn't work for me... I have the same problem, only two or tree month. In version 2.31 al month are shown, but there are other problems.
    I hope, someone can help!
    Regards,
    Thomas

     
  • Jim Hu

    Jim Hu - 2016-11-15

    I apologize, but development on this project has been dormant for a while.

     
  • Thomas Wilhelmi

    Thomas Wilhelmi - 2016-11-16

    Hi Jim,
    i understand, but it's very important for me and i'm not good in PHP. If you can help me with this problem or somebody else, of course i would pay for help and your time - if you can help?!
    Thanks,
    Thomas

     
  • Thomas Wilhelmi

    Thomas Wilhelmi - 2017-01-17

    Hi all,
    i've got the solution that works - i hope, not only for me:

    This postet from Lijat:

    +$current_view_time = $current_view;
    +if($current_view_time == 'print'){
    +       $current_view_time=$phpiCal_config->default_view;
    +}
    +
    +switch ($current_view_time){
    -switch ($current_view){
    

    ... worked not for me, but if i change one line ...

    +$current_view_time = $current_view;
    +if($current_view_time == 'print'){
    +       $current_view_time = 'year';
    +}
    +
    +switch ($current_view_time){
    -switch ($current_view){
    

    Et voilà!
    :-)

    Thomas

     

Log in to post a comment.