Forums / Developer / How can I add posted get-variables to a link for pagination

How can I add posted get-variables to a link for pagination

Author Message

Andreas Adelsberger

Wednesday 09 May 2007 8:44:22 am

hi there,

i have a custom search form and i need to paginate the results.

i get something like ...index.php/news/articles/?name=my+name&ContentObjectAttribute_id%5B%5D=20072&_country_20072=&ContentObjectAttribute_id%5B%5D=20079...

and i need pagination here, so i have to pass all the get variables in my pagination links.

any ideas? thanx a lot!

---------------------------------------
Styleflasher New Media OG
Websites. Games/Multimedia.

Frédéric DAVID

Thursday 10 May 2007 12:49:27 am

Hello,

In eZ publish, you can use the operator ezhttp ( 1 ) to have the get variable.

You can use too the parameter offset , and the parameter limit. Limit defines the number of elements which display on the page, and offset the first element.

limit, 5, offset, 0 display the first five elements of your selection.
limit, 5, offset, 5 display the five elements of your selection which have position 6 and 10.

1 - http://ez.no/doc/ez_publish/technical_manual/3_8/reference/template_operators/data_and_information_extraction/ezhttp

Blog : http://www.frefred.fr/blog/ez-publish
feZ Meta Data : http://projects.ez.no/fezmetadata

Renaud Patrick

Thursday 10 May 2007 2:32:15 am

Hello,

Look at this link, it might answer your question : http://ez.no/ezpublish/documentation/customization/custom_design/pagination

Andreas Adelsberger

Thursday 24 May 2007 6:58:53 am

hi there!

thanx for your replies, i used the $get_vars=ezhttp() to get all the vars i needed!

thanx for your support & greetz
andi

---------------------------------------
Styleflasher New Media OG
Websites. Games/Multimedia.