[TYPO3-calendar] starttime dayView
Mario Matzulla
mario at matzullas.de
Thu Dec 6 13:39:40 CET 2012
Hi Stefan,
Am 06.12.12 08:31, schrieb Mario Matzulla:
> 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
> }
This doesn't work :(
the _DEFAULT_PI_VARS are included after the getdate has been
constructed. So the only way to manipulate the getdate would be: using
the "configuration" hook of the controller class.
Regards,
Mario
>
> 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