[TYPO3-calendar] starttime dayView
Mario Matzulla
mario at matzullas.de
Thu Dec 6 08:31:58 CET 2012
Hi Stefan,
Am 05.12.12 22:47, schrieb Stefan Schreck:
> On 2012-12-05 20:31:03 +0000, Mario Matzulla said:
>
>> plugin.tx_cal_controller._DEFAULT_PI_VARS {
>> getdate=20130125
>> view=day
>> }
>
> does not work at least not with many tx_cal_controller day plugins on
> one page
> s
>
After switching these two if-statements in the controller class of the
initConfigs function it should work:
if ($this->cObj->data['pi_flexform']) {
$this->pi_initPIflexForm(); // Init and get the flexform data of the
plugin
$piFlexForm = $this->cObj->data['pi_flexform'];
$this->updateConfWithFlexform($piFlexForm);
}
if (!$this->conf['dontListenToPiVars']) {
$this->pi_setPiVarDefaults(); // Set default piVars from TS
}
And of course you have to define the TS inside the plugin:
_DEFAULT_PI_VARS {
getdate=20130125
view=day
}
Regards,
Mario
PS: I'm not sure if switching the statements has any sideeffects. So
please go ahead and test it. If everything is ok, please write a feature
request and I will include it in a later version.
More information about the TYPO3-project-calendar
mailing list