[TYPO3-calendar] SOLVED: nextMonthLink - condition

Yilmaz Backir it at bysystem.net
Sun Oct 16 18:11:19 CEST 2011


Hi Mario,

thanx for your hint. I added my own php code there and now it works.

Kind regards,

Yilmaz

Am 11.10.2011 19:17, schrieb Mario Matzulla:
> 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