Forums / Developer / fetch ordered on publish date with google bar

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

fetch ordered on publish date with google bar

Author Message

Joris Lint

Thursday 06 November 2003 3:30:02 am

How do I make a fetch on news articles ordered by ' published on' date.
And how can I show maximum of five with a goole bar under it to go to the next page of news articles. (a google bar is: [1][2][3]...)

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.