eZ Community » Forums » Developer » Pagination on blog content type?
expandshrink

Pagination on blog content type?

Pagination on blog content type?

Tuesday 23 February 2010 12:18:35 pm - 5 replies

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.

Wednesday 24 February 2010 2:38:11 pm

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,

Saturday 27 February 2010 10: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 happy.gif Emoticon

Wednesday 03 March 2010 3:20:55 am

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.

Wednesday 03 March 2010 4:20:07 am

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.

Thursday 05 May 2011 8:43:09 pm

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

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from