Download the PHP package skeuper/ajax-pagination without Composer
On this page you can find all versions of the php package skeuper/ajax-pagination. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download skeuper/ajax-pagination
More information about skeuper/ajax-pagination
Files in skeuper/ajax-pagination
Package ajax-pagination
Short Description Extension providing functionality for AJAX pagination for passed content objects
License GPL-2.0-only
Informations about the package ajax-pagination
TYPO3 Extension AJAX Pagination
TYPO3 Extension providing full functionality for AJAX paginations for passed objects.
Features
- only the related content element is rendered resulting in no performance problems
- lightweight, it doesn't require any additional libraries to work
- option to manipulate the browser history with an additional option
- if JavaScript is disabled the pagination will still work normally
- callbacks after successfully or failing the pagination process
Usage
- You can install the extension either using composer using
composer require skeuper/ajax-pagination
or you can download the extension from the TYPO3 extension repository and install it with the extension manager module. - Include the template
AJAX Pagination (ajax_pagination)to the included static templates. - Now you can change
<f:widget.paginate ... > ... </f:widget.paginate>to<p:widget.paginate ... > ... </p:widget.paginate>after including the ViewHelper namespacexmlns:p="http://typo3.org/ns/SKeuper/AjaxPagination/ViewHelpers"and everything should work already.
TYPO3 9 TypoScript Rendering
Currently the Widget ViewHelpers in the relied on TYPO3 extension helhum/typoscript-rendering are not compatible with TYPO3 9.
In my case I'm using this patch to make the ViewHelpers TYPO3 compatible.
There are 2 Pull Requests in the official extension repository too to fix the issue in case you want to wait for an official patch.
Browser History Manipulation
The pagination adds the option to manipulate the browser history while paginating.
You can simply add updateBrowserHistory: '1' to the passed configuration of the pagination.
This will result in the pagination pushing states in the browser history for restoring the previous site on going back.
Custom Pagination Template
You can overwrite the default pagination template by simply adding following lines to your custom TypoScript:
Callbacks after a successful pagination
In case you have to execute JavaScript after a pagination (f.e. for image gallery libraries) you can register a callback using the default exposed xhrPagination object.
The interface for the xhrPagination object which you could also import using the TypeScript modules:
Development
Want to contribute? Great!
I'm always glad hearing about bugs or pull requests.
License
This project is licensed under the GPL v2.0 - see the LICENSE file for details