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.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 14:58:05
Script start
Timing: Jan 18 2025 14:58:05
Module start 'layout'
Timing: Jan 18 2025 14:58:05
Module start 'content'
Timing: Jan 18 2025 14:58:07
Module end 'content'
Timing: Jan 18 2025 14:58:07
Script end

Main resources:

Total runtime1.3033 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 588.1719152.6563
Module start 'layout' 0.00650.0028 740.828139.5078
Module start 'content' 0.00931.2927 780.3359588.2578
Module end 'content' 1.30200.0013 1,368.593812.4063
Script end 1.3033  1,381.0000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2616160.0002
Check MTime0.00140.1068160.0001
Mysql Total
Database connection0.00070.055710.0007
Mysqli_queries1.247295.6919620.0201
Looping result0.00070.0517600.0000
Template Total1.264397.020.6322
Template load0.00220.168420.0011
Template processing1.262196.838420.6310
Template load and register function0.00010.008010.0001
states
state_id_array0.00270.209910.0027
state_identifier_array0.00230.175720.0011
Override
Cache load0.00180.1410260.0001
Sytem overhead
Fetch class attribute can translate value0.00040.031230.0001
Fetch class attribute name0.00140.106560.0002
XML
Image XML parsing0.00290.225930.0010
class_abstraction
Instantiating content class attribute0.00000.001270.0000
General
dbfile0.00260.1987220.0001
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 17
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs