Share » Forums » Setup & design » A news archive by month (problem...

A news archive by month (problem filtering by date)

A news archive by month (problem filtering by date)

Thursday 27 May 2004 12:22:10 am - 2 replies

Author Message

Piotr Kwiatkowski

Thursday 27 May 2004 1:06:48 am

An example of news archive you can find in BLOG template at:
kernel/setup/packages/blog/files/default/design.blog/override/templates/archive.tpl

Cristian G. L.

Monday 31 May 2004 12:23:14 am

Thanks for reply.

I did the following for fetch all news of a month (June in the example):

{let arrayNoticias=fetch(content, list, hash(parent_node_id, 53,
					 sort_by, array(published, false() ),
					 attribute_filter, array( array( published, >=,
 									 maketime(0,0,0,6,1,2004) ),
								  array( published, <,
									 maketime(0,0,0,7,1,2004) ) )

And it works!

Bye

Cristian

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu