[bug in 2.2.5] entries page navigator miss some old pages

This is the place to discuss bugs that have been found in the most recent version of PivotX. Posting bugs will ensure that the Development Team is aware of them and that they will be addressed when resources are available.

Re: [bug in 2.2.5] entries page navigator miss some old pag

Postby Harm10 » Thu Apr 14, 2011 7:08 am

I think he means the amount parm in the template tag for subweblog (see http://book.pivotx.net/index.php?page=app-b#anchor-subweblog--weblog) or tag for paging (see http://book.pivotx.net/index.php?page=app-b#anchor-paging)
Quality is in the detail of things............

Want to change or update your PivotX site? Mail or PM me!
I can also convert your site to a Wordpress site!
Harm10
Developer
 
Posts: 2011
Joined: Wed Jun 17, 2009 9:37 am
Location: Somewhere in The Netherlands (aka Holland)

Re: [bug in 2.2.5] entries page navigator miss some old pag

Postby hansfn » Thu Apr 14, 2011 7:39 am

Yes, I'm asking whether you have set the amount parameter anywhere in your templates - not the configuration.
hansfn
Developer
 
Posts: 3282
Joined: Sun Nov 25, 2007 7:48 pm
Location: Molde, Norway

Re: [bug in 2.2.5] entries page navigator miss some old pag

Postby smithfox » Thu Apr 14, 2011 8:12 am

I have update my template(the pivotx2.2.5 default template "skinny") frontpage_template.html,
Code: Select all
[[ subweblog amount=8 name="standard" category="*" ]][[ literal ]]
         <div class="pagenav">
            [[ paging action="prev" amount=8 category="*" ]] |
            [[ paging action="curr" amount=8 category="*" ]] |
            [[ paging action="next" amount=8 category="*" ]]
         </div>


but the issue still exist!

at first, I try to change the amount as 10, but it seem that only subweblog setting can effect the amount of pages on homepage, when you click the next page link, you can find pivotx page navigator show "Displaying entries 9-16 of 106".

So I follow the pivotx hardcode default value, 8.

But the pages titles links only move 6, but not 8. That's means: the issue still exist.

I strong suggest you check code: whether the pagging logic inlucde the held pages.
smithfox
 
Posts: 24
Joined: Fri Oct 22, 2010 12:51 am

Re: [bug in 2.2.5] entries page navigator miss some old pag

Postby hansfn » Thu Apr 14, 2011 8:23 am

You should not set amout in your templates. I just asked if you had done so.

We don't include held pages. Excerpt from the paging code:

Code: Select all
                    $temp_tot = count($PIVOTX['db']->read_entries(array(
                        'show'=>$tot, 'cats'=>$eachcats, 'user'=>$_GET['u'], 'status'=>'publish')));


If you can give me FTP access, I can debug and fix it tonight. I just don't have any more questions to ask ...
hansfn
Developer
 
Posts: 3282
Joined: Sun Nov 25, 2007 7:48 pm
Location: Molde, Norway

Re: [bug in 2.2.5] entries page navigator miss some old pag

Postby smithfox » Thu Apr 14, 2011 8:55 am

hansfn, Than you, Tonight!, It is too late. :)
later, I will send email to you, then you can help me troubleshooting at your convenience.
smithfox
 
Posts: 24
Joined: Fri Oct 22, 2010 12:51 am

Previous

Return to 2.x Bugs

Who is online

Users browsing this forum: No registered users and 3 guests

cron