*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

merlinofchaos’s picture

Hmm. Maybe Panels is ovewriting that setting with the 'pager on' setting. Will look into this.

gunzip’s picture

subscribe

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.

sorahn’s picture

Happens 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.

merlinofchaos’s picture

Status: Active » Fixed

Checked in a fix for this. Thanks!

sorahn’s picture

Will this make it into (also will there be) another panels 2 release? If not, can you post a patch for it?

Thanks.

merlinofchaos’s picture

This fix went out in beta1.

sorahn’s picture

Can you post a patch for those of us still on panels 2.x? I haven't upgraded our site to panels + chaos tools yet.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.