articles by semesters

Hi

I wish I could have a boucle that groups articles by semesters, like:

- published in the first semester of 2013
- published in the second semester of 2012
- published in the first semester of 2012
- published in the second semester of 2011
- published in the first semester of 2011

I´ve been learning a lot at the "Managing Dates" article, but not enough

thanks in advance!
tereza

Le 03/07/13 23:55, Tereza Loparic a écrit :

I wish I could have a boucle that groups articles by semesters, like:

maybe something like:

<ul>
<BOUCLE_foo(ARTICLES) {!par date}>
[</ul>
<ul>(#DATE|mois|<{7}|?{first semester of , second semester of }|concat{#DATE|annee}|unique)]
<li>"#TITRE" published on [(#DATE|affdate)]</li>
</BOUCLE_foo>
</ul>

Hi

Have you tried something like :
     <BOUCLE_articles(ARTICLES) {quarter(date)=3}>
     or: {quarter(date)==3|4}
     or: {quarter(date)!=3}
     or: {quarter(date)!==3|4}

Pat

QUARTER seems to be an SQL function :
http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html#function_quarter

Le 03/07/2013 23:55, Tereza Loparic a écrit :

Hi

I wish I could have a boucle that groups articles by semesters, like:

- published in the first semester of 2013
- published in the second semester of 2012
- published in the first semester of 2012
- published in the second semester of 2011
- published in the first semester of 2011

I´ve been learning a lot at the "Managing Dates" article, but not enough

thanks in advance!
tereza