Share » Forums » Developer » fetch ordered on publish date with...

fetch ordered on publish date with google bar

fetch ordered on publish date with google bar

Thursday 06 November 2003 3:30:02 am - 2 replies

Author Message

Eirik Alfstad Johansen

Wednesday 12 November 2003 12:01:50 pm

Hi Joris,

Here are the bits and pieces. You'll have to glue them together yourself.

To sort articles by the date they're published, use the parameter "sort_by,array(published,false())" to sort articles from new to old, and "sort_by,array(published,true())" to sort from old to new (in a fetch function).

To show a maximum of five articles, use the parameter "limit, 5".

Getting a Google toolbar should not be a problem as this is included in the default node/view.tpl, so just copy that one and add the parameters above.

Good luck !

Sincerely,

Eirik Johansen
Netmaking AS

http://www.netmaking.no/

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Joris Lint

Tuesday 18 November 2003 12:26:05 am

Tx, this is what i needed.

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

36 542 Users on board!

Forums menu