Hello,
In my template variation for an agenda, I would like to write a condition using the year...
In my content form, the year of the article is defined by a "numerical field" (screenshot after my text...)
When I define my variable, it doesn't work : the value of the year is not identified, when using $annee = $cck->get('dio_agendamois_annee')->value; or
$annee = $cck->getText('dio_agendamois_annee') ; or $annee = $cck->renderField('dio_agendamois_annee') ; or
$annee = $cck->getValue('dio_agendamois_annee') ;
How should I define my variable ?
thanks for your answer !