solved easy ajax pagination in sitebuider

soaringeagle
@soaringeagle
8 years ago
3,304 posts
can you add an option under the result6s per page in item lists to use ajax pagination
especially when using multiple lists within tabbed containers this is a huge plus
example
you have 6 diferent members quotas which you want listed in separate tabs with say 15 results per page
with
{jrCore_list module="jrProfile" order_by="_created desc" pagebreak="15" pager="true" page=$_post.p }
when you click the pager every tab goes to page 2
instead it would be better if only the results in the current tab go to page 2

also can that be the default action for activity feed


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

updated by @soaringeagle: 02/06/17 05:05:26AM
brian
@brian
8 years ago
10,148 posts
I believe AJAX pagination is already supported - I can check it out. Could be that it just needs enabling in SB widgets.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
soaringeagle
@soaringeagle
8 years ago
3,304 posts
hmm didn't see it that would be awesome thanx so much


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
michael
@michael
8 years ago
7,715 posts
If the 'container settings' for that widget block is set to TABBED then pagination will happen via ajax.

SITE BUILDER -> CONTAINER SETTINGS -> CONTAINER LAYOUT -> Tabbed - each widget is located on its own tab inside the container.
soaringeagle
@soaringeagle
8 years ago
3,304 posts
what about the activity stream which should paginate using ajax by default right or what code should i use


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
paul
@paul
8 years ago
4,326 posts
soaringeagle:
what about the activity stream which should paginate using ajax by default right or what code should i use
Not sure that it should paginate by default - other users may disagree. But its easy to set it up in SB, whichever way you want it to work.


--
Paul Asher - JR Developer and System Import Specialist
soaringeagle
@soaringeagle
8 years ago
3,304 posts
the old version of sb defaults to pagunation with ajax but new vrsion doesnt paginate unless you add pager= true then doesnt use ajax


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
paul
@paul
8 years ago
4,326 posts
What widget type are you using? Template Code? What you say above sounds logical if so.


--
Paul Asher - JR Developer and System Import Specialist
soaringeagle
@soaringeagle
8 years ago
3,304 posts
no item list


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
soaringeagle
@soaringeagle
8 years ago
3,304 posts
oh wait i maybe did use template code just to add an item class to it
ill try that


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
soaringeagle
@soaringeagle
8 years ago
3,304 posts
same result either way..also can only work in ff in edge it always loads cached versions even i developer mode with server cache disabled and browser cache cleared.so form data always says invalid
modules i updated say they need updating etc


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
michael
@michael
8 years ago
7,715 posts
WIDGET:
list module: timeline
results per page: 2
* save.

CONTAINER SETTINGS -> container layout -> tabbed


---
Thats it. ajax pagination for the activity timeline.
soaringeagle
@soaringeagle
8 years ago
3,304 posts
k i got ya just put it in a tabbed widget by itself .i thought of that last night
but that will add an unnecessary tab at the top
thats fine
i can work with it just thought it might be nice to have the option, outside of a tabbed wisget


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
paul
@paul
8 years ago
4,326 posts
It doesn't. Tabs only appear if there is more than one widget in a tabbed container.
hth


--
Paul Asher - JR Developer and System Import Specialist
soaringeagle
@soaringeagle
8 years ago
3,304 posts
ok its working now but i cant add an item class containing div can i
i guess i can just add a container id to the widget container


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

Tags