Forums / Setup & design / filter

filter

Author Message

Valentina Ferrari

Tuesday 04 May 2004 3:24:32 am

Hi!
I sort the last published news by date using this code:

{let news_list=fetch( content, tree, hash( parent_node_id, 2,
				       limit, 1,
				       attribute_filter, array('or', array( 'article/primo_piano', '=', true()), array( 'article/prodotti', '=', true() ) ),
				       sort_by, array( published, false() ) ) )}

Now, I would like to sort the second and the third news published in another part of this page. So, I think that the wright way is using the same code excluding the last published news, but I don't know the way to filter this.

Any help is welcome!

Greatings,
Valentina

Bjørn Kaarstein

Tuesday 04 May 2004 5:15:48 am

Maybe you could try offset,1 in your fetch. I think it will start at item no.2.

Regards Bjørn