*This is not a "views paging breaks panels" bug*
Views2 gives the option between a Mini Pager and a Full Pager. Mini is just 2 arrows and Full is 1 - 2 - 3 - 4 etc.
I'm using a Views Panel Pane with AJAX Paning using a Mini Pager. When you load the Panel, the View Pager shows as a Full Pager (very bad for my layout). After clicking to the next page (AJAX), it shows a Mini pager, and so on.
I tested this by placing the block in standard block regions - without panels - and the bug doesn't exist, so this seems to be a panels issue.
Any thoughts?
Thanks
Comments
Comment #1
merlinofchaos commentedHmm. Maybe Panels is ovewriting that setting with the 'pager on' setting. Will look into this.
Comment #2
gunzip commentedsubscribe
EDIT: and if you use the initial full pager it doesn't works.
it works only after you click on the 'next' link and the pager is realoaded as the mini one.
Comment #3
sorahn commentedHappens in 6.x-2.0-alpha3 as well.
Subscribe
EDIT: Temporary solution. If you have access to the database, you can change the value of "use_pager" from 1 to "mini" to get it to work. You'll have to change this every time you make a change to the panel, so makes sure you get it all set up first. This is in the panel_pane table for the specific pane you want to use the mini pager.
Example.
Before:
a:16:{s:7:"context";a:1:{i:0;s:5:"empty";}s:5:"style";s:7:"default";
s:14:"override_title";i:1;s:19:"override_title_text";s:12:"New Releases";
s:6:"css_id";s:0:"";s:9:"css_class";s:0:"";s:12:"link_to_view";i:0;s:9:"more_link";
i:0;s:10:"feed_icons";i:0;s:9:"use_pager";i:0;s:8:"pager_id";
s:1:"1";s:14:"nodes_per_page";s:2:"10";s:6:"offset";s:1:"0";s:10:"panel_args";
i:0;s:4:"args";s:12:"product_page";s:3:"url";s:0:"";}
After:
a:16:{s:7:"context";a:1:{i:0;s:5:"empty";}s:5:"style";s:7:"default";
s:14:"override_title";i:1;s:19:"override_title_text";s:12:"New Releases";
s:6:"css_id";s:0:"";s:9:"css_class";s:0:"";s:12:"link_to_view";i:0;s:9:"more_link";
i:0;s:10:"feed_icons";i:0;s:9:"use_pager";s:4:"mini";s:8:"pager_id";
s:1:"1";s:14:"nodes_per_page";s:2:"10";s:6:"offset";s:1:"0";s:10:"panel_args";
i:0;s:4:"args";s:12:"product_page";s:3:"url";s:0:"";}
Storing the object in the database, s:4:mini tells the object when it rebuilds that into an array, that it's a "string" that's 4 characters long, then you type out the string.
Comment #4
merlinofchaos commentedChecked in a fix for this. Thanks!
Comment #5
sorahn commentedWill this make it into (also will there be) another panels 2 release? If not, can you post a patch for it?
Thanks.
Comment #6
merlinofchaos commentedThis fix went out in beta1.
Comment #7
sorahn commentedCan you post a patch for those of us still on panels 2.x? I haven't upgraded our site to panels + chaos tools yet.