Plugin

Developer
Supported

AJAX Pagination

ExpressionEngine 1.x, ExpressionEngine 2

Back to this add-on's main page
View Other Add-ons From Laisvunas

     

You must be logged in to post.

Multiple paginations i the same template?

Support Request

Patrick Hvid
Patrick Hvid

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
# 1
Developer
Laisvunas

Hi Patrick,

Post here URL of your template for analysis.

Patrick Hvid
# 2
Patrick Hvid

Hi

The URL is here, and I have also attached the four templates used

URL

With best regards,

Patrick Hvid

File Attachments
articles2.group.zip  (File Size: 3KB - Downloads: 67)
Laisvunas
# 3
Developer
Laisvunas

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
# 4
Patrick Hvid

Thanks for the attention here..
Actually It’s only working on the last tab now, and not at all on the others :-/

/patrick

Laisvunas
# 5
Developer
Laisvunas

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
# 6
Patrick Hvid

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