Forums / Developer / how to make the pigination

how to make the pigination

Author Message

justin kazadi

Thursday 24 April 2008 1:44:07 am

hello all,

I want to know if it possible to the pagination with ez publish et how.

Think in advance.

The theory is when we know everything and nothing works.
The practice is when everything works and nobody knows why.
If the practice and theory are met, nothing works and we do not know why.

Albert Einstein

Salvatore Guarino

Thursday 24 April 2008 2:54:16 am

Hi Justin,

what do you mean with "pagination"? Maybe do you want to limit the number of children visible in a page with a bottom section with navigator links?

If yes, take a look to the standard full folder template, you can limit the number of children through variable $page_limit and include a navigator using default template navigator/google.tpl.

justin kazadi

Thursday 24 April 2008 3:31:28 am

Hi salvatore,

I have an instance of frontpage(name =news) and this instance contains 10 articles like subitems.
My article template display the title , body and contains 2 link like previous article and next article . This link must to allow to see the previous
article and next article which are subiteems of the frontapge(news) but i don't know how to do this.

MY article templates display this :

tutoriels et articles (title)

(body)

Cet article est un petit tutoriel d'introduction à Sitemesh, un framework Java/J2EE web permettant de gérer facilement le layout d'une
application web. Dans cet article, je vais commencer par introduire les autres possibilités de gestion de layout (inclusion de JSP, Tiles),
puis je présenterais Sitemesh et en donnerai un petit exemple pour finir sur ses fonctionnalités avancées.

<previous article next article>

The theory is when we know everything and nothing works.
The practice is when everything works and nobody knows why.
If the practice and theory are met, nothing works and we do not know why.

Albert Einstein

Patrick Renaud

Thursday 24 April 2008 4:27:08 am

This article should help you : http://ez.no/ezpublish/documentation/customization/custom_design/pagination

Ca, c'est fait !

eZ debug

Timing: Jan 18 2025 16:05:32
Script start
Timing: Jan 18 2025 16:05:32
Module start 'content'
Timing: Jan 18 2025 16:05:33
Module end 'content'
Timing: Jan 18 2025 16:05:33
Script end

Main resources:

Total runtime0.7679 sec
Peak memory usage4,096.0000 KB
Database Queries63

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 588.8438180.8359
Module start 'content' 0.00650.7541 769.6797600.7734
Module end 'content' 0.76060.0072 1,370.453146.1094
Script end 0.7679  1,416.5625 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00290.3815140.0002
Check MTime0.00130.1707140.0001
Mysql Total
Database connection0.00080.100210.0008
Mysqli_queries0.715693.1821630.0114
Looping result0.00130.1749610.0000
Template Total0.734095.620.3670
Template load0.00180.236820.0009
Template processing0.732195.336220.3661
Template load and register function0.00010.011310.0001
states
state_id_array0.00100.136210.0010
state_identifier_array0.00150.199220.0008
Override
Cache load0.00150.1948280.0001
Sytem overhead
Fetch class attribute can translate value0.00060.083730.0002
Fetch class attribute name0.00130.172270.0002
XML
Image XML parsing0.00130.170830.0004
class_abstraction
Instantiating content class attribute0.00000.001980.0000
General
dbfile0.00300.3917300.0001
String conversion0.00000.000930.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
4content/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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 18
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs