AJAX Pagination
ExpressionEngine 1.x, ExpressionEngine 2
Back to this add-on's main page
View Other Add-ons From Laisvunas
Multiple paginations i the same template?
Support Request
Patrick Hvid
|
Posted: 09 June 2012 04:18 PM |
|
|
|
Hi
I’ve got a situation where I use tabbed viewing of content (tabbed based on categories)
The page operates by loading all content in hidden divs and then the tabs open one div at a time
Technically this means I need to call the pagination more than once in the same template, and it doesn’t seem to work fully.
I have tried to create multiple embeds, and call them all (also with different name of the ajax-container inside.
First tab (initially viewed) works fine, but the next I can only tab forward.
Also, how do you create “next page” “previous page” rather than the numbering?
Best regards
/patrick
|
|
|
Laisvunas
|
Posted: 10 June 2012 03:31 PM |
# 1
|
|
Developer
|
Hi Patrick,
Post here URL of your template for analysis.
|
|
|
Patrick Hvid
|
Posted: 10 June 2012 04:32 PM |
# 2
|
|
|
Hi
The URL is here, and I have also attached the four templates used
URL
With best regards,
Patrick Hvid
File Attachments
|
|
|
Laisvunas
|
Posted: 12 June 2012 08:34 AM |
# 3
|
|
Developer
|
Hi Patrick,
You spotted a bug. I fixed it in the version 1.1.
Install this version and make following changes in the file index.html:
<div id="rA" class="tab-pane active"> {embed="articles2/ajaxcat10" ajax_pagination_vars="tag_count" ajax_pagination_values="1"} </div> <div id="rB" class="tab-pane"> {embed="articles2/ajaxcat11" ajax_pagination_vars="tag_count" ajax_pagination_values="2"} </div> <div id="rC" class="tab-pane"> {embed="articles2/ajaxcat12" ajax_pagination_vars="tag_count" ajax_pagination_values="3"} </div>
|
|
|
Patrick Hvid
|
Posted: 12 June 2012 08:58 AM |
# 4
|
|
|
Thanks for the attention here..
Actually It’s only working on the last tab now, and not at all on the others :-/
/patrick
|
|
|
Laisvunas
|
Posted: 13 June 2012 08:36 AM |
# 5
|
|
Developer
|
Hi Patrick,
Multiple paginations in the same template work correctly on my server.
I can debug your code if you can give me CP and FTP access to your dev server.
If you can, write me email to this address: saugos [at] gmail [dot] com
|
|
|
Patrick Hvid
|
Posted: 14 June 2012 05:49 AM |
# 6
|
|
|
Hi
Thanks for all the help. I will double check all code here, perhaps there is some error that did not show in the old version of the plugin.
Unfortunately it seems that there also is a problem to do ajax pagination when I have active components attached to each post (like FB-buttons etc.) so it might be that i need to abandon this idea for this project.
/patrick
|
|
|