Share » Forums » General » Offset navigator and URL

Offset navigator and URL

Offset navigator and URL

Friday 20 March 2009 2:16:37 am - 2 replies

Author Message

Jean-Yves Zinsou

Friday 20 March 2009 4:08:03 am

Hi there,
i don't know it this is possible in a simple way because the (offset) parameter in your url is used as view parameter in the template code to compute where to start the fetching of the nodes to list
;-(

The only way i can think of achieving this , is to make an extension with a module that takes the offset as ordered parameters ...

Is it worth it ?

Any other suggestion someone ?

Jey

Do Androids Dream of Electric Sheep?
I dream of eZpubliSheep....
------------------------------------------------------------------------
http://www.alma.fr

Benjamin Lorteau

Wednesday 01 July 2009 6:32:15 am

First of all you can change the way that offset is handled, by modifying the template to accept page numbers instead of offset number.

You would have to compute the offset passed in the fetch function, and modify navigator/google.tpl behavior to display page numbers instead of offsets in the generated links.

Then you could use Wilcards URL to transform something like

/Forum/Topic/(page)/2

into

/Forum/Topic/2

eZ Publish personal project : http://www.aeriesguard.com [fr]

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

36 542 Users on board!

Forums menu