Configuration
Add Site Settings
Infinite Scrolling is a frontend extension that does not require a plugin.
To configure the extension, navigate to Site Management -> Sites and add the Infinite Scrolling Site Set to your Site configuration.
Adding the Infinite Scrolling Site Set
Site Settings
Go to Site Management -> Settings, select your Site configuration, and scroll down to Infinite Scrolling.
Configure the first section of Site Settings
-
- Type
- boolean
- Default
- false
- Path
- infinitescrolling.includeJQueryLibrary
Enable this option to include the jQuery JavaScript library.
-
- Type
- string
- Default
- window
- Path
- infinitescrolling.scrollContainer
Define the scroll container. Use
windowto bind the scrolling to the browser window, or provide a jQuery selector for a scrollable element.Sample:
window
-
- Type
- string
- Default
- (none)
- Path
- infinitescrolling.container
Specify the jQuery selector for the container holding all items (e.g., news or events) to paginate.
Sample:
div.news- list- container
-
- Type
- string
- Default
- (none)
- Path
- infinitescrolling.item
Specify the jQuery selector for a single item within the list container.
Sample:
div.news- list- item
-
- Type
- string
- Default
- ul.f3-widget-paginator
- Path
- infinitescrolling.pagination
Define the jQuery selector for the paginator. This selector will hide the paginator in the frontend.
Sample:
div.news- list- browse
-
- Type
- string
- Default
- li.next a
- Path
- infinitescrolling.next
Define the jQuery selector for the "Next" link in the paginator. The href attribute will be used to load and append the next page’s content.
Sample:
div.browse Links Wrap a: eq (- 2)
Configure the second section of Site Settings
-
- Type
- string
- Default
- li.previous a
- Path
- infinitescrolling.previous
Define the jQuery selector for the "Previous" link in the paginator. The href attribute of this element will be used to retrieve items from the previous page. Ensure only one element matches the selector.
Sample:
li.previous a
-
- Type
- string
- Default
- <div class="ias-spinner" style="text-align: center;"><img src="{src}"/></div>
- Path
- infinitescrolling.loader.html
Customize the loader icon by specifying your own HTML. Use {src} to include the loader icon path, either the default one or the one set via "Custom loader icon path".
Sample:
<div class="ias-spinner" style="text- align: center;"><img src=" {src}"/></ div>
-
- Type
- string
- Default
- 1
- Path
- infinitescrolling.loader.src
Provide a custom path to a loader icon, e.g.
EXT:. Leave empty to use the default loader icon.my_ sitepackage/ Resources/ Public/ Icons/ spinner. gif Sample:
EXT:my_ sitepackage/ Resources/ Public/ Icons/ spinner. gif
-
- Type
- int
- Default
- 0
- Path
- infinitescrolling.delay
Set a delay (in milliseconds) before loading additional items. Increase this value to ensure the loader icon is visible longer.
Sample:
5
-
- Type
- int
- Default
- 5
- Path
- infinitescrolling.offset
Define how many times new items should be automatically loaded before displaying a manual "Load More" button. Avoid setting this too high to keep the footer accessible.
Sample:
7
-
- Type
- int
- Default
- 200
- Path
- infinitescrolling.negativeMargin
Set the margin (in pixels) from the last item's bottom edge before the next request starts. A higher value loads items earlier.
Sample:
130