Hello
I have made a website witch couchcms which contains a list of dates with activities.
On the one hand there is a list of weekly activities that gets regularly update underneath there is a list of special activities these are often planned far ahead.
What I want to achieve is that when the special activity falls within the shown dates of the weekly activities it is added to the first list.
What I have now is:
The variables work, I checked them. If I replace the last_date variable in the final cms:if with a number say '20150718' everything works. But with the variable nothing shows up.
Any obvious or less obvious thing I'm doing wrong?
Thank in advance
Korneel
I have made a website witch couchcms which contains a list of dates with activities.
On the one hand there is a list of weekly activities that gets regularly update underneath there is a list of special activities these are often planned far ahead.
What I want to achieve is that when the special activity falls within the shown dates of the weekly activities it is added to the first list.
What I have now is:
- Code: Select all
<cms:pages masterpage='temp_agenda.php' orderby='ag_datum01' order='asc'>
<cms:if ag_check = '3'>
<cms:if ag_activiteit1>
<cms:set last_date="<cms:date ag_datum01 format='Ymd'/>" scope="global"/>
-list...-
<cms:else/>
<cms:set cur_date="<cms:date ag_datum01 format='Ymd'/>" scope="global"/>
<cms:if cur_date lt last_date>
-list...-
</cms:if>
</cms:if>
</cms:pages>
The variables work, I checked them. If I replace the last_date variable in the final cms:if with a number say '20150718' everything works. But with the variable nothing shows up.
Any obvious or less obvious thing I'm doing wrong?
Thank in advance
Korneel