Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi All, I am using following query to get list of news content by following query-
Umbraco.Content(10118).Children("News").Where("Visible").OrderBy("datePublished descending").ToList();
this query bring me all the news content i have created till now but what i actually want is - to load only 5 content at first then when i click on "Load more" 5 more news content should be loaded. any help for doing so?
Thanks Yogesh pathak
Hi Yogesh,
You can use the .Take(5) in you query to get the first 5 nodes
and when you click "Load More" then you call the query without .Take(5)
Hope it helps.
Thanks, Jigar
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
How to load content data on ajax call?
Hi All,
I am using following query to get list of news content by following query-
Umbraco.Content(10118).Children("News").Where("Visible").OrderBy("datePublished descending").ToList();
this query bring me all the news content i have created till now but what i actually want is - to load only 5 content at first then when i click on "Load more" 5 more news content should be loaded. any help for doing so?
Thanks
Yogesh pathak
Hi Yogesh,
You can use the .Take(5) in you query to get the first 5 nodes
and when you click "Load More" then you call the query without .Take(5)
Hope it helps.
Thanks, Jigar
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.