Display Calendar as a Block

Hello,

after a time searching I am unable to display the calendar as a widget / block. I have created the following Service wich will be displayed as a block:

function servicePersonalCalendar ($iYear = '', $iMonth = '')
{
            //die($this->_aModule['class_prefix']);

            bx_import ('Calendar', $this->_aModule);
            $oCalendar = bx_instance ($this->_aModule['class_prefix'] . 'Calendar', array ($iYear, $iMonth, $this->_oDb,         $this->_oTemplate, $this->_oConfig));
            echo $oCalendar->display();
}

 

The above Code will display only the Full-Page Calendar, how I can display the small Calendar?

 

Thank you

Quote · 3 Jul 2014

The calender will auto adjust to the width of the block. So make sure you have it in a small page block.

Also to force mini mode pass true to the display function.

Change this in your code.

echo $oCalendar->display();

To this

echo $oCalendar->display(true);

You should also use return in a service call, so this.

echo $oCalendar->display(true);

Should be this.

return $oCalendar->display(true);

https://www.deanbassett.com
Quote · 3 Jul 2014
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.