DEPRECATION WARNING
This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.
Users Manual¶
Target group: Editors
Here should be described how to use the extension from the editor perspective.
Tip
Simple pagination configuration your plugin.
configuration setting¶
Following code need to use when data are in array form.:
.. code-block:: xml
{namespace pg=JSJsPaginateViewHelpers}
<pg:Paginate objects="{FAQ}" as="paginatedObjekt" configuration="{itemsPerPage: 5, insertAbove: 0, insertBelow: 1, maximumVisiblePages: 5, displayDots: 1}">
<f:for each="{paginatedObjekt}" as="faq">
YOUR CONTENT</f:for>
</pg:Paginate>
- itemsPerPage = 5
- 5 records will display on first page
- insertAbove = 1
- if insertAbove is true then pagination will display before content
- insertBelow = 1
- if insertAbove is true then pagination will display after content
- maximumVisiblePages = 5
- Maximum Visible Pages 5 in pagination.
- displayDots = 1
- if displayDots is true then dot ( ... ) will be display between pagination after we reach more than maximum Visible Pages.