Pagination on blog content type?

Author Message

Rich R

Tuesday 23 February 2010 3:18:35 am

Hi,

Im not sure if I have missed anything but I am trying to achieve pagination on blog posts within my blog. Is there a setting somewhere to show a certain number of blog posts per page by default? Or am I going to need to add that functionallity myself?

Thanks.

Nicolas Pastorino

Wednesday 24 February 2010 5:38:11 am

Hi Rich and welcome aboard !

Not having so much information about the context of your issue (ez publish version, custom design and content classes or not, etc.. ) i'd advise to spot the template used for displaying the blog posts, and search for a variable called $limit or something similar. This variable is most likely used to limit the amount of blog posts fetched ( in a 'fetch' function in the template ), and conditions pagination as well.

Let us know how it goes,
Cheers,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

Serhey Dolgushev

Saturday 27 February 2010 1:08:16 pm

Hi!

Here is a link to JavaScript paginator: http://mootools.net/forge/p/pagesnavigation (it requires mootools framework).

I hoe it will help you :)

cousin mosquito

Tuesday 02 March 2010 6:20:55 pm

Yes, I would also like to know how you can limit the amount of blog postings shown on a page.
Surely someone must know ?

Sometimes getting a useful response on this forum is like getting blood from a stone.

Asking the dumb questions for your benefit

cousin mosquito

Tuesday 02 March 2010 7:20:07 pm

"

Yes, I would also like to know how you can limit the amount of blog postings shown on a page.
Surely someone must know ?

Sometimes getting a useful response on this forum is like getting blood from a stone.

"

Ok here it is:

grep -r blog * > blog.txt
more blog.txt

This one appears to be the correct "blog.tpl"
extension/ezwebin/design/ezwebin/override/templates/full/blog.tpl:

..on line 13.

{def $page_limit = 10

change the 10 something a lot smaller if you have more than a handful of images because it will be pig slow.

I hope somebody else finds this useful.

Asking the dumb questions for your benefit

Luc Chase

Thursday 05 May 2011 11:43:09 am

The default blog.tpl or folder.tpl will show you how.

The Web Application Service Provider

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 30 2025 00:51:46
Script start
Timing: Jan 30 2025 00:51:46
Module start 'layout'
Timing: Jan 30 2025 00:51:46
Module start 'content'
Timing: Jan 30 2025 00:51:46
Module end 'content'
Timing: Jan 30 2025 00:51:46
Script end

Main resources:

Total runtime0.0160 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.0056 588.1328151.2109
Module start 'layout' 0.00560.0032 739.343836.6484
Module start 'content' 0.00880.0054 775.992294.3594
Module end 'content' 0.01410.0018 870.351637.9922
Script end 0.0159  908.3438 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002616.3517140.0002
Check MTime0.00116.9944140.0001
Mysql Total
Database connection0.00106.234710.0010
Mysqli_queries0.003119.605630.0010
Looping result0.00000.088110.0000
Template Total0.00148.810.0014
Template load0.00116.679510.0011
Template processing0.00032.071810.0003
Override
Cache load0.00074.645110.0007
General
dbfile0.00031.783780.0000
String conversion0.00000.043340.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