[TYPO3-calendar] nextMonthLink - condition

Mario Matzulla mario at matzullas.de
Tue Oct 11 19:17:22 CEST 2011


Hi Yilmaz,

Am 27.09.11 19:16, schrieb Yilmaz Backir:
> Sorry,
>
> the condition should be otherwise:
>
> If (count_of_the_events_from_the_next_month = 0) then
> show a_text_without_<a href> (e.g. noLink)
> else
> show ###NEXT_MONTHLINK###
> endif

Sorry, but you can't access the amount of events for the next month 
without actually doing a query. So you could replace the actual next 
month marker with a module marker and write your custom php code there.

Regards,
Mario
>
> Am 27.09.2011 18:54, schrieb Yilmaz Backir:
>> Dear all,
>>
>> is it possible to make a condition for the marker ###NEXT_MONTHLINK###
>> in month.tmpl in the following pseudo form:
>>
>> If (count_of_the_events_from_the_next_month = 0) then
>> show ###NEXT_MONTHLINK###
>> else
>> show a_text_without_<a href> (e.g. noLink)
>> endif
>>
>> Can anyone give me a hint for that?
>>
>> Kind regards,
>> Yilmaz
>



More information about the TYPO3-project-calendar mailing list