Infinite Scroll / Lazy Load Repeater (SEO Friendly)

by iMedia Inc
Infinite Scroll / Lazy Load Repeater (SEO Friendly) preview

Price

$0

Details

Licence:
Free
Works with:
8.2, 9.0
Version:

Web site

http://www.kentico.com/partners/imedia

Summary

A modified repeater that provides infinite scroll and lazy loading features with URL update on scroll.

Description

This is a modified repeater web part that provides infinite scroll and lazy loading capabilities with optional URL update. It has all of the built in Kentico repeater configurations, and also provides the option to use either infinite scroll or lazy loading when viewing the data. If javascript is not enabled, it defaults to pagination.

For more info & instructions take a look at this blog post: http://www.imediainc.com/blog/december-2015/kentico-infinite-scroll-repeater

Comments


lfrese-imediainc commented on

Version 8.2 also works in version 9.

Burns commented on

The Kentico 9 download is pointing at the 8.2 download. Can this be fixed please?

gena-wte commented on

Is there supposed to a version 9 download? I get 8.2 no matter switch I select.

Daniela Kubikova commented on

Hi mani, again...your question is already answered below. If you do not want to create your own javascript function, just let the LazyLoadingMethod field in the web part properties blank .

mani commented on

Hi Team,

Even i am facing same problem what pabitra is facing which is posted on 22nd jan 2016. Please guide what to write in load that is
loader_method ()

Daniela Kubikova commented on

Hi Pabitra, you can find the answer below in this message board, in the comment by Laura (Dec 16).

pabitrajntc20@gmail.com commented on

Getting Error after configuring the infinite-scroll-lazy-load-repeater that is Uncaught TypeError: window[loader_method] is not a function in a console window.How to resolve that can u tell me ?

Hung commented on

Hi, thank you for shared.

I used kentico 9 with hotfix 9.06, but it's not friendly for SEO as your Demo. I must add more code on repeater.

DataSet pages = new DataSet();
pages = DocumentHelper.GetDocuments(ClassNames)
.Path(Path.Replace("%",""), PathTypeEnum.Children)
.OnSite(CurrentSite.SiteName)
.Culture(CurrentDocument.DocumentCulture)
.Published()
.Where(WhereCondition)
.Columns(Columns)
.InCategory(CategoryName);
if (!DataHelper.DataSourceIsEmpty(pages))
{
int countdb = pages.Tables[0].Rows.Count;
int page = ValidationHelper.GetInteger(QueryHelper.GetString("page", ""), 1);
string url = URLHelper.RemoveParameterFromUrl(RequestContext.RawURL, "page");
this.Page.Header.Controls.Add(new LiteralControl("<link rel=\"canonical\" href=\"" + RequestContext.RawURL + "\" />"));
if (countdb > page * SelectTopN)
this.Page.Header.Controls.Add(new LiteralControl("<link rel=\"next\" href=\"" + url + "?page=" + (page + 1) + "\" />"));
if (page > 2)
{
this.Page.Header.Controls.Add(new LiteralControl("<link rel=\"prev\" href=\"" + url + "?page=" + (page - 1) + "\" />"));
}
if (page == 2)
{
this.Page.Header.Controls.Add(new LiteralControl("<link rel=\"prev\" href=\"" + url + "\" />"));
}
}

Hung commented on

it's not work on jquery 2.2
and i had issue when import file. i was created new webpart to reslove

lfrese-imediainc commented on

mehrdadilchizadeh,

If you entered any text into the LazyLoadingMethod field in the web part configuration, but have not actually created a javascript function with that name then it will throw that error. You have to either create a function to call or leave that field blank. More info on how the web part works on my blog : http://www.imediainc.com/blog/december-2015/kentico-infinite-scroll-repeater

mehrdadilchizadeh-gmail commented on

hello,
i use this webpart in kentico cms 8.2, but i have a problem in load more... in chorom inspector show this error

Uncaught TypeError: window[loader_method] is not a function

please help me

zulkamal-optima.com commented on

Have try this in kentico 9. Good webpart .!