Loading...
 

Tikiwiki-devel (mailman list mirror)


Pagination in Lists

Moving to dev list.

As far as I remember, all it takes is to put a different "offset_arg" in
the pagination parameters, e.g. {pagination max="10"
offset_arg="resourceslist"}, and the pagination should appear and should
work. This is unless some regression happened (because I clearly tested
this when Jonny first implemented the offset_arg parameter).

Just to confirm, this is not the pagination that is generated from the
\{pagination_links\} but rather the one that is auto-generated right? There
is a possibility that perhaps when Jonny added the offset_arg it wasn't
made to work with the pagination_links. I would think perhaps that
\{pagination_links .... offset_arg="resourceslist"\} might work but if it
wasn't one of the originally tested use cases it might require some fixing
to make work.

Nelson.

On Fri, Mar 18, 2016 at 5:05 PM, Jonny Bradley wrote:

> Hi Pat,
>
> Short (Friday night) answer... Not sure!
>
> I did a load of fixes for multiple lists a while back, not sure how robust
> that was or if it totally applies to custom search & ajax, but happy to
> look into it. Any chance you could send a diff/patch file of your fix? Hard
> to tell from a screenie ;)
>
> jonny
>
> P.s. Why not do this in the dev list? Nice to share :-)
>
>
> On 18 Mar 2016, at 18:22, Patrick Proulx wrote:
>
> Hey guys,
>
> Quick question:
>
> Currently, the list plugin documentation says
>
>> Additionally, the pagination control can have the following parameters:
>>
>> - onclick
>>
>>
>> - offset_jsvar
>>
>>
>> - offset_arg to change the key used in the URL for pagination, useful
>> when multiple lists are used within the same page
>>
>>
>> - sort_arg (Tiki 14+) to allow multiple lists to have separate sort
>> keys
>>
>>
>> - max for the number of results per page
>>
>>
> What I'm particularly interested in right now is the offset_arg since I
> have multiple lists and one of them is paginated (and I want my pagination
> to only affect that one).
>
> I know how it works (sort of) with CustomSearch, but with the List plugin,
> I don't know how to get it to reference a particular list since there's no
> id or anything.
>
> I was thinking that it might already exist though considering the
> documentation.
>
> Anyways, I couldn't figure it out so I added some code myself to make the
> pagination work but wanted to check to see if either a) I overlooked
> something and the functionality is already there or b) if there was a
> better way of doing this before I committed back to Tiki.
>
> Thanks!!
>
> Patrick Proulx
> IT Project Manager
> Synergiq Solutions
> 613-325-0533
>
> www.synergiqsolutions.com

Why Register?

Register at tiki.org and you'll be able to use the account at any *.tiki.org site, thanks to the InterTiki feature. A valid email address is required to receive site notifications and occasional newsletters. You can opt out of these items at any time.