Re: [NigelGordijk] Blog: limiting number of posts per page
Hi Nigel,
To limit the number of posts that appear in an index use this code in to top part of your page:
'perPage' => '5',
Next, it appears that your blog.php and blogDetail.php pages are almost the indentical.
Does the blogDetail.php have a foreach loop for the content? It shouldn't so this would explain the additional article on the page.
Use the Code Generator for the blog to generate single page code to confirm the correct code.
To make it easy to check your blog post links are linking to the right page, try adding the "title" to the Filename Fields:
Admin > Section Editors > click modify for the Blog seciton, then click on the Viewer Urls.
I hope this helps.
Cheers,
Damon Edis - interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/