Stopping article pagination?

Author Message

Brad Foggon

Sunday 31 July 2005 6:39:22 pm

I'm still fairly new to eZpublish and am still having trouble to understand how it fully works (even after reading many articles), but was just wondering how to stop the pagination of articles in different sections .. you can see an example of this here: http://cc.panscott.com/news/index.php/news/news/february_2005

So I basically just want all the articles listed on one page.

Thanks in advance,
Brad.

Łukasz Serwatka

Sunday 31 July 2005 11:23:14 pm

Hi Brad,

If other folders in this section will the same template than you can remove code which include google.tpl template

 {include name=navigator
          uri='design:navigator/google.tpl'
           .
           .
           .} 

Remove also "limit" from hash() in your fetch function.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Brad Foggon

Monday 01 August 2005 11:22:17 pm

Where is the fetch function so I can remove the "limit" form hash()? I got the google pagination to disappear, however the articles that would be showing on page 2 are not being moved onto page 1. I'm guessing removing this limit will fix that, or am I mistaken?

David Eriksson

Tuesday 02 August 2005 12:38:06 am

The fetch is usually at the top of the template.

/David

Brad Foggon

Tuesday 02 August 2005 4:29:14 pm

At the top of which template .. and do I just delete the "limit" from the hash() function?

ie. hash(blah, limit, blah, blah) -> hash(blah, blah, blah)?

Łukasz Serwatka

Tuesday 02 August 2005 11:04:01 pm

Prodably this is template
design\base\override\templates\full\folder.tpl, then search for

list_items=fetch_alias( children, hash( parent_node_id, $node.node_id,
                                                             offset, $view_parameters.offset,
                                                             sort_by, $node.sort_array,
                                                             limit, $page_limit ) )}  <- remove this limit

I suggest to take TSCM tutorial, it is very usefull at the beginning. Read also about fetch "function" and "list".

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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 19 2025 01:07:57
Script start
Timing: Jan 19 2025 01:07:57
Module start 'layout'
Timing: Jan 19 2025 01:07:57
Module start 'content'
Timing: Jan 19 2025 01:07:57
Module end 'content'
Timing: Jan 19 2025 01:07:57
Script end

Main resources:

Total runtime0.0292 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0183 590.2656152.6250
Module start 'layout' 0.01830.0037 742.890639.4453
Module start 'content' 0.02190.0051 782.335993.4141
Module end 'content' 0.02710.0021 875.750038.3047
Script end 0.0292  914.0547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00279.3336140.0002
Check MTime0.00113.8318140.0001
Mysql Total
Database connection0.011238.425810.0112
Mysqli_queries0.004314.651830.0014
Looping result0.00000.092210.0000
Template Total0.00165.510.0016
Template load0.00092.942610.0009
Template processing0.00072.525710.0007
Override
Cache load0.00061.991410.0006
General
dbfile0.00030.920280.0000
String conversion0.00000.034340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs