[TYPO3-calendar] Show in Legend only categories used this month

Mario Matzulla mario at matzullas.de
Thu Jan 24 20:08:40 CET 2013


Hi Patrick,

Am 24.01.13 15:59, schrieb PM:
> Hi Mario
>
>>>>> C.)  Maybe you haven't seen this question: If I want to use my
>>>>> module in
>>>>> the month template and in the year view template, how can I find out
>>>>> which template/view is calling my module?
>>
>> Well, there is no documentation for it :(
>> But it should be self explaining, if you understand the
>> model-view-controller concept cal is build up on:
>>
>> Any *_model.tmpl of the standard_template folder belongs to a model.
>> And most of the others belong to a view :)
>>
>
>
> Sorry, my question was about the following:
>
> Imagine I have used ###MODULE__MYFILE### as well in the month.tmpl and
> the year.tmpl
>
> If it is in the month.tmpl then I have to use the categories of this month.
> If it is in the year.tmpl then of this year.
>
> So my Module has to know which view is currently used.
> Is there a variable for it?

that's conf['view'] -> should be month or year

Regards,
Mario
>
>
> Thanks
> Patrick
>
>



More information about the TYPO3-project-calendar mailing list